We can start virtual machines using "xm create". However after rebooting the xen host machine, the virtual machines (xen guests) are not started automatically.
We can make a xen guest start automatically after xen host reboot.
Let's say the configuration for the virtual machine is in /etc/xen/XenGuest1.cfg
So we can do like this:
mkdir -p /etc/xen/auto
cd /etc/xen/auto
ln -s /etc/xen/XenGuest1.cfg .
cd -
cd /etc/xen/auto
ln -s /etc/xen/XenGuest1.cfg .
cd -
This creates a link to autostart the virtual machine.
and "XenGuest1.cfg" file must contain the following entries:
on_xend_stop = 'shutdown'
on_xend_start = 'start'
on_xend_start = 'start'
No comments:
Post a Comment