分享

virt

 浸心阁 2015-05-07

转载请注明出处:http://www./2014/06/virt-install-erro1

使用virt-install安装vm的时候出现了一下错误,解决方法如下:

$sudo ./create-vm-demo.sh

Starting install…

ERROR internal error process exited while connecting to monitor: char device redirected to /dev/pts/2

kvm: -drive file=/home/muge0913/workstation/kvm/test.img,if=none,id=drive-ide0-0-0,format=raw: could not open disk image

/home/muge0913/workstation/kvm/test.img: Permission denied

 

解决:编辑/etc/libvirt/qemu.conf添加内容如下,这样root就有操作的权限了。

user = “root”

# The group for QEMU processes run by the system instance. It can be

# specified in a similar way to user.

group = “root”

# Whether libvirt should dynamically change file ownership

# to match the configured user/group above. Defaults to 1.

# Set to 0 to disable file ownership changes.

dynamic_ownership = 0

 

#vrish list查看虚拟机运行情况




    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多