<html><head><style type="text/css">body,p,td,div,span{font-size:13px; font-family:Arial, Helvetica, sans-serif;};body{border: 0; margin: 0; padding: {0}px; height: {1}px; cursor: text}body p{margin:0px;}</style></head><body><P>Hello Vivek,</P>
<P> </P>
<P>Could you tell which version of OpenNebula you're running ?</P>
<P>Could you paste the template you're using to instantiate your VM ?</P>
<P> </P>
<P>If you just want to run a basic CentOS image, you can use the one available on OpenNebula's Marketplace (available from Sunstone).</P>
<P> </P>
<P>Enjoy</P>
<P>CyD</P><BR><BR>At Wednesday, 29/04/2015 on 18:04 VIVEK THALORA wrote:<BR>
<BLOCKQUOTE style="BORDER-BOTTOM: 0px; BORDER-LEFT: #22437f 2px solid; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 0px 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px">
<DIV dir=ltr>
<DIV>Hi,</DIV>
<DIV><BR></DIV>
<DIV>I am a newbie to OpenNebula, from the past one week i am trying to bring up a Virtual Machine by using an ISO file (CENTOS-6.6-Minimal) and an empty datablock. I was doing it through Opennebula Sunstone & I was referring following website (<A class=blue href="http://www.whotouchedmygun.com/2014/03/17/create-a-vm-image-in-opennebula/" target=_blank>http://www.whotouchedmygun.com/2014/03/17/create-a-vm-image-in-opennebula/</A>) for the help. But after completion when i tried to start the VM i am getting following error, Boot failed: Could not read from CDROM (code 0004) No bootable device. </DIV>
<DIV>In my case KVM Hypervisor,Opennebula Server all are on the same server and storage is local hard disk. Please suggest me if anything i need to modify. I couldn't get a proper solution on my internet search, or if there is any other alternate approach for the fulfillment of the same goal please suggest. Any solution from your side will be greatly appreciated.</DIV>
<DIV><BR></DIV>
<DIV>The output of file /var/lib/one/datastores/0/9/deployment.0 is,<domain type='kvm' xmlns:qemu='<A class=blue href="http://libvirt.org/schemas/domain/qemu/1.0" target=_blank>http://libvirt.org/schemas/domain/qemu/1.0</A>'></DIV>
<DIV>        <name>one-9</name></DIV>
<DIV>        <cputune></DIV>
<DIV>                <shares>1024</shares></DIV>
<DIV>        </cputune></DIV>
<DIV>        <memory>524288</memory></DIV>
<DIV>        <os></DIV>
<DIV>                <type arch='x86_64'>hvm</type></DIV>
<DIV>                <boot dev='cdrom'/></DIV>
<DIV>        </os></DIV>
<DIV>        <devices></DIV>
<DIV>                <emulator>/usr/libexec/qemu-kvm</emulator></DIV>
<DIV>                <disk type='file' device='cdrom'></DIV>
<DIV>                        <source file='/var/lib/one//datastores/0/9/disk.0'/></DIV>
<DIV>                        <target dev='hdb'/></DIV>
<DIV>                        <readonly/></DIV>
<DIV>                        <driver name='qemu' type='raw' cache='none'/></DIV>
<DIV>                </disk></DIV>
<DIV>                <disk type='file' device='disk'></DIV>
<DIV>                        <source file='/var/lib/one//datastores/0/9/disk.1'/></DIV>
<DIV>                        <target dev='sda'/></DIV>
<DIV>                        <driver name='qemu' type='qcow2' cache='none'/></DIV>
<DIV>                </disk></DIV>
<DIV>                <disk type='file' device='cdrom'></DIV>
<DIV>                        <source file='/var/lib/one//datastores/0/9/disk.2'/></DIV>
<DIV>                        <target dev='hda'/></DIV>
<DIV>                        <readonly/></DIV>
<DIV>                        <driver name='qemu' type='raw'/></DIV>
<DIV>                </disk></DIV>
<DIV>                <interface type='bridge'></DIV>
<DIV>                        <source bridge='br0'/></DIV>
<DIV>                        <mac address='02:00:c0:a8:a8:a3'/></DIV>
<DIV>                </interface></DIV>
<DIV>                <graphics type='vnc' listen='0.0.0.0' port='5909'/></DIV>
<DIV>        </devices></DIV>
<DIV>        <features></DIV>
<DIV>                <acpi/></DIV>
<DIV>        </features></DIV>
<DIV></domain></DIV>
<DIV><BR></DIV>
<DIV>
<DIV>If required please find the output of the following commands,</DIV>
<DIV><BR></DIV>
<DIV>[root@virtsvr02 ~]# file /var/lib/one/datastores/0/9/*</DIV>
<DIV>/var/lib/one/datastores/0/9/deployment.0: ASCII text</DIV>
<DIV>/var/lib/one/datastores/0/9/disk.0: symbolic link to `/var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e'</DIV>
<DIV>/var/lib/one/datastores/0/9/disk.1: symbolic link to `/var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4'</DIV>
<DIV>/var/lib/one/datastores/0/9/disk.2: # ISO 9660 CD-ROM filesystem data 'CONTEXT '</DIV>
<DIV>/var/lib/one/datastores/0/9/disk.2.iso: symbolic link to `/var/lib/one/datastores/0/9/disk.2'</DIV>
<DIV><BR></DIV>
<DIV>[root@virtsvr02 ~]# ls ltr /var/lib/one/datastores/0/9/*</DIV>
<DIV>lrwxrwxrwx 1 oneadmin oneadmin 58 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.0 -> /var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e</DIV>
<DIV>lrwxrwxrwx 1 oneadmin oneadmin 58 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.1 -> /var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4</DIV>
<DIV>-rw-r--r- 1 oneadmin oneadmin 374784 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.2</DIV>
<DIV>lrwxrwxrwx 1 oneadmin oneadmin 34 Apr 29 11:06 /var/lib/one/datastores/0/9/disk.2.iso > /var/lib/one/datastores/0/9/disk.2</DIV>
<DIV>-rw-rw-r- 1 oneadmin oneadmin 1051 Apr 29 11:06 /var/lib/one/datastores/0/9/deployment.0</DIV>
<DIV><BR></DIV>
<DIV>[root@virtsvr02 ~]# file /var/lib/one/datastores/1/*</DIV>
<DIV>/var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4: QEMU QCOW Image (v3), 7340032000 bytes</DIV>
<DIV>/var/lib/one/datastores/1/c012276cfb37c4306ab33d11d722d28d: QEMU QCOW Image (v2), 10737418240 bytes</DIV>
<DIV>/var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e: # ISO 9660 CD-ROM filesystem data 'CentOS 7 x86_64 ' (bootable)</DIV>
<DIV><BR></DIV>
<DIV>[root@virtsvr02 ~]# ls ltr /var/lib/one/datastores/1/*</DIV>
<DIV>-rw-r--r- 1 oneadmin oneadmin 870252544 Apr 23 05:53 /var/lib/one/datastores/1/c012276cfb37c4306ab33d11d722d28d</DIV>
<DIV>rw-r--r- 1 oneadmin oneadmin 197120 Apr 24 09:34 /var/lib/one/datastores/1/88b232605a7c139ff34c977652de25b4</DIV>
<DIV>rw-r--r- 1 oneadmin oneadmin 666894336 Apr 24 09:42 /var/lib/one/datastores/1/f90ddbc1ca16ca09b5474b4d672e834e</DIV>
<DIV><BR></DIV></DIV>
<DIV>Thanks & Regards,</DIV>
<DIV>Vivek P V</DIV></DIV></BLOCKQUOTE></body></html>