Hi Omer,

I have attached the engine.log and vdsm.log. Please check it. The vm id is - 7c7aa9dedb57248f5da291117164f0d7

-- 
Regards
Shanil

On Thu, Nov 27, 2014 at 1:46 PM, Shahar Havivi <shaharh@redhat.com> wrote:
Try to remove content and run the vm,
ie remove the runcmd: or some of it - try to use the xml with out CDATA maybe
you can pinpoint the problem that way...


On 27.11.14 10:03, Shanil S wrote:
> Hi All,
>
>
> I am using the ovirt version 3.5 and having some issues with the vm startup
> with cloud-init using api in run-once mode.....
>
> Below is the steps i follow :-
>
> 1. Create the VM by API from precreated Template..
> 2. Start the VM in run-once mode and push the cloud-init data from API..
> 3. VM stuck and from console it display the following :-
> Booting from DVD/CD.. ...
> Boot failed : could not read from CDROM (code 004)
>
> I am using the following xml for this operation :-
>
> <action>
>     <vm>
>      <os>
>       <boot dev='cdrom'/>
>      </os>
>      <initialization>
>       <cloud_init>
>        <host>
>         <address>test</address>
>        </host>
>        <network_configuration>
>         <nics>
>          <nic>
>           <interface>virtIO</interface>
>           <name>eth0</name>
>           <boot_protocol>static</boot_protocol>
>           <mac address=''/>
>           <network>
>            <ip address='' netmask='' gateway=''/>
>           </network>
>           <on_boot>true</on_boot><vnic_profile id='' />
>          </nic>
>          <nic>
>           <interface>virtIO</interface>
>           <name>eth1</name>
>           <boot_protocol>static</boot_protocol>
>           <mac address=''/>
>           <network>
>            <ip address='' netmask='255.255.255.0' gateway=''/>
>           </network>
>           <on_boot>true</on_boot><vnic_profile id='' />
>          </nic>
>         </nics>
>        </network_configuration>
>        <files>
>         <file>
>          <name>/ignored</name><content><![CDATA[#cloud-config
> disable-ec2-metadata: true
> disable_root: false
> ssh_pwauth: true
> ssh_deletekeys: true
> chpasswd: { expire: False }
>
> users:
>  - name: root
>    primary-group: root
>    passwd: 8W7RQ5Bh
>    lock-passwd: false
>
> runcmd:
>  - sed -i '/nameserver/d' /etc/resolv.conf
>  - echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
>  - echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
>  - echo 'root:8W7RQ5Bh' | chpasswd
>  - yum -y update
>  - yum -y install rdate
>  - rdate -s stdtime.gov.hk]]></content>
>          <type>plaintext</type>
>         </file>
>        </files>
>       </cloud_init><custom_script><![CDATA[#cloud-config
> disable-ec2-metadata: true
> disable_root: false
> ssh_pwauth: true
> ssh_deletekeys: true
> chpasswd: { expire: False }
>
> users:
>  - name: root
>    primary-group: root
>    passwd: 8W7RQ5Bh
>    lock-passwd: false
>
> runcmd:
>  - sed -i '/nameserver/d' /etc/resolv.conf
>  - echo 'nameserver 8.8.8.8' >> /etc/resolv.conf
>  - echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
>  - echo 'root:8W7RQ5Bh' | chpasswd
>  - yum -y update
>  - yum -y install rdate
>  - rdate -s stdtime.gov.hk]]></custom_script>
>      </initialization>
>     </vm>
>    </action>
>
> I am also attaching the screen shot to this.
>
>
>
> --
> Regards
> Shanil


> _______________________________________________
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users