12, 2014 at 5:52 PM
To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>"
mailto:dev@cloudstack.apache.org>>
Subject: RE: How writing a new api of Pause VirtualMachine
Yeah,it doesn't expose. so i write a new api to implements suspend method.
So i add some files as bel
entityType=UserVmResponse.class
Yeah,it doesn't expose. so i write a new api to implements suspend method.
So i add some files as belows:
api/src/org/apache/cloudstack/api/command/user/vm/PauseVMCmd.java
@APICommand(name = "pauseVirtualMachine", description="Pause a virtual
machine.", responseObject=SuccessResponse.class)
p
Not answering your question, but note that XenServer has two different
concepts: pause/unpause and suspend/resume. Normally you want suspend, which
suspends to disk; with pause, the VM will continue using memory. In fact, the
XenServer UI (XenCenter) doesn't even expose pause.
--
Stephen Turne