LinuxEye - Linux系统教程

LinuxEye - Linux系统教程

当前位置: 主页 > Linux教程 >

CentOS 7 qemu-kvm用cdrom来安装系统报错

时间:2015-07-20 11:16来源:未知 编辑: 点击:
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,mode
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

转载请保留固定链接: http://www.linuxeye.com/Linux/2725.html

------分隔线----------------------------
标签:qemu-kvm
栏目列表
推荐内容