virt-v2v 转换vcenter上的虚拟机到kvm

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

你可能感兴趣的:(linux)