温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

创建kvm时提示Permission denied

发布时间:2020-06-08 07:36:14 来源:网络 阅读:440 作者:gaodi2002 栏目:系统运维

[root@localhost~]# virt-install --name dt_pxe --ram 8192 --vcpus=16 --disk path=/home/vm_test.img --cdrom /gaodi/iso/CentOS.iso --network=bridge:br-def,virtualport_type=openvswitch,model=virtio --os-type=linux --graphics vnc,listen=0.0.0.0 --boot cdrom

Starting install...
ERROR internal error: process exited while connecting to monitor: 2019-10-19T06:10:38.446209Z qemu-system-x86_64: -drive file=/gaodi/CentOS.iso,if=none,id=drive-ide0-0-1,readonly=on,format=raw: Could not open '/gaodi/CentOS.iso': Permission denied

Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start dt_pxe
otherwise, please restart your installation.
解决方法:给iso的父目录设置x权限,如果文件在多级目录下,要给每级目录都设置x属性。
[root@localhost~]# chmod 755 /gaodi/iso

[root@localhost~]# chmod 755 /gaodi

再重新启动就不会报错了。


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI