0% found this document useful (0 votes)
71 views6 pages

Migrate VM From ESXi To TrueNAS Scale

curso truenas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views6 pages

Migrate VM From ESXi To TrueNAS Scale

curso truenas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Migrate VM from ESXi to TrueNAS Scale

ubuntu 20.04

Application Used: qemu-img


Command line: qemu-img convert -f vmdk -O raw image.vmdk image.img
You will find three vmdk files on the ESXi VM directory. The file named -flat.vmdk is the VM disk to be
converted.

1) Consolidate disks to ensure all is consolidated


From the UI: Virtual Machines → <VM> → Actions → Snapshots →
Consolidate Disks

2) Download <vm>-flac.vmdk file and <vm>.vmdk

3) Use qemu-img to convert:

qemu-img convert -f vmdk -O raw <vm>.vmdk <vm>.img

i.e.:

mello@olinda:/mnt/volume1/Downloads$ qemu-img convert -f vmdk -O raw subsonic.vmdk


subsonic.img
mello@olinda:/mnt/volume1/Downloads$ ll subsonic*
-rw------- 1 mello mello 68719476736 Jul 26 15:18 subsonic-flat.vmdk
-rw-r--r-- 1 mello mello 68719476736 Jul 26 16:40 subsonic.img
-rw------- 1 mello mello 612 Jul 26 16:24 subsonic.vmdk

4) create zvol
5) upload raw disk to zvol

scale# dd if=/mnt/tank/cifs/repository/subsonic.img of=/dev/zvol/tank/virtual_machines/subsonic


134217728+0 records in
134217728+0 records out
68719476736 bytes (69 GB, 64 GiB) copied, 12132 s, 5.7 MB/s

(*) Performed performance test with dd and rsync as above speed was very slow

scale# dd if=/dev/zero of=tmp.dat bs=2048k count=50k


51200+0 records in
51200+0 records out
107374182400 bytes (107 GB, 100 GiB) copied, 73.1564 s, 1.5 GB/s

scale# rsync -a --progress /mnt/tank/cifs/ ./


sending incremental file list
./
mello/
mello/.bash_logout
220 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=9/13)
mello/.bashrc
3,526 100% 88.29kB/s 0:00:00 (xfr#2, to-chk=8/13)
mello/.profile
807 100% 13.36kB/s 0:00:00 (xfr#3, to-chk=7/13)
repository/
repository/Windows 11 x64 - TheWindowsForum.com.iso
4,874,553,344 100% 69.57MB/s 0:01:06 (xfr#5, to-chk=5/13)
repository/subsonic.img
68,719,476,736 100% 299.93MB/s 0:03:38 (xfr#6, to-chk=4/13)
repository/ubuntu-20.04.2-live-server-amd64.iso
1,215,168,512 100% 112.45MB/s 0:00:10 (xfr#8, to-chk=2/13)
6) Create the VM

• Follow the screens to set the OS, CPU and Memory.


• On Disks screen, select Use existing disk image
• Select the zvol created on step 4

• Finish the VM configuration as required/needed

• Start the VM
Voyla
Issues

1) No IP address

Cause:
• Original VM from ESXi had interface named ens160;
• Migrated VM has an interface configured as ens3
Solution:
• Edit the configuration file under /etc/netplan and change the interface name from the old to
the new one. File type yaml.
• Execute netplan apply to obtain an ip address

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy