歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 7 qemu-kvm用cdrom來安裝系統報錯

CentOS 7 qemu-kvm用cdrom來安裝系統報錯

日期:2017/2/27 15:47:30   编辑:Linux教程
virt-install --connect qemu:///system --name=win7 --os-variant=win7 --ram=1024 --vcpus=2 --disk path=/d/virtual-machine/win7.img,format=qcow2,size=40,bus=virtio  --accelerate --vnc --vncport=5910 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole --cdrom=/dev/sr0

virsh attach-disk testbed /dev/sr0 hdc --type cdrom

Starting install...

ERROR internal error: process exited while connecting to monitor: qemu-kvm: -drive file=/dev/sr0,if=none,id=drive-ide0-1-0,readonly=on,format=raw: could not open disk image /dev/sr0: Driver 'host_cdrom' is not whitelisted

折騰了老久,你她嘛個13的,原來redhat也搞不定,

https://bugzilla.redhat.com/show_bug.cgi?id=1072610

Should not propose to install from CD/DVD in RHEL7
Marc-Andre Lureau 2014-03-04 16:42:05 EST

Description of problem:

CD/DVD host passthrough has been disabled in RHEL7. See #760885

How reproducible:
100%


Steps to Reproduce:
1. Setup a new VM using host CD/DVD drive
2.
3.
Actual results:
fails (see #760885 for reported error)

Expected results:
Shouldn't propose to install from host CD/DVD
Copyright © Linux教程網 All Rights Reserved