virt-v2v 轉換vcenter上的虛擬機到kvm
配置KVM服務器
配置virtio源
[root@localhost ~]# wget https://fedorapeople.org/groups/virt/virtio-win/virtio-win.repo -O /etc/yum.repos.d/virtio-win.repo
[root@localhost ~]#
安裝相關軟件包
[root@localhost ~]# yum install virt-v2v libguestfs-winsupport virtio-win libvirt qemu-kvm
準備遷移環境
- 關閉被轉換的虛擬機
創建default pool
[root@localhost ~]# virsh pool-define-as default --type pool_dir --target /var/lib/lib/libvirt/p_w_picpaths
將vcenter虛擬機轉換爲kvm虛擬機
[root@localhost ~]# export LIBGUESTFS_BACKEND=direct
# local模式, %40爲@
# 192.168.1.213 爲vcenterIP
# 192.168.1.211 爲待轉換虛擬機所在的esxi服務器IP
[root@localhost ~]# virt-v2v -ic vpx://administrator%[email protected]/Datacenter/192.168.1.211?no_verify=1 vm_name -o libvirt -of qcow2
JackDan9 Thinking