Hi friends, I want to write an application to start of pause the VMs on Xen. Now i am using xm command to start/pause the VM. Is there any way to start a VM using a program? Thanks in advance. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Joseph Glanville
2011-Oct-02 10:15 UTC
Re: [Xen-devel] Start a VM without using XM command
Hi What do you mean by "program"? The definition is very vague and can be interpretted many ways in this context. I assume you aren''t familiar with scripting if you are asking this question. I recommend you take a look at a scripting language called bash, it is usually distributed with Linux as the default shell. A script to pause a certain VM (say this one is called vm0) would like something like this: #!/bin/bash /usr/sbin/xm pause vm0 Joseph. On 2 October 2011 20:12, Manu R Krishnan <manurk.88@gmail.com> wrote:> Hi friends, > I want to write an application to start of pause the VMs on Xen. Now i > am using xm command to start/pause the VM. Is there any way to start a VM > using a program? > Thanks in advance. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >-- * Founder | Director | VP Research Orion Virtualisation Solutions* | www.orionvm.com.au | Phone: 1300 56 99 52 | Mobile: 0428 754 846 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Sun, Oct 2, 2011 at 5:12 PM, Manu R Krishnan <manurk.88@gmail.com> wrote:> Hi friends, > I want to write an application to start of pause the VMs on Xen. Now i > am using xm command to start/pause the VM. Is there any way to start a VM > using a program? > Thanks in advance. >Why not check libxc and libxl. They should do the job. Wei. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel