[Fedora-xen] Autostart VM on boot

David Levinger davidl at matissenetworks.com
Fri Jun 6 19:33:34 UTC 2008

I use virt-install to install my vm’s as well, but when I used
virt-manager (to install) I ran into that other directory path that you

To install a para-virt example with virt-install I use something like the

virt-install --bridge=xenbr0 --name=machinename --ram=1024 --vcpus=1
--file=/dev/vgmachine/lvmachine --paravirt
--location= -x "ks="

Below is an example of a Windows VM that I have that is stored in /etc/xen
and worked just fine with the symlink method. If you’d like a linux
example or a para-virt example just let me know.

name = "MachineName"

uuid = "f771623c-acbe-18df-d3a9-e71246c88f2e"

maxmem = 1024

memory = 1024

vcpus = 2

builder = "hvm"

kernel = "/usr/lib/xen/boot/hvmloader"

boot = "c"

pae = 1

acpi = 1

apic = 1

on_poweroff = "destroy"

on_reboot = "restart"

on_crash = "restart"

device_model = "/usr/lib64/xen/bin/qemu-dm"

sdl = 0

vnc = 1

vncunused = 1

disk = [ "phy:/dev/vgcomp/lvmachine,hda,w",
"file:/root/bartpe.iso,hdb:cdrom,r" ]

vif = [ "mac=00:00:00:00:00:00,bridge=eth0,type=ioemu" ]

serial = "pty"


From: Marcel Damásio [mailto:marceldamasio at gmail.com]
Sent: Friday, June 06, 2008 12:21 PM
To: David Levinger
Cc: fedora-xen at redhat.com
Subject: Re: [Fedora-xen] Autostart VM on boot

Ok, but I used virt-install to create the VMs, so I don't have a config

Trying this solution I found the config files at /var/lib/xend/domains/,
all generated by virt-install automatic.

So I created a symlink in /etc/xen/auto, but this didn't work.

Any other ideas?

Could you send me an example of config file machine that works for
I don't know how to create a VM from one.

On Fri, Jun 6, 2008 at 4:13 PM, David Levinger
<davidl at matissenetworks.com> wrote:

Creating a symlink in /etc/xen/auto that points to the config file of the
machine I want to autostart has worked for me in Fedora 8.

IE I store my config files in /etc/xen

ln –s /etc/xen/MachineFile /etc/xen/auto/MachineFile

Next time I boot the virtual machine starts right up.



From: fedora-xen-bounces at redhat.com [mailto:fedora-xen-bounces at redhat.com]
On Behalf Of Marcel Damásio
Sent: Friday, June 06, 2008 11:51 AM
To: fedora-xen at redhat.com
Subject: [Fedora-xen] Autostart VM on boot


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 Damásio Moreira
9º período de Ciência da Computação - UFES
(27) 8128-7105
Estagiário do Suporte - DI/UFES

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/20080606/22667eaa/attachment.htm>

More information about the Fedora-xen mailing list