You are not logged in.
Has anyone had any luck with using a host CDROM with QEMU/KVM? For the life of me, I can't seem to get it to work
I launch my VM via the command line. I've tried pretty much every permutation of -drive and -cdrom and nothing works. The VM never sees the device or even accesses it. If I leave the drive tray open and launch the VM, the tray stays open. It's like there is no way for the VM to use the drive.
My optical drive is a Blu Ray burner. I don't care if I can write to it, I just want to read from it. It's located at /dev/sr0, and the host can use it totally fine. I'm running version 2.1.0 of QEMU
I've tried:
-cdrom /dev/sr0
and
-drive file=/dev/sr0,media=cdrom
I've tried passing bus and ports to the second one. Nothing works. Here is the command I use to launch my VM
qemu-system-x86_64 -enable-kvm -M q35 -m 12G -cpu host,kvm=off -smp 4,sockets=1,cores=4,threads=1 -bios /usr/share/qemu/bios.bin
-vga none -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1
-device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on -device vfio-pci,host=01:00.1,bus=root.1,addr=00.1
-device vfio-pci,host=06:00.0,bus=pcie.0 -device virtio-scsi-pci,id=scsi -drive file=/VM/win8.img,id=disk,format=raw
-device scsi-hd,drive=disk -drive file=/mnt/windows/win8_storage.img,id=disk2,format=raw -device scsi-hd,drive=disk2
-device pci-assign,host=00:19.0
-nographic -cdrom /dev/sr0
The PCI devices are my graphics card, a USB 3.0 card, and a NIC. Any help would be appreciated!
Last edited by BahbGTR (2014-09-13 15:30:39)
Offline
Solved, sort of. I just shared the optical drive using samba. Seems to work for the most part.
Offline