Hi,<br><br>If the guest is created by libvirt (ie virt-install etc.), then I suggest usign virsh to trigger autostarting. Here's what can be done:<br><br><div style="margin-left: 80px;">emre@xenroot:~$ virsh<br>Connecting to uri: qemu:///system<br>
Welcome to virsh, the virtualization interactive terminal.<br><br>Type:  'help' for help with commands<br>       'quit' to quit<br><br>virsh # list --all<br> Id Name                 State<br>----------------------------------<br>
  1 Pardus-PV            running<br>  - Pardus-2008          shut off<br><br>virsh # help autostart<br>  NAME<br>    autostart - autostart a domain<br><br>  SYNOPSIS<br>    autostart [--disable] <domain><br><br>  DESCRIPTION<br>
    Configure a domain to be automatically started at boot.<br><br>  OPTIONS<br>    <domain>         domain name, id or uuid<br>    --disable        disable autostarting<br><br>virsh # <br></div><br>This system is running KVM, but it would be the same for XEN. try it out and let us know :)<br>
<br>Emre<br><br><div class="gmail_quote">On Mon, Jun 9, 2008 at 2:36 PM, Gerrard Geldenhuis <<a href="mailto:Gerrard.Geldenhuis@datacash.com">Gerrard.Geldenhuis@datacash.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hmmm,<br>
Does that mean you have to have a config file in two different formats if you are using virsh?<br>
<br>
I configure/build my xen domains using virsh. Do I then need an xm compatible file too to have a vm startup? I'm sure not... if I recall correctly if you create a domain via the gui it starts automatically after boot and that only have xml config files but not sure how to "simulate" that if you create the domains using custom xml config files.<br>

<br>
Regards<br>
<br>
________________________________<br>
<br>
From: <a href="mailto:fedora-xen-bounces@redhat.com">fedora-xen-bounces@redhat.com</a> on behalf of David Levinger<br>
Sent: Fri 2008/06/06 08:33 PM<br>
To: 'Marcel Damásio'<br>
Cc: <a href="mailto:fedora-xen@redhat.com">fedora-xen@redhat.com</a><br>
Subject: RE: [Fedora-xen] Autostart VM on boot<br>
<br>
<br>
<br>
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 mentioned.<br>
<br>
<br>
<br>
To install a para-virt example with virt-install I use something like the following:<br>
<br>
virt-install --bridge=xenbr0 --name=machinename --ram=1024 --vcpus=1 --file=/dev/vgmachine/lvmachine --paravirt --location=<a href="http://1.1.1.1/pathto/ks" target="_blank">http://1.1.1.1/pathto/ks</a> -x "ks=<a href="http://1.1.1.1/config.cfg" target="_blank">http://1.1.1.1/config.cfg</a>" --vnc<br>

<br>
<br>
<br>
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.<br>
<br>
<br>
<br>
name = "MachineName"<br>
<br>
uuid = "f771623c-acbe-18df-d3a9-e71246c88f2e"<br>
<br>
maxmem = 1024<br>
<br>
memory = 1024<br>
<br>
vcpus = 2<br>
<br>
builder = "hvm"<br>
<br>
kernel = "/usr/lib/xen/boot/hvmloader"<br>
<br>
boot = "c"<br>
<br>
pae = 1<br>
<br>
acpi = 1<br>
<br>
apic = 1<br>
<br>
on_poweroff = "destroy"<br>
<br>
on_reboot = "restart"<br>
<br>
on_crash = "restart"<br>
<br>
device_model = "/usr/lib64/xen/bin/qemu-dm"<br>
<br>
sdl = 0<br>
<br>
vnc = 1<br>
<br>
vncunused = 1<br>
<br>
disk = [ "phy:/dev/vgcomp/lvmachine,hda,w", "file:/root/bartpe.iso,hdb:cdrom,r" ]<br>
<br>
vif = [ "mac=00:00:00:00:00:00,bridge=eth0,type=ioemu" ]<br>
<br>
serial = "pty"<br>
<br>
<br>
<br>
________________________________<br>
<br>
From: Marcel Damásio [mailto:<a href="mailto:marceldamasio@gmail.com">marceldamasio@gmail.com</a>]<br>
Sent: Friday, June 06, 2008 12:21 PM<br>
To: David Levinger<br>
Cc: <a href="mailto:fedora-xen@redhat.com">fedora-xen@redhat.com</a><br>
Subject: Re: [Fedora-xen] Autostart VM on boot<br>
<br>
<br>
<br>
Ok, but I used virt-install to create the VMs, so I don't have a config file.<br>
<br>
Trying this solution I found the config files at /var/lib/xend/domains/, all generated by virt-install automatic.<br>
<br>
So I created a symlink in /etc/xen/auto, but this didn't work.<br>
<br>
Any other ideas?<br>
<br>
Could you send me an example of config file machine that works for testing?<br>
I don't know how to create a VM from one.<br>
<br>
On Fri, Jun 6, 2008 at 4:13 PM, David Levinger <<a href="mailto:davidl@matissenetworks.com">davidl@matissenetworks.com</a>> wrote:<br>
<br>
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.<br>
<br>
<br>
<br>
IE I store my config files in /etc/xen<br>
<br>
ln -s /etc/xen/MachineFile /etc/xen/auto/MachineFile<br>
<br>
Next time I boot the virtual machine starts right up.<br>
<br>
<br>
<br>
d<br>
<br>
<br>
<br>
________________________________<br>
<br>
From: <a href="mailto:fedora-xen-bounces@redhat.com">fedora-xen-bounces@redhat.com</a> [mailto:<a href="mailto:fedora-xen-bounces@redhat.com">fedora-xen-bounces@redhat.com</a>] On Behalf Of Marcel Damásio<br>
Sent: Friday, June 06, 2008 11:51 AM<br>
To: <a href="mailto:fedora-xen@redhat.com">fedora-xen@redhat.com</a><br>
Subject: [Fedora-xen] Autostart VM on boot<br>
<br>
<br>
<br>
Hi,<br>
<br>
I'm using Fedora 8 as DOM0.<br>
I created my virtual machines using virt-install.<br>
Now I want to configure them to autostart on DOM0's boot, but I can't.<br>
<br>
I tried a lot of solutions, but none worked.<br>
<br>
Could somebody help me?<br>
<br>
--<br>
Marcel Damásio Moreira<br>
9º período de Ciência da Computação - UFES<br>
(27) 8128-7105<br>
Estagiário do Suporte - DI/UFES<br>
<br>
<br>
<br>
<br>
--<br>
Marcel Damásio Moreira<br>
9º período de Ciência da Computação - UFES<br>
(27) 8128-7105<br>
Estagiário do Suporte - DI/UFES<br>
<font color="#888888"><br>
<br>
--<br>
Fedora-xen mailing list<br>
<a href="mailto:Fedora-xen@redhat.com">Fedora-xen@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-xen" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-xen</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Emre