[one-users] Context CDROM seen as hard drive

Javier Fontan jfontan at opennebula.org
Mon Nov 18 02:47:56 PST 2013


Do not use virtio as a device driver for the CDROM as it does not
emulate a CD. Use IDE (hda, for example).

On Sat, Nov 16, 2013 at 6:23 PM, Daniel Dehennin
<daniel.dehennin at baby-gnu.org> wrote:
> Hello,
>
> Running the debian installer with some preseed under ONE 4.2/Wheezy[1]
> gives me some troubles during partitioning.
>
> Here is my deployment.0:
>
> #+begin_src xml
> <domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>         <name>one-21</name>
>         <vcpu>2</vcpu>
>         <cputune>
>                 <shares>512</shares>
>         </cputune>
>         <memory>524288</memory>
>         <os>
>                 <type arch='x86_64'>hvm</type>
>                 <boot dev='hd'/>
>         </os>
>         <devices>
>                 <emulator>/usr/bin/kvm</emulator>
>                 <disk type='file' device='disk'>
>                         <source file='/var/lib/one//datastores/0/21/disk.0'/>
>                         <target dev='vda'/>
>                         <driver name='qemu' type='qcow2' cache='none' io='threads'/>
>                 </disk>
>                 <disk type='file' device='cdrom'>
>                         <source file='/var/lib/one//datastores/0/21/disk.1'/>
>                         <target dev='vdb'/>
>                         <readonly/>
>                         <driver name='qemu' type='raw'/>
>                 </disk>
>                 <interface type='bridge'>
>                         <source bridge='baby-gnu'/>
>                         <virtualport type='openvswitch'/>
>                         <mac address='02:00:0a:02:00:00'/>
>                         <model type='virtio'/>
>                 </interface>
>                 <graphics type='vnc' listen='0.0.0.0' port='5921' keymap='fr'/>
>         </devices>
>         <features>
>                 <acpi/>
>         </features>
> </domain>
> #+end_src
>
> The disk.1 is seen by Linux as a disk:
>
>     root at wheezy:/home/system# udevadm info -q env -p /block/vdb
>     DEVLINKS=/dev/disk/by-label/CONTEXT /dev/disk/by-path/pci-0000:00:05.0-virtio-pci-virtio2
>     DEVNAME=/dev/vdb
>     DEVPATH=/devices/pci0000:00/0000:00:05.0/virtio2/block/vdb
>     DEVTYPE=disk
>     ID_FS_LABEL=CONTEXT
>     ID_FS_LABEL_ENC=CONTEXT
>     ID_FS_TYPE=iso9660
>     ID_FS_USAGE=filesystem
>     ID_FS_VERSION=Joliet\x20Extension
>     ID_PATH=pci-0000:00:05.0-virtio-pci-virtio2
>     ID_PATH_TAG=pci-0000_00_05_0-virtio-pci-virtio2
>     MAJOR=254
>     MINOR=16
>     SUBSYSTEM=block
>     UDEV_LOG=3
>     USEC_INITIALIZED=2487053
>
> It's missing the “ID_CDROM=1”.
>
> The Debian installer is then not completely automatic since it ask to
> select which disk to use.
>
> Any hints to make it appear as a CDROM?
>
> Regards.
>
> Footnotes:
> [1]  libvirt-bin version 0.9.12-11+deb7u4
>
> --
> Daniel Dehennin
> Récupérer ma clef GPG:
> gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan



More information about the Users mailing list