[CentOS-virt] Automatic startup xen domains

Sun Sep 15 17:18:29 UTC 2013
carlopmart <carlopmart at gmail.com>

On 15/09/13 12:45, SilverTip257 wrote:
> On Sun, Sep 15, 2013 at 5:37 AM, Günther J. <gjn at gjn.priv.at
> <mailto:gjn at gjn.priv.at>> wrote:
>
>     Am Samstag, 14. September 2013, 20:41:00 schrieb carlopmart:
>      > Hi all,
>      >
>      >   I have installed a CentOS 6.4 x86_64 host with official centos-xen
>      > packages. I am using virt-manager to create, remove, etc ..
>     vmachines.
>      >
>      >   All works really really well except automatic domains startup.
>     Where
>      > libvirtd stores domains configurations?? Under /etc/libvirtd/qemu
>     not,
>      > like it does when I use kvm instead of xen.
>      >
>      >   Then, how can I automatic startup certain xen domains??
>
>
>     make a link to autostart /etc/xen/vm -> /etc/xen/auto
>
>
> I'm not familiar with Xen, but the OP could use virsh to set up the auto
> start link.  Since virsh is a toolkit/wrapper that can be used with KVM,
> Xen, and other virtualization platforms [0] it is a tool for the job.
>
> virsh <domain_name> autostart
>
> [ I'd expect this command would create the necessary autostart link, but
> don't have a Xen node built to verify. ]
>
> And plenty more virsh commands at [1]
>
> [0] http://libvirt.org/
> [1] http://libvirt.org/sources/virshcmdref/html-single/
>
>     --

Correct, I can use virsh in rc.local but it is a really poor solution 
... And no, virsh doesn't creates any autostart link ...