Hi,<br><br>If the guest is created by libvirt (ie virt-install etc.), then I suggest usign virsh to trigger autostarting. Here&#39;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:&nbsp; &#39;help&#39; for help with commands<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;quit&#39; to quit<br><br>virsh # list --all<br>&nbsp;Id Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State<br>----------------------------------<br>
&nbsp; 1 Pardus-PV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; running<br>&nbsp; - Pardus-2008&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shut off<br><br>virsh # help autostart<br>&nbsp; NAME<br>&nbsp;&nbsp;&nbsp; autostart - autostart a domain<br><br>&nbsp; SYNOPSIS<br>&nbsp;&nbsp;&nbsp; autostart [--disable] &lt;domain&gt;<br><br>&nbsp; DESCRIPTION<br>
&nbsp;&nbsp;&nbsp; Configure a domain to be automatically started at boot.<br><br>&nbsp; OPTIONS<br>&nbsp;&nbsp;&nbsp; &lt;domain&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; domain name, id or uuid<br>&nbsp;&nbsp;&nbsp; --disable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 &lt;<a href="mailto:Gerrard.Geldenhuis@datacash.com">Gerrard.Geldenhuis@datacash.com</a>&gt; 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&#39;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 &quot;simulate&quot; 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: &#39;Marcel Damásio&#39;<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&#39;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 &quot;ks=<a href="http://1.1.1.1/config.cfg" target="_blank">http://1.1.1.1/config.cfg</a>&quot; --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&#39;d like a linux example or a para-virt example just let me know.<br>
<br>
<br>
<br>
name = &quot;MachineName&quot;<br>
<br>
uuid = &quot;f771623c-acbe-18df-d3a9-e71246c88f2e&quot;<br>
<br>
maxmem = 1024<br>
<br>
memory = 1024<br>
<br>
vcpus = 2<br>
<br>
builder = &quot;hvm&quot;<br>
<br>
kernel = &quot;/usr/lib/xen/boot/hvmloader&quot;<br>
<br>
boot = &quot;c&quot;<br>
<br>
pae = 1<br>
<br>
acpi = 1<br>
<br>
apic = 1<br>
<br>
on_poweroff = &quot;destroy&quot;<br>
<br>
on_reboot = &quot;restart&quot;<br>
<br>
on_crash = &quot;restart&quot;<br>
<br>
device_model = &quot;/usr/lib64/xen/bin/qemu-dm&quot;<br>
<br>
sdl = 0<br>
<br>
vnc = 1<br>
<br>
vncunused = 1<br>
<br>
disk = [ &quot;phy:/dev/vgcomp/lvmachine,hda,w&quot;, &quot;file:/root/bartpe.iso,hdb:cdrom,r&quot; ]<br>
<br>
vif = [ &quot;mac=00:00:00:00:00:00,bridge=eth0,type=ioemu&quot; ]<br>
<br>
serial = &quot;pty&quot;<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&#39;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&#39;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&#39;t know how to create a VM from one.<br>
<br>
On Fri, Jun 6, 2008 at 4:13 PM, David Levinger &lt;<a href="mailto:davidl@matissenetworks.com">davidl@matissenetworks.com</a>&gt; 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&#39;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&#39;s boot, but I can&#39;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