[one-users] Could not read from CDROM (code 0004)
Javier Fontan
jfontan at opennebula.org
Mon Aug 18 08:11:09 PDT 2014
The problem seems to be the context CD, it's attached to hda and the
bootable cd to hdb. It tries to boot from the first cdrom and is not
bootable. It is strange that you don't have CONTEXT defined in your
template file. You can do two things. Take out CONTEXT section in case
it is defined so there is only one CDROM or specify the target so the
bootable CD is hda, something like this:
CONTEXT=[
NETWORK=YES,
TARGET=hdb ]
DISK=[
IMAGE="Debian",
IMAGE_UNAME="jakal",
READONLY="yes",
TARGET=hda ]
On Fri, Aug 15, 2014 at 8:05 AM, IBC Service Network / Zolotuhin
Aleksey <a.zolotuhin at ibc.ru> wrote:
> Hello!
>
> Thank you very much for your reply.
>
> Contents of the file /var/lib/one/datastores/0/35/deployment.0:
>
> <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
> <name>one-35</name>
> <cputune>
> <shares>512</shares>
> </cputune>
> <memory>524288</memory>
> <os>
> <type arch='x86_64'>hvm</type>
> <boot dev='cdrom'/>
> <boot dev='hd'/>
> </os>
> <devices>
> <emulator>/usr/bin/qemu-system-x86_64</emulator>
> <disk type='network' device='disk'>
> <source protocol='rbd' name='one/one-7'>
> <host name='cloud2'/>
> </source>
> <target dev='hdc'/>
> <driver name='qemu' type='raw' cache='none'/>
> </disk>
> <disk type='network' device='cdrom'>
> <source protocol='rbd' name='one/one-5'>
> <host name='cloud2'/>
> </source>
> <target dev='hdb'/>
> <readonly/>
> <driver name='qemu' type='raw' cache='none'/>
> </disk>
> <disk type='file' device='cdrom'>
> <source
> file='/var/lib/one//datastores/0/35/disk.2'/>
> <target dev='hda'/>
> <readonly/>
> <driver name='qemu' type='raw'/>
> </disk>
> <interface type='bridge'>
> <source bridge='br0'/>
> <virtualport type='openvswitch'/>
> <mac address='02:00:c0:a8:0a:79'/>
> </interface>
> <graphics type='vnc' listen='0.0.0.0' port='5935'/>
> </devices>
> <features>
> <acpi/>
> </features>
> </domain>
>
>
> output of the command
> $ file /var/lib/one/datastores/0/35/*
> /var/lib/one/datastores/0/35/deployment.0: ASCII text
> /var/lib/one/datastores/0/35/disk.2: # ISO 9660 CD-ROM filesystem data
> 'CONTEXT'
> /var/lib/one/datastores/0/35/disk.2.iso: symbolic link to
> `/var/lib/one/datastores/0/35/disk.2'
>
> Debian DATABLOCK disk is located in the Ceph.
> Debian ISO disk is located in the Ceph.
>
> After the upgrade to version 4.8. I get the following message:
> "Booting from DVD/CD...
>
> Boot failed: Could not read from CDROM (code 0004)
> Booting from Hard Disk...
> Boot failed: not a bootable disk
>
> No bootable device.
> "
>
> Best regards,
> Aleksey Zolotukhin
>
>
>
> -------- Original Message --------
> Subject: Re: [one-users] Could not read from CDROM (code 0004)
> From: Jaime Melis <jmelis at opennebula.org>
> To: IBC Service Network / Zolotuhin Aleksey <a.zolotuhin at ibc.ru>
> Date: 13.08.2014 13:54
>
> Hi,
>
> can you send us this file from the hypervisor:
>
> /var/lib/one/datastores/0/<vmid>/deployment.0
> and run this command:
>
> $ file /var/lib/one/datastores/0/<vmid>/*
>
>
> On Mon, Aug 11, 2014 at 12:25 PM, IBC Service Network / Zolotuhin Aleksey
> <a.zolotuhin at ibc.ru> wrote:
>>
>> Hello!
>>
>> I set up a cluster of 3 nodes Opennebula and Ceph.
>> Operating system Ubuntu 14.04.
>>
>> libvirt version:
>> libvirt-bin - 1.2.2-0ubuntu13.1.2
>> libvirt0 - 1.2.2-0ubuntu13.1.2
>>
>> qemu version:
>> qemu - 2.0.0+dfsg-2ubuntu1.2
>> qemu-common - 2.0.0+dfsg-2ubuntu1.2
>> qemu-keymaps - 2.0.0+dfsg-2ubuntu1.2
>> qemu-kvm - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system-arm - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system-common - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system-mips - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system-misc - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system-ppc - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system-sparc - 2.0.0+dfsg-2ubuntu1.2
>> qemu-system-x86 - 2.0.0+dfsg-2ubuntu1.2
>> qemu-user - 2.0.0+dfsg-2ubuntu1.2
>> qemu-utils - 2.0.0+dfsg-2ubuntu1.2
>>
>> Try to install Debian using debian iso.
>>
>> VM template:
>> CPU="0.5"
>> DISK=[
>> IMAGE="debian 7",
>> IMAGE_UNAME="jakal" ]
>> DISK=[
>> IMAGE="Debian",
>> IMAGE_UNAME="jakal",
>> READONLY="yes" ]
>> FEATURES=[
>> ACPI="yes" ]
>> GRAPHICS=[
>> LISTEN="0.0.0.0",
>> TYPE="VNC" ]
>> MEMORY="512"
>> NIC=[
>> NETWORK="LAN",
>> NETWORK_UNAME="jakal" ]
>> OS=[
>> BOOT="cdrom" ]
>>
>> But when the virtual machine starts, I get the following message:
>> "Booting from DVD/CD...
>> Boot failed: Could not read from CDROM (code 0004)
>> No bootable device."
>>
>> I tried looking for this problem on the internet and I have not found the
>> cause of this error.
>>
>> Tell me, please, what can I do to resolve this situation?
>> Thanks in advance for your assistance.
>>
>> Best regards,
>> Aleksey Zolotukhin
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Jaime Melis
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | jmelis at opennebula.org
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Javier Fontán Muiños
Developer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | @OpenNebula | github.com/jfontan
More information about the Users
mailing list