[英]Migrate multiple vmdk to openstack
I have a running vm in vmware environment and need to migrate that vm to openstack environment(qcow2).我在 vmware 环境中有一个正在运行的虚拟机,需要将该虚拟机迁移到 openstack 环境(qcow2)。
I exported my virtual machine and it created 3 vmdks files, now how can I install this 3 vmdk files in to openstack environment.我导出了我的虚拟机并创建了 3 个 vmdk 文件,现在如何将这 3 个 vmdk 文件安装到 openstack 环境中。 I have converted these 3 vmdks files to qcow2 format but how can I handle 3 qcow2 image to install my vm.
我已将这 3 个 vmdks 文件转换为 qcow2 格式,但如何处理 3 个 qcow2 映像来安装我的 vm。
Could someone guide please?有人可以指导吗?
You could try create server with --block-device-mapping
, check from " Block Device Mapping in Nova ".您可以尝试使用
--block-device-mapping
创建服务器,请查看“ Nova 中的块设备映射”。
Like this:像这样:
openstack server create --flavor FLAVOR.NAME --image qcow2.first.vmdk \
--block-device-mapping vdb=qcow2.second_1.vmdk:image \
--block-device-mapping vdc=qcow2.third_2.vmdk:image \
--nic port-id=the_port_with_same_ip_as_in_vmware \
qcow2_image_server_name
In my situation, we use ceph
to provide the shared storage, so I use volume
instead of the image
in above command line, it works for me.在我的情况下,我们使用
ceph
来提供共享存储,所以我在上面的命令行中使用volume
而不是image
,它对我有用。 I think it's similar with local disk storage like your scenario.我认为它类似于您的场景中的本地磁盘存储。
Another thing, I had test that ceph shared storage
could transform to local disk storage
with replace the disk's file by qemu-img convert
, vice versa.另一件事,我测试了
ceph shared storage
可以转换为local disk storage
,用qemu-img convert
替换磁盘文件,反之亦然。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.