Hi All,
I'm using qemu-xen-traditional due to some bugs with the pvops drivers + RTC on upstream qemu, but it looks like cdrom support is fairly broken and unable to handle an ejected cdrom on boot, or change a cdrom after boot. This is on xen 4.6.
Trying to boot a VM with an empty cdrom via: 'format=raw, vdev=xvdc, access=ro, devtype=cdrom, target=',
Results in:
> Parsing config from /na/gx/xen/nathanwin
> libxl: error: libxl_dm.c:1662:stubdom_xswait_cb: Stubdom 57 for 56 startup: startup timed out
> libxl: error: libxl_create.c:1344:domcreate_devmodel_started: device model did not start: -9
> libxl: error: libxl.c:1610:libxl__destroy_domid: non-existant domain 56
> libxl: error: libxl.c:1568:domain_destroy_callback: unable to destroy guest with domid 56
> libxl: error: libxl.c:1495:domain_destroy_cb: destruction of domain 56 failed
Booting it with 'format=raw, vdev=xvdc, access=ro, devtype=cdrom, target=/mnt/xen/iso/xen_pv-8.1.iso' works, but then trying to change / eject the CD:
> # xl cd-insert nathanwin xvdc /mnt/xen/iso/xen_pv-8.1.iso
> libxl: error: libxl.c:2904:libxl_cdrom_insert: cdrom-insert doesn't work for stub domains
> # xl cd-insert nathanwin-dm xvdc /mnt/xen/iso/xen_pv-8.1.iso
> libxl: error: libxl.c:2898:libxl_cdrom_insert: cdrom-insert requires an HVM domain
> # xl cd-eject nathanwin xvdc
> libxl: error: libxl.c:2904:libxl_cdrom_insert: cdrom-insert doesn't work for stub domains
> # xl cd-eject nathanwin-dm xvdc
> libxl: error: libxl.c:2898:libxl_cdrom_insert: cdrom-insert requires an HVM domain
Trying to use block-configure as per https://wiki.xenproject.org/wiki/CD_Rom_Support_in_Xen just returns command not implemented, this seems to be removed in 4.6.
I can successfully eject the cd with:
> # xl block-detach nathanwin-dm xvdc
but can't put a new one in:
> # xl block-attach nathanwin-dm file:/mnt/xen/iso/ubuntu-14.04.3-server-amd64.iso,xvdc:cdrom,r
> libxl: error: libxl.c:2017:device_addrm_aocomplete: unable to add device
> libxl_device_disk_add failed.
> # xl block-attach nathanwin-dm 'format=raw, vdev=xvdc, access=ro, devtype=cdrom, target=/mnt/xen/iso/ubuntu-14.04.3-server-amd64.iso'
> libxl: error: libxl.c:2017:device_addrm_aocomplete: unable to add device
> libxl_device_disk_add failed.
> # xl block-attach nathanwin-dm "file:/mnt/xen/iso/ubuntu-14.04.3-server-amd64.iso" "hdc"
> libxl: error: libxl.c:2017:device_addrm_aocomplete: unable to add device
> libxl_device_disk_add failed.
Can anyone advise the proper way to create a vm here with an empty cdrom drive, and how to properly eject/insert a cd? Or simply have any suggestions on other things I can try?
Cheers,
Nathan