<div dir="ltr"><div>Hi Omer,<br><br></div>I have attached the engine.log and vdsm.log. Please check it. The vm id is - 7c7aa9dedb57248f5da291117164f0d7<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 Thu, Nov 27, 2014 at 1:46 PM, Shahar Havivi <span dir="ltr">&lt;<a href="mailto:shaharh@redhat.com" target="_blank">shaharh@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 maybe<br>
you can pinpoint the problem that way...<br>
<div><div class="h5"><br>
<br>
On 27.11.14 10:03, Shanil S wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt;<br>
&gt; I am using the ovirt version 3.5 and having some issues with the vm startup<br>
&gt; with cloud-init using api in run-once mode.....<br>
&gt;<br>
&gt; Below is the steps i follow :-<br>
&gt;<br>
&gt; 1. Create the VM by API from precreated Template..<br>
&gt; 2. Start the VM in run-once mode and push the cloud-init data from API..<br>
&gt; 3. VM stuck and from console it display the following :-<br>
&gt; Booting from DVD/CD.. ...<br>
&gt; Boot failed : could not read from CDROM (code 004)<br>
&gt;<br>
&gt; I am using the following xml for this operation :-<br>
&gt;<br>
&gt; &lt;action&gt;<br>
&gt;     &lt;vm&gt;<br>
&gt;      &lt;os&gt;<br>
&gt;       &lt;boot dev=&#39;cdrom&#39;/&gt;<br>
&gt;      &lt;/os&gt;<br>
&gt;      &lt;initialization&gt;<br>
&gt;       &lt;cloud_init&gt;<br>
&gt;        &lt;host&gt;<br>
&gt;         &lt;address&gt;test&lt;/address&gt;<br>
&gt;        &lt;/host&gt;<br>
&gt;        &lt;network_configuration&gt;<br>
&gt;         &lt;nics&gt;<br>
&gt;          &lt;nic&gt;<br>
&gt;           &lt;interface&gt;virtIO&lt;/interface&gt;<br>
&gt;           &lt;name&gt;eth0&lt;/name&gt;<br>
&gt;           &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
&gt;           &lt;mac address=&#39;&#39;/&gt;<br>
&gt;           &lt;network&gt;<br>
&gt;            &lt;ip address=&#39;&#39; netmask=&#39;&#39; gateway=&#39;&#39;/&gt;<br>
&gt;           &lt;/network&gt;<br>
&gt;           &lt;on_boot&gt;true&lt;/on_boot&gt;&lt;vnic_profile id=&#39;&#39; /&gt;<br>
&gt;          &lt;/nic&gt;<br>
&gt;          &lt;nic&gt;<br>
&gt;           &lt;interface&gt;virtIO&lt;/interface&gt;<br>
&gt;           &lt;name&gt;eth1&lt;/name&gt;<br>
&gt;           &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
&gt;           &lt;mac address=&#39;&#39;/&gt;<br>
&gt;           &lt;network&gt;<br>
&gt;            &lt;ip address=&#39;&#39; netmask=&#39;255.255.255.0&#39; gateway=&#39;&#39;/&gt;<br>
&gt;           &lt;/network&gt;<br>
&gt;           &lt;on_boot&gt;true&lt;/on_boot&gt;&lt;vnic_profile id=&#39;&#39; /&gt;<br>
&gt;          &lt;/nic&gt;<br>
&gt;         &lt;/nics&gt;<br>
&gt;        &lt;/network_configuration&gt;<br>
&gt;        &lt;files&gt;<br>
&gt;         &lt;file&gt;<br>
&gt;          &lt;name&gt;/ignored&lt;/name&gt;&lt;content&gt;&lt;![CDATA[#cloud-config<br>
&gt; disable-ec2-metadata: true<br>
&gt; disable_root: false<br>
&gt; ssh_pwauth: true<br>
&gt; ssh_deletekeys: true<br>
&gt; chpasswd: { expire: False }<br>
&gt;<br>
&gt; users:<br>
&gt;  - name: root<br>
&gt;    primary-group: root<br>
&gt;    passwd: 8W7RQ5Bh<br>
&gt;    lock-passwd: false<br>
&gt;<br>
&gt; runcmd:<br>
&gt;  - sed -i &#39;/nameserver/d&#39; /etc/resolv.conf<br>
&gt;  - echo &#39;nameserver 8.8.8.8&#39; &gt;&gt; /etc/resolv.conf<br>
&gt;  - echo &#39;nameserver 8.8.4.4&#39; &gt;&gt; /etc/resolv.conf<br>
&gt;  - echo &#39;root:8W7RQ5Bh&#39; | chpasswd<br>
&gt;  - yum -y update<br>
&gt;  - yum -y install rdate<br>
&gt;  - rdate -s <a href="http://stdtime.gov.hk" target="_blank">stdtime.gov.hk</a>]]&gt;&lt;/content&gt;<br>
&gt;          &lt;type&gt;plaintext&lt;/type&gt;<br>
&gt;         &lt;/file&gt;<br>
&gt;        &lt;/files&gt;<br>
&gt;       &lt;/cloud_init&gt;&lt;custom_script&gt;&lt;![CDATA[#cloud-config<br>
&gt; disable-ec2-metadata: true<br>
&gt; disable_root: false<br>
&gt; ssh_pwauth: true<br>
&gt; ssh_deletekeys: true<br>
&gt; chpasswd: { expire: False }<br>
&gt;<br>
&gt; users:<br>
&gt;  - name: root<br>
&gt;    primary-group: root<br>
&gt;    passwd: 8W7RQ5Bh<br>
&gt;    lock-passwd: false<br>
&gt;<br>
&gt; runcmd:<br>
&gt;  - sed -i &#39;/nameserver/d&#39; /etc/resolv.conf<br>
&gt;  - echo &#39;nameserver 8.8.8.8&#39; &gt;&gt; /etc/resolv.conf<br>
&gt;  - echo &#39;nameserver 8.8.4.4&#39; &gt;&gt; /etc/resolv.conf<br>
&gt;  - echo &#39;root:8W7RQ5Bh&#39; | chpasswd<br>
&gt;  - yum -y update<br>
&gt;  - yum -y install rdate<br>
&gt;  - rdate -s <a href="http://stdtime.gov.hk" target="_blank">stdtime.gov.hk</a>]]&gt;&lt;/custom_script&gt;<br>
&gt;      &lt;/initialization&gt;<br>
&gt;     &lt;/vm&gt;<br>
&gt;    &lt;/action&gt;<br>
&gt;<br>
&gt; I am also attaching the screen shot to this.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards<br>
&gt; Shanil<br>
<br>
<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</blockquote></div><br></div>