[opensuse-virtual] Xen4 (11.4) autostart of DomU
Hi, I've got a new Xen host based on openSUSE 11.4 but I'm confused on how to make guests starting automatically when Dom0 is started. With an older Xen host I was able to do it via virsh or virt-manager which apparently resulted in (on_xend_start start) in the guest's config.sxp. But on 11.4 the virsh or virt-manager flag has no effect apparently. I can toggle the flag without an error but revisiting the setting shows it unchecked again. So what is the supported way of flagging a DomU as autostart? Is it a bug that virsh and virt-manager fails (or do nothing)? Please advice. Thanks, Wolfgang -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
Wolfgang Rosenauer wrote:
Hi,
I've got a new Xen host based on openSUSE 11.4 but I'm confused on how to make guests starting automatically when Dom0 is started.
AFAIK, there are 3 options for autostarting domains when the host starts 1. (on_xend_start start) in domU config (as you mentioned) 2. xendomains init script 3. libvirt-guests init script 1) requires xend to successfully start. I assume that is the case? Can you directly edit the domU config with (on_xend_start start) and have it work?
With an older Xen host I was able to do it via virsh or virt-manager which apparently resulted in (on_xend_start start) in the guest's config.sxp.
Right.
But on 11.4 the virsh or virt-manager flag has no effect apparently. I can toggle the flag without an error but revisiting the setting shows it unchecked again.
Hmm, maybe a regression. If xend is running and autostart works when manually adding to domU config, open a bug and provide /root/.virt-manager/virt-manager.log. virsh output with export LIBVIRT_DEBUG=1 would help tool. Regards, Jim -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
Hi, Am 14.06.2011 22:33, schrieb Jim Fehlig:
1) requires xend to successfully start. I assume that is the case? Can you directly edit the domU config with (on_xend_start start) and have it work?
I could not test it properly yet as there are production guests on that host already ;-)
With an older Xen host I was able to do it via virsh or virt-manager which apparently resulted in (on_xend_start start) in the guest's config.sxp.
Right.
But on 11.4 the virsh or virt-manager flag has no effect apparently. I can toggle the flag without an error but revisiting the setting shows it unchecked again.
Hmm, maybe a regression. If xend is running and autostart works when manually adding to domU config, open a bug and provide /root/.virt-manager/virt-manager.log. virsh output with export LIBVIRT_DEBUG=1 would help tool.
During testing for getting debugging logs I could confirm that the on_xend_start option is set correctly if toggled within virt-manager. But when restarting virt-manager it is shown unchecked as if it wasn't set to autostart. The virt-manager log doesn't seem to have something about that issue though. If you'd like to see it anyway please let me know. Wolfgang -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
Wolfgang Rosenauer wrote:
During testing for getting debugging logs I could confirm that the on_xend_start option is set correctly if toggled within virt-manager. But when restarting virt-manager it is shown unchecked as if it wasn't set to autostart. The virt-manager log doesn't seem to have something about that issue though. If you'd like to see it anyway please let me know.
I did some testing on an 11.4 system and it seemed to work fine *if* the domain was shutdown. I.e., toggling the autostart option in virt-manager and 'virsh autostart domU [--disable]' worked fine when domU was not running. If domU was running, xend seemed to ignore the request for a change in the autostart setting. So at first glance, this seems to be a bug in xend. Maybe you have time to enter a bug? :-). Cheers, Jim -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
participants (2)
-
Jim Fehlig
-
Wolfgang Rosenauer