SOLVED Move Ubuntu VM to SSD Volume

Status
Not open for further replies.

Patrik Hansson

Explorer
Joined
Jan 6, 2017
Messages
78
Hi
Just installed a ssd mirror for my VMs and would like to move my existing Ubuntu VM to it.
Searching i'm only finding steps for jails, but not VMs.

Anyone done this ? Using Freenas 11.0-U2.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
Since it'll be a zvol. You'll need to replicate the zvol
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
The process should really be analogous, except that instead of pointing the GUI to a new Jails dataset, you point it to the new zvol.
 

Patrik Hansson

Explorer
Joined
Jan 6, 2017
Messages
78
Edit: sure i can, my bad


But if i move the zvol, how do i tell the VM where the data disk is ? Can't edit the ZVol path from what i can see.
Remove / add disk ?
 
Last edited:

Patrik Hansson

Explorer
Joined
Jan 6, 2017
Messages
78
Ok, so i did this for solution:

  1. Turn off VM
  2. zfs snapshot -r main_pool/VMName@relocate
  3. zfs send -R main_pool/VMName@relocate | zfs receive -v ssd_pool/VMName
  4. Change disk ZVol for the VM.
  5. Start the VM.
 
Status
Not open for further replies.
Top