On Tue, 2007-08-28 at 00:15 +0200, Kai Schaetzl wrote:
Timothy Selivanow wrote on Mon, 27 Aug 2007 14:55:15 -0700:
As another poster already said...`man xm`.
Doesn't help, doesn't tell me how to start a VM that wasn't saved. No, "xm create" does *not* do this.
Here's a hint: `/usr/sbin/xm
create ${config_file}`. When you shutdown a guest it does leave the list of running domains (i.e. what `xm list` shows you). The default location for VM configurations is '/etc/xen/'. If you want them to start at boot, sym-link the conf to '/etc/xen/auto/'.
And how do I start this VM in a running system? Or is booting it up when xend boots up the only option? If so, then I don't see this mentioned anywhere.
Kai
I've used `xm create ${config_file}` many, many times. It'll work :)
$ sudo /usr/sbin/xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 485 8 r----- 2838940.8 Domain_Services 1 511 1 -b---- 1962.0 Mail_Services 2 511 1 -b---- 1989.9 Web_Services 3 511 2 -b---- 4927.6
$ sudo /usr/sbin/xm shutdown Web_Services
$ sudo /usr/sbin/xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 485 8 r----- 2839060.6 Domain_Services 1 511 1 -b---- 1962.1 Mail_Services 2 511 1 -b---- 1989.9
$ sudo /usr/sbin/xm create /etc/xen/Web_Services Using config file "/etc/xen/Web_Services". Going to boot CentOS (2.6.18-8.1.8.el5xen) kernel: /vmlinuz-2.6.18-8.1.8.el5xen initrd: /initrd-2.6.18-8.1.8.el5xen.img Started domain Web_Services
$ sudo /usr/sbin/xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 485 8 r----- 2839121.3 Domain_Services 1 511 1 -b---- 1962.1 Mail_Services 2 511 1 -b---- 1990.0 Web_Services 4 512 2 r----- 2.4