kvm启动虚拟机报错

[root@localhost]# virsh list --all

Id Name State

----------------------------

- centos7.0 shut off

[root@localhost]#

[root@localhost]#

[root@localhost]# virsh start centos7.0

error: Failed to start domain centos7.0

error: Cannot access storage file '/var/lib/libvirt/images/centos7.0.qcow2' (as uid:107, gid:107): No such file or directory

[root@localhost]#

解决办法:

首先创建一个磁盘镜像,相当于是虚拟机的硬盘。

参考:

启动KVM虚拟机报错Cannot access storage file /var/lib/libvirt/images/centos7.0.qcow2的解决办法 - 运维术 (cnbugs.com)

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐