[Fedora-xen] Autostart VM on boot

Marcel Damásio marceldamasio at gmail.com
Tue Jun 10 19:13:56 UTC 2008


Hi Aaron,

Thanks a lot for helping me. It worked.

I added into *'/var/lib/xend/domains/<UUID>**/config.sxp'  *these lines:

*   (on_xend_start start)
   (on_xend_stop shutdown)*

Now, the VMs are really auto starting and shutting down!

Thanks for helping me.

On Mon, Jun 9, 2008 at 6:51 PM, Aaron Metzger <ametzger at silkspeed.com>
wrote:

> Marcel Damásio wrote:
>
>> Hi,
>>
>> I'm using Fedora 8 as DOM0.
>> I created my virtual machines using virt-install.
>> Now I want to configure them to autostart on DOM0's boot, but I can't.
>>
>> I tried a lot of solutions, but none worked.
>>
>> Could somebody help me?
>>
>>
> Marcel:
>
> Do you have domain definitions in:
>
> /var/lib/xend/domains
>
> Shutdown the xend.
>
> Edit
>
> /var/lib/xend/domains/<UUID>/config.sxp
>
>
> Add these two lines to the domain definition:
>
>    (on_xend_start start)
>    (on_xend_stop shutdown)
>
> Make sure that "xend" and "xendomains" start automatically in your
> "init.d".
>
>
> By the way, I also have these actions in my config.sxp and can't remember
> if these were the default values after virt-install or not.
>
>   (actions_after_crash restart)
>    (actions_after_shutdown destroy)
>    (actions_after_reboot restart)
>
>
> Let me know how it goes for you.
>
> --
> Good luck,
> Aaron
>
>


-- 
Marcel Damásio Moreira
9º período de Ciência da Computação - UFES
(27) 8128-7105
Estagiário do Suporte - DI/UFES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-xen/attachments/20080610/0eb4f83b/attachment.htm>


More information about the Fedora-xen mailing list