Hi all, I have an Ubuntu 7.x HVM that I would prefer to be shutdown gracefully instead of what is going on now which looks to be a sudden kill; xm shutdown foo .. pretty much kills it instead of a nice halt -p. My HVM conf file does say destroy but so do my other paravirt machines and they gracefully shutdown. Any ideas how I can do this? - Brian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Brian, Am Freitag, den 13.02.2009, 11:39 -0800 schrieb Brian Krusic:> Hi all, > > I have an Ubuntu 7.x HVM that I would prefer to be shutdown gracefully > instead of what is going on now which looks to be a sudden kill; > > xm shutdown foo > > .. pretty much kills it instead of a nice halt -p.for hvm you need the gplpv-drivers in your guests. But why dont you use pv for linux-guests?> > My HVM conf file does say destroy but so do my other paravirt machines > and they gracefully shutdown. > > Any ideas how I can do this?hth, Thomas> - Brian > > > > > > _______________________________________________ > 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
Hi Thomas, Unfortunately, this guest is running specific legacy fromage that I cannot move to another box. I''ll try the gplpv drivers that I''ve heard so much about on this forum. - Brian On Feb 13, 2009, at 11:48 AM, Thomas Halinka wrote:> Hi Brian, > > Am Freitag, den 13.02.2009, 11:39 -0800 schrieb Brian Krusic: >> Hi all, >> >> I have an Ubuntu 7.x HVM that I would prefer to be shutdown >> gracefully >> instead of what is going on now which looks to be a sudden kill; >> >> xm shutdown foo >> >> .. pretty much kills it instead of a nice halt -p. > > for hvm you need the gplpv-drivers in your guests. > > But why dont you use pv for linux-guests? > >> >> My HVM conf file does say destroy but so do my other paravirt >> machines >> and they gracefully shutdown. >> >> Any ideas how I can do this? > > hth, > > Thomas > >> - Brian >> >> >> >> >> >> _______________________________________________ >> 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
If there are PV drivers available for your distro, they might include something that watch for and respond to the shutdown signal provided by Xen. I don''t think the shutdown signal is actually dealt with by a driver per se, though, I just know that a service to provide that functionality is included in the GPLPV drivers for Windows provided by James Harper. If the drivers don''t have software for it, you might be able to find the a software piece separately, or you could try that first. Regardless, unless someone can point you toward the appropriate app/service, or you can find or make one on your own, you would have to run the VM as PV to get your preferred behavior. Dustin -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Brian Krusic Sent: Friday, February 13, 2009 14:39 To: xen-users list Subject: [Xen-users] hvm gracefull power off Hi all, I have an Ubuntu 7.x HVM that I would prefer to be shutdown gracefully instead of what is going on now which looks to be a sudden kill; xm shutdown foo .. pretty much kills it instead of a nice halt -p. My HVM conf file does say destroy but so do my other paravirt machines and they gracefully shutdown. Any ideas how I can do this? - Brian _______________________________________________ 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
Thiago Camargo Martins Cordeiro
2009-Feb-13 20:29 UTC
Re: [Xen-users] hvm gracefull power off
Sorry for the ignorance but, HVM does not have something like "ATX" power button of modern desktops/servers?... correct-me if I''m wrong, please... But if I press the power button of my DELL desktop, any Linux distro like Ubuntu shuts down properly... Why HVM does not behave like a real computer in this case? I''m always have used PV machines... so I don''t know to much about HVM domains... Thiago 2009/2/13 Thomas Halinka <lists@thohal.de>> Hi Brian, > > Am Freitag, den 13.02.2009, 11:39 -0800 schrieb Brian Krusic: > > Hi all, > > > > I have an Ubuntu 7.x HVM that I would prefer to be shutdown gracefully > > instead of what is going on now which looks to be a sudden kill; > > > > xm shutdown foo > > > > .. pretty much kills it instead of a nice halt -p. > > for hvm you need the gplpv-drivers in your guests. > > But why dont you use pv for linux-guests? > > > > > My HVM conf file does say destroy but so do my other paravirt machines > > and they gracefully shutdown. > > > > Any ideas how I can do this? > > hth, > > Thomas > > > - Brian > > > > > > > > > > > > _______________________________________________ > > 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 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Windows has always done this as well. I believe I asked this same question some time ago, but perhaps in fedora-xen, and I may not have, I don''t remember. I would assume that either Xen or Qemu doesn''t emulate whatever it is in the ATX standard that provides that functionality. A signal is provided, but not one that is recognized automatically by non-PV OSes that aren''t modified (with an installed application/service). With the service included in the GPLPV drivers in Windows or an equivalent utility in other distros (should such an equivalent exist), Xen will wait for the HVM to shut down automatically, but without one, it immediately kills instead. It is also worth noting that ACPI may still be necessary in these instances, as otherwise the domU won''t "turn off" on its own, but I am not sure on that. Dustin From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Thiago Camargo Martins Cordeiro Sent: Friday, February 13, 2009 15:30 To: lists@thohal.de Cc: Brian Krusic; xen-users list Subject: Re: [Xen-users] hvm gracefull power off Sorry for the ignorance but, HVM does not have something like "ATX" power button of modern desktops/servers?... correct-me if I''m wrong, please... But if I press the power button of my DELL desktop, any Linux distro like Ubuntu shuts down properly... Why HVM does not behave like a real computer in this case? I''m always have used PV machines... so I don''t know to much about HVM domains... Thiago 2009/2/13 Thomas Halinka <lists@thohal.de> Hi Brian, Am Freitag, den 13.02.2009, 11:39 -0800 schrieb Brian Krusic:> Hi all, > > I have an Ubuntu 7.x HVM that I would prefer to be shutdown gracefully > instead of what is going on now which looks to be a sudden kill; > > xm shutdown foo > > .. pretty much kills it instead of a nice halt -p.for hvm you need the gplpv-drivers in your guests. But why dont you use pv for linux-guests?> > My HVM conf file does say destroy but so do my other paravirt machines > and they gracefully shutdown. > > Any ideas how I can do this?hth, Thomas> - Brian > > > > > > _______________________________________________ > 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Thiago, I think you mentioned running Ubuntu domUs. I couldn''t find much help converting an Ubuntu 7.10 domU tp a PVM. Do you know of any resource for this? I''m running x64 bit. - Brian On Feb 13, 2009, at 12:29 PM, Thiago Camargo Martins Cordeiro wrote:> Sorry for the ignorance but, HVM does not have something like "ATX" > power button of modern desktops/servers?... correct-me if I''m wrong, > please... But if I press the power button of my DELL desktop, any > Linux distro like Ubuntu shuts down properly... Why HVM does not > behave like a real computer in this case? > > I''m always have used PV machines... so I don''t know to much about > HVM domains... > > Thiago > > 2009/2/13 Thomas Halinka <lists@thohal.de> > Hi Brian, > > Am Freitag, den 13.02.2009, 11:39 -0800 schrieb Brian Krusic: > > Hi all, > > > > I have an Ubuntu 7.x HVM that I would prefer to be shutdown > gracefully > > instead of what is going on now which looks to be a sudden kill; > > > > xm shutdown foo > > > > .. pretty much kills it instead of a nice halt -p. > > for hvm you need the gplpv-drivers in your guests. > > But why dont you use pv for linux-guests? > > > > > My HVM conf file does say destroy but so do my other paravirt > machines > > and they gracefully shutdown. > > > > Any ideas how I can do this? > > hth, > > Thomas > > > - Brian > > > > > > > > > > > > _______________________________________________ > > 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 > > _______________________________________________ > 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
Hi Brian, Am Freitag, den 13.02.2009, 14:54 -0800 schrieb Brian Krusic:> Hi Thiago, > > > I think you mentioned running Ubuntu domUs. > > > I couldn''t find much help converting an Ubuntu 7.10 domU tp a PVM. > > > Do you know of any resource for this?in domU: apt-get install $linux-image-xen scp /lib/modules/linux-image-xen dom0:/lib/modules in dom0: edit domu.cfg change kernel = & ramdisk =, to appropriate values... xm shutdown domu && xm start domu hth, Thomas> > > I''m running x64 bit. > > - Brian > > > > > > > > On Feb 13, 2009, at 12:29 PM, Thiago Camargo Martins Cordeiro wrote: > > > Sorry for the ignorance but, HVM does not have something like "ATX" > > power button of modern desktops/servers?... correct-me if I''m wrong, > > please... But if I press the power button of my DELL desktop, any > > Linux distro like Ubuntu shuts down properly... Why HVM does not > > behave like a real computer in this case? > > > > I''m always have used PV machines... so I don''t know to much about > > HVM domains... > > > > Thiago > > > > 2009/2/13 Thomas Halinka <lists@thohal.de> > > Hi Brian, > > > > Am Freitag, den 13.02.2009, 11:39 -0800 schrieb Brian > > Krusic: > > > Hi all, > > > > > > I have an Ubuntu 7.x HVM that I would prefer to be > > shutdown gracefully > > > instead of what is going on now which looks to be a sudden > > kill; > > > > > > xm shutdown foo > > > > > > .. pretty much kills it instead of a nice halt -p. > > > > > > for hvm you need the gplpv-drivers in your guests. > > > > But why dont you use pv for linux-guests? > > > > > > > > My HVM conf file does say destroy but so do my other > > paravirt machines > > > and they gracefully shutdown. > > > > > > Any ideas how I can do this? > > > > > > hth, > > > > Thomas > > > > > > > - Brian > > > > > > > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > _______________________________________________ > > 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hey Brian, Am Freitag, den 13.02.2009, 15:22 -0800 schrieb Brian Krusic:> Hi Thomas, > > Since I will be loading a Xen kernel in my Ubuntu domU, couldn''t I > just use pygrub as my boot loader without needing the kernel/ramdisk > options in my config? > > My current domU PVMs use pygrub.pygrub is really ugly and unsecure - use pvgrub instead. But yes - thats correct, it will work, too. But you also have to install grub into domU, too.> > - BrianRegards, Thomas PS: Take a look at the pygrub-code - I''ve never seen such evil code of darkness :-) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users