<div dir="ltr">Hi Omer,<br><br>Thanks for your reply.<br><br>We are deploying those VM's through templates and all the templates has first boot from hard disk and second with cdrom. We are using cdrom in cloud-init section to insert the cloud-init data .Why we need this boot loader (VM boot order or in the cloud-init section) as in the template the first boot order is harddisk ?<br><br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div></div>
<br><div class="gmail_quote">On Mon, Dec 1, 2014 at 3:37 PM, Omer Frenkel <span dir="ltr"><<a href="mailto:ofrenkel@redhat.com" target="_blank">ofrenkel@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
----- Original Message -----<br>
> From: "Shanil S" <<a href="mailto:xielesshanil@gmail.com">xielesshanil@gmail.com</a>><br>
</span><span class="">> To: "Shahar Havivi" <<a href="mailto:shaharh@redhat.com">shaharh@redhat.com</a>><br>
> Cc: <a href="mailto:users@ovirt.org">users@ovirt.org</a>, "Juan Hernandez" <<a href="mailto:jhernand@redhat.com">jhernand@redhat.com</a>>, "Omer Frenkel" <<a href="mailto:ofrenkel@redhat.com">ofrenkel@redhat.com</a>><br>
> Sent: Thursday, November 27, 2014 10:32:54 AM<br>
> Subject: Re: [ovirt-users] Issues with vm start up<br>
><br>
> Hi Omer,<br>
><br>
> I have attached the engine.log and vdsm.log. Please check it. The vm id is<br>
> - 7c7aa9dedb57248f5da291117164f0d7<br>
><br>
<br>
</span>sorry Shanil for the delay,<br>
it looks that in the vm settings, you have chosen to boot only from cd ?<br>
this is why the vm doest boot, the cloud-init disk is a settings disk, not a boot disk<br>
please go to update vm, change the boot order to use hard-disk, and boot the vm.<br>
<br>
let me know if it helps,<br>
Omer.<br>
<div class="HOEnZb"><div class="h5"><br>
> --<br>
> Regards<br>
> Shanil<br>
><br>
> On Thu, Nov 27, 2014 at 1:46 PM, Shahar Havivi <<a href="mailto:shaharh@redhat.com">shaharh@redhat.com</a>> wrote:<br>
><br>
> > Try to remove content and run the vm,<br>
> > ie remove the runcmd: or some of it - try to use the xml with out CDATA<br>
> > maybe<br>
> > you can pinpoint the problem that way...<br>
> ><br>
> ><br>
> > On 27.11.14 10:03, Shanil S wrote:<br>
> > > Hi All,<br>
> > ><br>
> > ><br>
> > > I am using the ovirt version 3.5 and having some issues with the vm<br>
> > startup<br>
> > > with cloud-init using api in run-once mode.....<br>
> > ><br>
> > > Below is the steps i follow :-<br>
> > ><br>
> > > 1. Create the VM by API from precreated Template..<br>
> > > 2. Start the VM in run-once mode and push the cloud-init data from API..<br>
> > > 3. VM stuck and from console it display the following :-<br>
> > > Booting from DVD/CD.. ...<br>
> > > Boot failed : could not read from CDROM (code 004)<br>
> > ><br>
> > > I am using the following xml for this operation :-<br>
> > ><br>
> > > <action><br>
> > > <vm><br>
> > > <os><br>
> > > <boot dev='cdrom'/><br>
> > > </os><br>
> > > <initialization><br>
> > > <cloud_init><br>
> > > <host><br>
> > > <address>test</address><br>
> > > </host><br>
> > > <network_configuration><br>
> > > <nics><br>
> > > <nic><br>
> > > <interface>virtIO</interface><br>
> > > <name>eth0</name><br>
> > > <boot_protocol>static</boot_protocol><br>
> > > <mac address=''/><br>
> > > <network><br>
> > > <ip address='' netmask='' gateway=''/><br>
> > > </network><br>
> > > <on_boot>true</on_boot><vnic_profile id='' /><br>
> > > </nic><br>
> > > <nic><br>
> > > <interface>virtIO</interface><br>
> > > <name>eth1</name><br>
> > > <boot_protocol>static</boot_protocol><br>
> > > <mac address=''/><br>
> > > <network><br>
> > > <ip address='' netmask='255.255.255.0' gateway=''/><br>
> > > </network><br>
> > > <on_boot>true</on_boot><vnic_profile id='' /><br>
> > > </nic><br>
> > > </nics><br>
> > > </network_configuration><br>
> > > <files><br>
> > > <file><br>
> > > <name>/ignored</name><content><![CDATA[#cloud-config<br>
> > > disable-ec2-metadata: true<br>
> > > disable_root: false<br>
> > > ssh_pwauth: true<br>
> > > ssh_deletekeys: true<br>
> > > chpasswd: { expire: False }<br>
> > ><br>
> > > users:<br>
> > > - name: root<br>
> > > primary-group: root<br>
> > > passwd: 8W7RQ5Bh<br>
> > > lock-passwd: false<br>
> > ><br>
> > > runcmd:<br>
> > > - sed -i '/nameserver/d' /etc/resolv.conf<br>
> > > - echo 'nameserver 8.8.8.8' >> /etc/resolv.conf<br>
> > > - echo 'nameserver 8.8.4.4' >> /etc/resolv.conf<br>
> > > - echo 'root:8W7RQ5Bh' | chpasswd<br>
> > > - yum -y update<br>
> > > - yum -y install rdate<br>
> > > - rdate -s <a href="http://stdtime.gov.hk" target="_blank">stdtime.gov.hk</a>]]></content><br>
> > > <type>plaintext</type><br>
> > > </file><br>
> > > </files><br>
> > > </cloud_init><custom_script><![CDATA[#cloud-config<br>
> > > disable-ec2-metadata: true<br>
> > > disable_root: false<br>
> > > ssh_pwauth: true<br>
> > > ssh_deletekeys: true<br>
> > > chpasswd: { expire: False }<br>
> > ><br>
> > > users:<br>
> > > - name: root<br>
> > > primary-group: root<br>
> > > passwd: 8W7RQ5Bh<br>
> > > lock-passwd: false<br>
> > ><br>
> > > runcmd:<br>
> > > - sed -i '/nameserver/d' /etc/resolv.conf<br>
> > > - echo 'nameserver 8.8.8.8' >> /etc/resolv.conf<br>
> > > - echo 'nameserver 8.8.4.4' >> /etc/resolv.conf<br>
> > > - echo 'root:8W7RQ5Bh' | chpasswd<br>
> > > - yum -y update<br>
> > > - yum -y install rdate<br>
> > > - rdate -s <a href="http://stdtime.gov.hk" target="_blank">stdtime.gov.hk</a>]]></custom_script><br>
> > > </initialization><br>
> > > </vm><br>
> > > </action><br>
> > ><br>
> > > I am also attaching the screen shot to this.<br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Regards<br>
> > > Shanil<br>
> ><br>
> ><br>
> > > _______________________________________________<br>
> > > Users mailing list<br>
> > > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> > > <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
> ><br>
> ><br>
><br>
</div></div></blockquote></div><br></div>