2

I have moved my VirtualBox VM's files to some external disk (I have many VMs and I don't have to much space on my laptop). Now when I start my VirtualBox application. I am having this error message:

Runtime error opening '/home/user/VirtualBox VMs/vm1/vm1.vbox' for reading: -102(File not found.).

I was wondering if it is possible to set a new path to my external disk so that VirtualBox could see my VM and start it without error. If this don't work, I will have to find how to Launch the virtual machine in a different way.

thanks

2

Easy!

To fix:

Open the regular virtual box gui. In the main window, right click on the machine that has been moved. It should have the word "Inacessible" (damn arrogant spell checkers, anyway) by it. Then click "remove" in the menu. Then left click the "remove" button in the pop up window to confirm it.

Now, using a graphical file browser, navigate to the new location of the machine. Right click on the something.vbox file and, in the context menu, click on "Open with virtualbox" or something like that. The exact entry wording may vary a bit depending on the exact version you have.

That's it. You're done.

- - - - - - - - - - - - - - - - - -

To change the default path for VMs, also easy:

In the VB gui you can also change the default path for new machines if you want to. In the upper left, click "File" to get a menu. Click "preferences" in the menu. You'll get a pop up box where you can set whatever default path you want.

1

The recommended way to move a virtual machine to another location is by calling the Virtual Box Media Manager (Ctrl+D) and copy a virtual drive to another location:

enter image description here

Choose another path for the new hard drive when asked:

enter image description here

Then attach this drive to the existing VM.


For new drives we can define the path Virtual Box stores them in the preferences (Ctrl+G):

enter image description here


If all fails we can always copy the existing folder to another location and create a symbolic link to there from the old location.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.