Alexander Zherdev
2011-Feb-05 23:55 UTC
[Xen-users] Save and restore DomU (hvm) on Dom0 restart. CentOS 5.5 + Xen 3.4.3
What are the settings that I must specify to have DomU be saved and then automatically started on reboot of the physical server? In my /etc/sysconfi/xendomains it points to a save folder (which does not exist) My configuration files are located at /vm/cfg/vm-xxxx/vm-xxxx.xen In my config file I have: on_poweroff = ''destroy'' on_reboot = ''restart'' on_crash = ''restart'' on_xend_stop = ''suspend'' on_xend_start = ''start'' But, after calling "shutdown -r now", the DomUs are turned off and do not start. My DomU''s are Windows 2003 Servers running in HVM virtualization. Alexander Zherdev azherdev@yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Feb-09 04:32 UTC
Re: [Xen-users] Save and restore DomU (hvm) on Dom0 restart. CentOS 5.5 + Xen 3.4.3
On Sat, Feb 5, 2011 at 11:55 PM, Alexander Zherdev <azherdev@yahoo.com> wrote:> What are the settings that I must specify to have DomU be saved and then > automatically started on reboot of the physical server? > > In my /etc/sysconfi/xendomains it points to a save folder (which does not > exist) > > My configuration files are located at /vm/cfg/vm-xxxx/vm-xxxx.xen > > In my config file I have: > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > on_xend_stop = ''suspend'' > on_xend_start = ''start'' > But, after calling "shutdown -r now", the DomUs are turned off and do not > start. > > My DomU''s are Windows 2003 Servers running in HVM virtualization.You need pv drivers for the shutdown to work properly. So, for example you could use the gplpv drivers for windows. For a domain to be started at boot, there needs to be a symlink to its config file in /etc/xen/auto Hope that helps. Thanks, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexander Zherdev
2011-Feb-11 00:24 UTC
Re: [Xen-users] Save and restore DomU (hvm) on Dom0 restart. CentOS 5.5 + Xen 3.4.3
Thank you for responding Todd, Do I need to have the PV drivers to save the state? What I want to happen is: When shutdown/restart is initiated: 1. Xen pauses all running VMs 2. Xen saves the state of all VMs to disk (memory and cpu state) 3. Xen shuts down 4. System shutsdown/restarts When system is started/restarted: 1. Xen starts 2. Loads the state of all the VMs 3. Resumes VMs I do *NOT* want the VMs to know they were shutdown. Hickup with network connections/time is the only thing that will be perceived. Alexander Zherdev azherdev@yahoo.com ________________________________ From: Todd Deshane <todd.deshane@xen.org> To: Alexander Zherdev <azherdev@yahoo.com> Cc: xen-users@lists.xensource.com Sent: Tue, February 8, 2011 8:32:48 PM Subject: Re: [Xen-users] Save and restore DomU (hvm) on Dom0 restart. CentOS 5.5 + Xen 3.4.3 On Sat, Feb 5, 2011 at 11:55 PM, Alexander Zherdev <azherdev@yahoo.com> wrote:> What are the settings that I must specify to have DomU be saved and then > automatically started on reboot of the physical server? > > In my /etc/sysconfi/xendomains it points to a save folder (which does not > exist) > > My configuration files are located at /vm/cfg/vm-xxxx/vm-xxxx.xen > > In my config file I have: > on_poweroff = ''destroy'' > on_reboot = ''restart'' > on_crash = ''restart'' > on_xend_stop = ''suspend'' > on_xend_start = ''start'' > But, after calling "shutdown -r now", the DomUs are turned off and do not > start. > > My DomU''s are Windows 2003 Servers running in HVM virtualization.You need pv drivers for the shutdown to work properly. So, for example you could use the gplpv drivers for windows. For a domain to be started at boot, there needs to be a symlink to its config file in /etc/xen/auto Hope that helps. Thanks, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users