Move VM to a new Pool

Status
Not open for further replies.

Yusuf Limalia

Patron
Joined
Apr 5, 2016
Messages
234
So i've created a new Pool and wanted to move my Rancher VM onto the new pool.

I did this by doing:

dd if=/mnt/vol1/rancherui.img of=/mnt/vol2/rancherui.img

I then wanted to edit the VM to point to the newly DD'd image

Virtual Machines > RancherVM > Devices > Edit > RAW > Edit

1545575016824.png


I change the path to point to the new image, but the value doesn't get saved.

Any ideas if this will work / workaround ?

Thanks!
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288
@Yusuf Limalia My confidence in achieving this through the UI as you described is low. Nor does cloning a "Docker VM" work, deleting the RAW device and replacing also does not work. That leaves you with creating a new "Docker VM" with a new empty RAW file at the desired location, making sure it's of a size identical to your existing RAW file. Then before you ever start this new "Docker VM" dd the contents of existing RAW file to the new RAW file. Cross fingers and then start new "Docker VM".

One other possibility is to hack the device.map for your existing "Docker Vm" which is stored in the hidden .bhyve_containers dataset in your pool. But I don't think I'd want to do that.
 
Status
Not open for further replies.
Top