Greetings I''m really new with Xen, I have installed xen-4.1 on a computer running Ubuntu 12.04.1LTS, I''ve setup my Dom0 but when I reboot (shutdownm destroy) a DomU this dissapear from the list, my toolstack is XL. I know if I put my .cfg files inside /etc/xen dir the machines are avalaible when boot my host but when shutdown they dissapears -- <http://stackoverflow.com/users/flair/816721.png> http://stackoverflow.com/users/816721/rkmax _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2013-Jan-11 10:38 UTC
Re: Xen Domains disappear after reboot, destroy, shutdown, etc
On Thu, 2013-01-10 at 17:18 +0000, Julian wrote:> I''m really new with Xen, I have installed xen-4.1 on a computer > running Ubuntu 12.04.1LTS, I''ve setup my Dom0 but when I reboot > (shutdownm destroy) a DomU this dissapear from the list, my toolstack > is XL. I know if I put my .cfg files inside /etc/xen dir the machines > are avalaible when boot my host but when shutdown they dissapearsThis is normal behaviour with xl, domains do not persist when they are not running. The disk state etc will (unless you delete it or something) You can restart them by simply using xl create on the same config file again. If you want domains to persist while they are not running then you need to use a toolstack which supports "managed domains". The two main choices there are the xapi toolstack (part of XCP, also available in Debian & Ubuntu) or libvirt. (The old xend toolstack also supports this mode, but is deprecated so I wouldn''t recommend using it for new deployments). Ian.
Ian Murray
2013-Jan-11 10:59 UTC
Re: Xen Domains disappear after reboot, destroy, shutdown, etc
> >I''m really new with Xen, I have installed xen-4.1 on a computer running Ubuntu 12.04.1LTS, I''ve setup my Dom0 but when I reboot (shutdownm destroy) a DomU this dissapear from the list, my toolstack is XL. I know if I put my .cfg files inside /etc/xen dir the machines are avalaible when boot my host but when shutdown they dissapears >In fact, what behaviour are you expecting/desiring?
Mark Dokter
2013-Jan-14 11:50 UTC
Re: Xen Domains disappear after reboot, destroy, shutdown, etc
On 01/11/2013 11:59 AM, Ian Murray wrote:> > >> >> I''m really new with Xen, I have installed xen-4.1 on a computer running Ubuntu 12.04.1LTS, I''ve setup my Dom0 but when I reboot (shutdownm destroy) a DomU this dissapear from the list, my toolstack is XL. I know if I put my .cfg files inside /etc/xen dir the machines are avalaible when boot my host but when shutdown they dissapears >> > > > In fact, what behaviour are you expecting/desiring? >I have the same problem, that (PV) domains don''t reboot. As a workaround I do an xl create after a shutdown. What I *don''t* expect is this in the log: root@xen03:/var/log/xen# cat xl-drupal.log Waiting for domain drupal (domid 6) to die [pid 8112] Domain 6 is dead Action for shutdown reason code 1 is restart Domain 6 needs to be cleaned up: destroying the domain Done. Rebooting now failed to run bootloader: -3 In xend.log I get: [2013-01-14 12:44:02 1746] ERROR (XendDomainInfo:2195) VM drupal restarting too fast (Elapsed time: 22.113466 seconds). Refusing to restart to avoid loops. So there seems to be a problem with pygrub (which I''m using for pv domains). It works fine with xl create, but not with xl restart (or rebooting from within the vm). Btw, this is Ubuntu 12.04 LTS on the dom0 and pv domain using the xl toolstack (obviously). kind regards, Mark
Ian Campbell
2013-Jan-14 11:57 UTC
Re: Xen Domains disappear after reboot, destroy, shutdown, etc
On Mon, 2013-01-14 at 11:50 +0000, Mark Dokter wrote:> > So there seems to be a problem with pygrub (which I''m using for pv > domains). It works fine with xl create, but not with xl restart (or > rebooting from within the vm).This was fixed in 4.2. There are some known issues with xl in 4.1. If you are hitting them then I would recommend either sticking with xend on 4.1 or upgrading to 4.2. Ian.