Jump to content
Sign in to follow this  
nlash

Moving VM from array to Unassigned SSD?

7 posts in this topic Last Reply

Recommended Posts

I have a MacOS VM on my cache drive that I'd like to move to an SSD via the Unassigned Devices plugin.

 

Is this possible without having to start all over? Any best practices?

Share this post


Link to post
Posted (edited)

Should be easy enough :)   Steps are basically:

  • stop the VM
  • copy any vdisks to their new location on the Unassigned Device
  • Edit the VM settings (easiest in XML view) to adjust the paths for the vdisks you have just moved to point to their new location on the UD drive
  • start the VM

that should be it :)

 

i suggested copying the vdisks rather than moving them to give you an easy fall-back position.    After you are happy the moved VM is working as expected you can then delete the copies from the cache disk.

Edited by itimpi

Share this post


Link to post

Sugest copying with cp --sparse=always, or risk the dest vdisk being much larger than source.

Share this post


Link to post
40 minutes ago, johnnie.black said:

Sugest copying with cp --sparse=always, or risk the dest vdisk being much larger than source.

I always wonder about whether it is better to run with sparse files or not!     The problem with sparse files is that the user can over-commit the disk space on the drive and then start wondering why VMs stop running properly as they run out of space.

 

Backing up the vdisk using sparse files makes more sense.  Can the cp command convert a non-sparse file to a sparse one?

Share this post


Link to post
2 minutes ago, itimpi said:

Can the cp command convert a non-sparse file to a sparse one?

Yep.

Share this post


Link to post
Just now, johnnie.black said:

Yep.

On that basis I would have thought that safest practise might to be to not have the live vdisks as sparse files, but make any backups as sparse files?

Share this post


Link to post
Just now, itimpi said:

On that basis I would have thought that safest practise might to be to not have the live vdisks as sparse files, but make any backups as sparse files?

I guess it depends on the use case, I have multiple VMs on the same device, and because they are all sparse I still have space for snapshots for a few days, of course I could also have smaller non sparse vdisks, but they would be prety close to maxed out and more trouble if needed to increase usage temporarily.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this