How do I move a VM from Scale to CORE

hypercoffeedude

Dabbler
Joined
Dec 9, 2017
Messages
11
Hey everyone, I have two servers running TrueNAS in a home environment. My main server has TrueNAS-13.0-U1 and my backup server is on TrueNAS-SCALE-22.02-RC.2. I have decided to stick with core and I need to move a VM from SCALE to CORE. What is the best way to accomplish this? I know I could probably do this with Clonezilla, but is there a simpler way?
 

c77dk

Patron
Joined
Nov 27, 2019
Messages
468
I haven't tried it (did a reinstall back to CORE instead), but you might want to look into zfs send/zfs receive of the zvol. And then recreate VM using the zvol as storage
 

hypercoffeedude

Dabbler
Joined
Dec 9, 2017
Messages
11
I haven't tried it (did a reinstall back to CORE instead), but you might want to look into zfs send/zfs receive of the zvol. And then recreate VM using the zvol as storage
Thank you, I had not thought of that. I took a snapshot of my VMs, then did a zfs send/recv over netcat and had great success with one of them. I was running a Home Assistant VM which booted right up (uefi) after the move, and a second VM for running Docker images (Legacy BIOS) that did not boot. I am not sure how to get a VM that was set up for Legacy BIOS to boot properly on CORE. I tried selecting GRUB as opposed to UEFI, but it just gives me an error.

Code:
Call Error
[EFAULT] Unable to find boot device for '5_Docker' domain
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
VM GRUB boot on Core is quite finicky.


There are 2 properties that aren't available from the UI, only via API. Also, a GRUB VM can't boot from a zvol, only from a RAW file; you can achieve this by using dd to copy from the zvol to a RAW file, and creating a RAW file device for the VM.
 
Top