Current location:TranBon Blog > Homepage > technology > Migrate virtual machines in ESXi to Proxmox 5 via OVA/OVF export

Migrate virtual machines in ESXi to Proxmox 5 via OVA/OVF export

adminis7 years ago (2019-03-04)technology106490

1. Export OVA/OVF
The first step is to shut down the virtual machine to be migrated from the vSphere Client of ESXi, then select it, select it in the menu "File" - "Export" - "Export OVF Template", and then select "File Folder (OVF)" (or "Single File (OVA)") in the format, and wait for the export to complete. Note: The name is most without Chinese and some special symbols, and the symbol can use "-".

This method seems to compress the unused part of the virtual machine hard drive, which will be much smaller than the original VMDK file, if your virtual machine's hard drive is not fully used.


2. Upload to the target host

Then upload the VPS-180324022 file to proxmox to the host. You can use winscp and xftp.
You can also use the web side, when using the web side. Select "Folder View" on the left side of the web, then expand "Storage", select a storage where you can upload images, such as "local(33ol)", where 33ol is your host name, and select "Content" - "Upload" on the right. Because you can only upload iso or container template, select iso here, and then make the previous folder into iso to upload successfully.

I uploaded it to /var/lib/vz/template/iso using xftp. In fact, uploading to the root directory is also possible.


3. Decompression

After finding the uploaded file, you can use the SSH client or directly log in to the console on the web.

If you upload VPS-180324022.ova, you can copy or rename it to .ovaAdded later.iso
Copy:cp VPS-180324022.ova VPS-180324022.ova.iso
Rename:mv VPS-180324022.ova VPS-180324022.ova.iso

Then there is the decompression:tar xvf VPS-180324022.ova.iso
After successful unzipping, you will get the following files:
1. An OVF file, which contains the hardware configuration of the virtual machine, such as CPU specifications, memory, etc.
2. One or more VMDK files, these are hard disk images of virtual machines, the number depends on how many hard drives the virtual machine has.
Note: If you use wscp or xftp to upload the entire folder, you don't need to unzip it, you can import it directly.


4. Introduction
Add the cd VPS-180324022 directory to the directory, and then enter the directory to import
cd /var/lib/vz/template/iso/VPS-180324022
Import to create a VPS:qm importovf 180 VPS-180324022.ovf local-lvm --format raw

If not, create a virtual machine and then import the hard drive with the command:qm importdisk 180 VPS-180324022.vmdk local-lvm --format raw

Thereinto:
180 is the ID of the virtual machine, which is unique among all Proxmox virtual machines and is a 3-digit number.
VPS-180324022.ovf is an ovf file extracted from tar.
local-lvm is the target storage location. By default, the local installed Proxmox is only 100G, and it is not recommended to put the local in it.
–format raw is the format that specifies the image of the hard drive after import, and the default is raw format. If you use RAW format, you can leave it out by default.


5. Postscript
1. If the NIC is not successfully imported after the import is successful, you can manually add the corresponding NIC while keeping the imported virtual machine shut down.

If you need to keep the MAC address unchanged, you can first copy the corresponding NIC MAC in the vSphere Client, and then fill in the copied MAC when adding.

2. The OS type in the options needs to be modified to the corresponding version

3. But the boot will still have a blue screen, which is a problem with the hard disk drive.
Go to the hardware and first separate the hard disk, then edit the hard disk, and add it to the IDE. Then it will turn on normally.


Article 8 Random Copyright
Article Disclaimer
  • 尊敬的读者:
  • 本文所提供的信息、观点及数据均来源于公开资料、相关研究报告及个人理解,仅供读者参考。本文不代表任何官方立场或专业机构的意见,亦不构成任何投资建议或决策依据。
  • 在撰写本文时,我们已尽力确保信息的准确性和完整性,但鉴于信息来源的多样性及可能存在的误差,我们无法保证本文所述内容在任何时刻都绝对准确无误。因此,读者在阅读本文时,应结合自身实际情况及专业知识,进行独立分析和判断。
  • 对于因本文信息不准确、不完整或读者自身理解偏差而导致的任何损失或损害,我们概不负责。同时,我们也不承担因本文所述内容引发的任何法律责任或纠纷。
  • 此外,本文可能包含对特定公司、行业或市场的分析和预测,这些分析和预测均基于当前市场环境及可获得的信息,并可能受到多种因素的影响而发生变化。因此,读者在参考本文时,应充分考虑这些潜在的风险和不确定性。
  • 我们鼓励读者在阅读本文后,进一步查阅相关资料和咨询专业人士,以获取更全面、准确的信息和建议。同时,我们也欢迎读者就本文内容提出宝贵的意见和建议,以便我们不断改进和提升文章质量。
  • 最后,感谢读者对本文的关注和阅读。我们希望通过提供有价值的信息和观点,为读者在相关领域的学习和决策提供一定的帮助和参考。但请务必记住,本文所述内容仅供参考,不构成任何具体建议或承诺。
  • 特此声明。
阅读剩余的39%

Scan the QR code to push to your mobile phone access.

Copyright Notice: This article is written byTranBon BlogPublished, if you need to reprint, please indicate the source.

Link to this article:https://ww.33ol.com/?id=175

Related articles on "Migrating Virtual Machines in ESXi to Proxmox 5 via OVA/OVF Export"

CentOS fixed NIC card, NIC name will change, and NIC name is incorrect

CentOS fixed NIC card, NIC name will change, and NIC name is incorrect

cd /etc/udev/rules.d/ vi /etc/udev/rules.d/70-persistent-net.rules echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\&...

centos7 prompts an authentication token manipulation error when the password is broken

centos7 prompts an authentication token manipulation error when the password is broken

You need to enter chattr -i /etc/passwd chattr -i /etc/shadow before passwd as follows:...

Configure the my.cnf file in MySQL on CNOS, skip password authentication login, and set remote login (not necessarily valid).

Configure the my.cnf file in MySQL on CNOS, skip password authentication login, and set remote login (not necessarily valid).

When cnetos manually installs mysql without my.cnf configuration file, 1. You can copy the my.cnf file from other servers to the server you need, 2. You can touch to create a my.cnf file. This side directly uses the touch command my.cnf file, and creates it in the /etc/ directory [root@host ~]# touch&...

Leave a comment

visitor

私密评论
加载验证码中...

◎ Welcome to participate in the discussion, please express your views and opinions here.
简体中文繁體中文English한국어日本語DeutschрусскийبالعربيةTÜRKÇEportuguêsคนไทยFrançais