What should I do if I don’t want to use PVE anymore? Then migrate to VMware!

efa9754eeb9598f15bde26379995be43.gif

Total text: 1111 words and 20 pictures, estimated reading time: 1 minute

Many friends have the same feeling as me after using PVE(PVE8.0-2 Installation and Use Quick Guide) It’s just a bit awkward, and I want to change to a virtualization software, such as VMware ESXi. How should I do it?

As we said before, the bottom layer of PVE is also KVM virtualization, so the operation method should be more similar to KVM.

First, we need to find the disk file of the virtual machine. From the hardware configuration of the virtual machine, we can see that the hard disk is mounted in ide0 and the disk image is local-lvm:vm-101-disk-0.

875617a449e3b632efd03fddba60f8ad.png

Then we go to the navigation bar data center local-lvm (pve), we can see that there is this disk named vm-101-disk-0 in the VM disk, the format is raw, and the size is 34.36 GB.

6266d1256ba8f1157b13ea2d727497e2.png

So what is the real path of this disk? Let’s go to the command line to take a look, search directly, and find two files. The file /dev/pve/vm-101-disk-0 is the corresponding VM disk, but it is not a real path, but mapped to /dev. /dm-6.

e320f34d56d6e94a2351ab29572943dd.png

Confirm the file information and use the qemu-img command. For the introduction and usage of the command, please refer to (qemu-img Command Manual). Use the qemu-img info command to view disk image file information.

afac4d9abeac24b79062445fd02974e2.png

You can see that the file format is raw, and other information is basically the same as what you see on the page. The page display size is 34.36 GB because the base is 1000.

After confirmation, we can use the qemu-img convert command to convert the disk file format.

qemu-img convert [-c] [-p] [-n] [-f fmt] [-t cache] [-T src_cache] [-O output_fmt] [-o options] [-s snapshot_name] [ -S sparse_size] filename [filename2 [...]] output_filename

Convert a disk image filename or snapshot snapshot_name to a disk image output_filename using the format output_fmt, optionally compressing (the “-c” option) or using any format-specific options such as encryption (the “-o” option).

qemu-img convert -c -O vmdk /dev/pve/vm-101-disk-0 /nfs/tt/vm-101.vmdk

9f05737b349128c5c681a926ee6b4e20.png

After the conversion is complete, let’s take a look at the disk usage.

93dabc3fc9b31741e2c4b8f33dca1c44.png

It is also very strange that there is no increase compared to before the operation.

After the conversion is completed, we can see this disk file in VMware’s NFS storage(Configure the NFS server with the Debian 12 system of PVE8.0) .

83de660da1bc38c711d4fe4bf90230a9.png

Then we create a new virtual machine.

c949a996ab75669b7e2f9620b5b469cf.png

Follow normal virtual machine configuration and select the correct and appropriate operating system version.

062c816dd270e86451bf9c1f593438ec.png

Store the selection to the specified storage space.

4000b34bad00b0dcdc55a8b47cdc6621.png

Configure the appropriate hardware configuration and select the hard disk configuration.

ccfed8d9d6a7b789bc293c7410d2da7d.png

Quickly create virtual machines.

7615be777b680bbcd1431c96e32e95dd.png

After the creation is completed, enter the data storage browser and find the directory corresponding to the name of the virtual machine you just created. You can see that there is already a vmdk disk file below.

57f1bfba7e61822b1d7e28c5b154ba6e.png

Then we move the converted disk files in the NFS storage to this directory.

62f579e93251026e3414d2af39eb01db.png

Now check the file size on the disk or 276.81 MB.

f6b7badc4a2145f5655e0517a1d38f97.png

Then we edit the virtual machine settings while the virtual machine is powered off, delete the original hard disk, check “Delete files from data storage”, and then click “Add hard disk” , select Existing Drive.

78747b221bddc6bd4591a46691afaa90.png

It is the same as the last time the hardware was mounted(VMware uses the vmkfstools command to convert the thick provisioned virtual machine disk to thin provisioning), and it is also type and size identification. Inaccurate.

629fa50f6afde7bb40c16095c79ed00a.png

After the modification was completed, an error occurred when starting the virtual machine, indicating that the disk type was not supported. Now think back to what we mentioned at the beginning, what type of disk this is.

c275378e6186e1628d36e7bddcd37f73.png

Then in the hard disk configuration, change the controller location to “IDE Controller 0”.

286fbaff7d8311dd4aa31eec4b8e7a18.png

Start it again and you can enter the system normally.

0ae83d8f63e70a65da9842dbe2618acb.png

Working together is quite simple.

5b546bb30d1e577671cbc89ecb34f178.gif

Long press the QR code
Follow us

d6f2ca60ecbdf60e8bb13823acd97e6c.jpeg

e522038f3601ddce8edd10ac5b61a4ae.png

PVE8.0-2 Quick Guide for Installation and Use

Configure the NFS server using the Debian 12 system of PVE8.0

VMware storage management command vmkfstools usage guide

VMware uses the vmkfstools command to convert thick provisioning virtual machine disks to thin provisioning

I can’t use VMware after turning on Hyper-V. How to fix it?

Can you find a way for Hyper-V and VMware to coexist?

HPE server installs Tesla M4 through graphics card pass-through. Is this considered a success?

Switch to WDDM mode, Tesla M4 can be used for local display output!

Go all out, use a real machine to demonstrate the business of upgrading ESXi 6.7 to 7.0 U3

Network Road 25: VLAN Advanced Experiment-Super VLAN

CentOS 7 builds NFS server

Soft Exam Network Planner Review Chapter 6: Basic Network Experiment

Soft Exam Network Planner Review Chapter 5: Understanding Virtualization

Soft Exam Network Planner Review Chapter 4: Understanding Network Simulators

How should I configure FortiGate’s IPsec VPN?

Configuration example of using IKE digital signature RSA authentication to establish an IPsec tunnel