In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how VMware virtual machines can be migrated to openstack cloud platforms. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1 Operation content
Migrate from VMware virtual machine to kvm virtual machine. This manual is for VMware downtime migration, that is, VMware virtual machines are migrated to the cloud platform after downtime.
2 Overview of operation flow 2.1 Overview of Linux virtual machine migration process
VMware virtual machine image export-virtual machine image uploaded to the cloud platform control node-virtual machine image format conversion-virtual machine image imported to the cloud platform.
2.2 Overview of Windows virtual machine migration process
VMware virtual machine image export-virtual machine image format conversion-Windows image installation driver-virtual machine image uploaded to cloud platform control node-virtual machine image imported to cloud platform
3 detailed steps 3.1 Linux virtual machine migration detailed steps 3.1.1 VMware virtual machine image export
1. VMware virtual machine downtime
2. Export the mirror image
Note to record the configuration of the virtual machine, including CPU, memory, disk.
3.1.2 the virtual machine image is uploaded to the cloud platform control node
Transfer the ova file to the control node.
3.1.3 Virtual Machine Image format conversion
1. Extract files in ova format
Execute command: tar-xvf filename. Ova
2. Format conversion
Convert the decompressed vmdk format file to raw or qcow2 format
A) convert to raw:
The file name that qemu-img convert needs to convert .vmdk-f vmdk-O raw converted file name .raw
B) convert to qcow2:
Qemu-img convert needs converted filename .vmdk-f vmdk-O qcow2 converted filename .qcow2
3.1.4 Virtual machine images are imported to the cloud platform
Note: before importing, enter the command source / root/openrc
A) upload image command in raw format:
Glance image-create-- name uploaded image name-- visibility public-- disk-format raw-- container-format bare-- file original image directory and name .raw-- progress
B) upload image command in qcow2 format:
Glance image-create-- name uploaded image name-- visibility public-- disk-format qcow2-- container-format bare-- file original image directory and name .qcow2-- progress
Create a virtual machine with the uploaded image, and the migration is complete.
3.2 windows virtual machine migration detailed steps 3.2.1 VMware virtual machine image export
1. VMware virtual machine downtime
2. Export the mirror image
Note to record the configuration of the virtual machine, including CPU, memory, disk.
3.2.2 Virtual Machine Image format conversion
1. Extract files in ova format
Execute command: tar-xvf filename. Ova
2. Convert the decompressed vmdk format file to raw format
Execute command: qemu-img convert needs converted filename .vmdk-f vmdk-O raw converted filename .raw
3.2.3 Virtual Machine Image installation driver
1. Create an empty file on the computer where the linux system is installed, and execute the command: qemu-img create-f raw test.raw 1G. The purpose is to install the virtio driver for the virtual machine after boot.
Open the kvm console (virt-manager) on the computer where the linux system is installed, and create a virtual machine with the converted file
2. Configure the virtual machine
a. Add disk associated image file, set disk interface mode (IDE), storage format (RAW)
b. Add disk associated empty file test.raw (disk interface mode is set to virtio), storage format (RAW)
c. Add the optical drive associated driver file XXX.iso (please download the driver file yourself)
d. Turn on the virtual machine (boot the hard disk that is set to the image file)
3. Install the driver for the virtual machine
Installing a driver is the same as installing a driver for our own computer.
4. Virtual machine shutdown
3.2.5 upload the virtual machine image to the control node of the cloud platform
Transfer the image file of the installed driver to the control node
3.2.6 Virtual machine images are imported to cloud platform
Execute the command on the control node: source / root/openrc
Execute the command on the control node:
Glance image-create-- name uploaded image name-- visibility public-- disk-format raw-- container-format bare-- file original image directory and name .raw-- progress
3. Create a virtual machine through image
Note: to create a virtual machine, the original configuration should remain unchanged.
Log in to the cloud platform and you can see the uploaded image in the image menu
Create a virtual machine with the uploaded image
View the virtual machine in the console. The virtual machine was migrated successfully.
Thank you for reading! This is the end of the article on "how to migrate the VMware virtual machine to the openstack cloud platform". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Shell array inserts numbers and sorts them
© 2024 shulou.com SLNews company. All rights reserved.