[one-users] Context CDROM seen as hard drive

Daniel Dehennin daniel.dehennin at baby-gnu.org
Sat Nov 16 09:23:54 PST 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131116/a4d5a70a/attachment-0001.pgp>


More information about the Users mailing list