Hacker News new | ask | show | jobs
by greyboy 3992 days ago
I never do the export/import process for that exact reason.

If I need to move a VM for some reason, I copy the entire VM directory to the new location then open VirtualBox and use "Machine" -> "Add ..." and select the directory with the VM config and files.

I hope that helps, unless I missed something.

2 comments

It would be nice to have the whole thing on an external SSD, which I could switch between my desktop and laptop.

Does this work or could the VMs get corrupted?

I have had no issues running a VM on an external drive.
Even if you ran it on one machine with a Linux host and on another with a Windows host?
I've not moved VM's between Windows and Linux, but it works fine going back and forth between OS X and Windows. The only caveat being that you have to re-visit the VM's settings for things like host volume mapping and especially networking config.
Seems like the .vdi files are configured relative, so at least this should go automatically.

Host volume mapping is a folder shared between the host and the VM?

> Host volume mapping is a folder shared between the host and the VM?

Yes.

thanks (also to bane for providing the link which essentially states the same), will try that next time