Techyou labs
真正的爱应该超越生命的长度,心灵的宽度,灵魂的深度
常用标签
您正在查看:标签 xen 下的文章
August 24, 2011

环境:Scientific Linux 6.1 64bitKVM:qemu-kvm-0.12.1.2

问题:1:迁移kvm的时候遇到的。在源机器上,镜像文件实际占用的空间和申请空间是不一样的。但cp镜像文件到新机器,发现就直接把申请空间当占用空间了。解决:cp --sparse=always 2:虚拟机的镜像路径改动过。启动不了 error: unable to set security context 'system_u:object_r:svirt_image_t:s0:c56,c391' on '/data/vmachines/ubuntu.luo.img': No such file or directory

系统默认会在/var/lib/libvirt/下面保存数据~so,删掉/var/lib/libvirt/qemu/save下面的东东即可(当然会丢失数据)

完美的解决办法:先关掉虚拟机。再重新启动

参考:http://www.ibm.com/developerworks/cn/linux/l-cn-mgrtvm2/index.html
一些KVM的工具集https://github.com/ghoneycutt/puppet-kvm
https://github.com/aidanshribman/qemu-kvm
https://github.com/ptman/kvmmgr
https://github.com/lvidarte/kvmctl
https://github.com/jagane/qemu-kvm-livebackup
https://github.com/serverhorror/python-kvmctl
https://github.com/tstafford/Simple-image-based-kvm-virsh-backup-scrip
thttp://stefan.hoefer.ch/node/3