virt-install:ERROR internal error process exited while connecting to monitor

简介:

使用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

重启libvirtd服务:

service libvirtd restart

 

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






      本文转自灬落魄灬  51CTO博客,原文链接:http://blog.51cto.com/smoke520/1795365,如需转载请自行联系原作者


相关文章
|
5月前
|
Linux Go C语言
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
85 0
|
6月前
|
Kubernetes Docker 容器
Job for docker.service failed because the control process exited with error code.
Job for docker.service failed because the control process exited with error code.
249 0
Install fail! Error: EBUSY: resource busy or locked, symlink
Install fail! Error: EBUSY: resource busy or locked, symlink
110 0
|
关系型数据库 MySQL 数据库
ERROR! MariaDB is running but PID file could not be found
在CentOS7.6上安装了MariaDB10.3,采用的yum方式安装的,用命令查看数据库的状态会报错误
162 0
|
网络协议
Job for named.service failed because the control process exited with error code.
Job for named.service failed because the control process exited with error code.
809 0
|
NoSQL MongoDB 数据安全/隐私保护
OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
1114 0
OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
|
Android开发
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
431 0
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
|
网络协议
Job for named.service failed because the control process exited with error code.怎么解决
本篇内容记录了如何解决Job for named.service failed because the control process exited with error code.的问题。
3607 0
Job for named.service failed because the control process exited with error code.怎么解决
|
Shell Windows
ERROR: Command `Install ‘code‘ command in PATH` exited with status code 1.
ERROR: Command `Install ‘code‘ command in PATH` exited with status code 1.
166 0
ERROR: Command `Install ‘code‘ command in PATH` exited with status code 1.
Starting a Gradle Daemon, 5 busy and 1 incompatible and 1 stopped Daemons could not be reused, use --status for details FAILURE: Build failed with an
执行gradle build出的问题,查看hs_err_pid11064.log日志文件发现,是电脑的RAM不足导致
4148 0