开发者社区> 问答> 正文

请教centos 7安装qemu-kvm之后,用virt-install来安装虚拟机报错?报错

请教centos 7安装qemu-kvm之后,用virt-install来安装虚拟机报错, 

virt-install --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

已经放入光盘,当前用户是root, 不管selinux是否关闭同样都会报错:

Starting install...
ERROR    internal error: early end of file from monitor: possible problem:
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

Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start win7
otherwise, please restart your installation.


展开
收起
爱吃鱼的程序员 2020-06-14 20:00:17 1252 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    在redhat上看到这是一个bug,redhat都已经禁止了。老衲也就不用cdrom来安装啦,用iso来搞。我也遇到同样的问题。网上也没找到相关的说明。兄弟能提供红帽相关说明的链接吗?非常感谢!!

    2020-06-14 20:00:36
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
基于英特尔 SSD 的虚拟机缓存解决SSD 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载