此文放在evernote快发霉了,整理一下放出来。
virsh start vm1368544020451
error: Failed to start domain vm1368544020451
error: internal error process exited while connecting to monitor: kvm: -drive file=/dev/sp1368155439693/v1368544020461,if=none,id=drive-virtio-disk0,format=qcow2: could not open disk image /dev/sp1368155439693/v1368544020461: Invalid argument
镜像格式错误,用qemu-img info 检查镜像和xml配置文件中指定的type是否一致。
启动虚拟机错误:
error: Failed to start domain vm0
error: internal error process exited while connecting to monitor: Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
No accelerator found!
上面的提示信息就是因为QEMU在初始化阶段因为无法找到kvm内核模块。
sudo modprobe kvm #载入指定的模块
重启电脑,进入bios界面,设置advance选项里面的virtualization标签为Enabled
通过命令 lsmod | grep kvm #显示已载入的模块
虚拟机迁移:
error: operation failed: Failed to connect to remote libvirt URI qemu+tcp://192.168.0.121(在URI后面加上/system,‘system’相当于root用户的访问权限)
error: Unsafe migration: Migration may lead to data corruption if disks use cache != none(加上--unsafe参数)
error: Timed out during operation: cannot acquire state change lock (启动虚拟机有时也会遇此错误),需要重启libvirtd进程
#virsh
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused(libvirtd 进程没有启动,libvirtd是一个监听客户端请求的进程)
$ virsh -c qemu:///system list
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
error: failed to connect to the hypervisor
(当前用户没有权限,修改/etc/libvirt/libvirtd.conf,unix_sock_rw_perms = 0777,使所有用户都有权限读写)
启动libvirtd进程出错
: /usr/local/sbin/libvirtd -d -l --config /usr/local/etc/libvirt/libvirtd.conf (编译安装的启动方式)error:/usr/local/sbin/libvirtd: initialization failed
try to install libpcap-devel RPM and rebuild libvirt http://comments.gmane.org/gmane.comp.emulators.libvirt/58218
apt-get install libpcap-dev
上面的方法好像都没有效果,但是尝试了http://wiki.libvirt.org/page/The_daemon_cannot_be_started说的,把配置文件里的
listen_tls = 0注释取消(更奇怪的问题,在我的客户端链接不对)
启动虚拟机:Connection reset by peer
virsh start vm1355991767186
error: Failed to start domain vm1355991767186
error: Unable to read from monitor: Connection reset by peer
还有可能是这样提示:
error: internal error process exited while connecting to monitor: Failed to allocate 16332619776 B: Cannot allocate memory
这个问题可能是因为为VM分配的内存过大(甚至超过的物理主机的内存大小)
Unable to load library 'virt': libvirt.so: cannot open shared object file: No such file or directory
# virsh undefine vm1354695894990
error: Refusing to undefine while domain managed save image exists
http://www.redhat.com/archives/libvir-list/2011-July/msg01219.html
managedsave
相关推荐
libvirt(virsh命令总结).docx
Libvirt Qemu KVM 教程大全
Openstack Libvirt 介绍 Openstack Libvirt 介绍 Openstack Libvirt 介绍
虚拟化环境qemu 与libvirt的解析
libvirt
libvirt java绑定包 提供java API
libvirt-java0.4.7
libvirt开发基础资料(Foundations of Libvirt Development) 完整版
libvirt源码,用于安装,0.9.11
libvirt application development guide, python,libvirt应用开发指南python版
libvirt C语言应用开发指南。2020年9月版本,与2012年版本相比多了到2020-04-07的4个提交。
libvirt编译安装
libvirt自用模板,为了便于理解在//后写了部分注释。可能会出现乱码,保存前删除掉就好。 libvirt配置我也不是很了解,这个只作为基础理解和使用。
Libvirt 网络管理 Bridge模式及NAT模式的简单介绍
libvirt-snmp 虚拟化网络管理接口工具,解包后编译,安装方法可以看http://blog.csdn.net/gg296231363/article/details/6927759
libvirt-0.9.7,一个很老的版本,希望有人用到。 Libvirt是用于管理虚拟化平台的开源的API,后台程序和管理工具。它可以用于管理KVM、Xen、VMware ESX,QEMU和其他虚拟化技术。这些API在云计算的解决方案中广泛使用
libvirt-client-0.10.2-62.el6.x86_64.rpm libvirt-client-0.10.2-62.el6.x86_64.rpm
Libvirt虚拟化技术介绍.pdf
内核级虚拟化技术KVM(Kernel-based Virtual Machine)和管理工具libvirt 对kvm&libvirt的一个介绍ppt 课程作业所用
编译后直接可用的libvirt-java.jar,java监控虚拟机的必要jar包