Moving a VirtualBox virtual machine from one coputer to another

11 06 2011

Ok, so today I encountered a relative simple problem.. and a bit dumb also..

Virtualization is supposed to make our lives a bit easier.. and Oracle (from my point of view) has failed to do so. I got a new box at my place, so as you all may guess, i tried to move all my vm’s to my brand new shinny box. As an open source padwan, i try to mantain all my software and knowledge.. guess.. YES, open source !

That’s why i chose VirtualBox for my virtual lab.

On to the issue.. i just copied (click ‘n’ drag or $cp -r via console.. its the same result) my vm’s and all their files to an USB HDD, and then, again to the new box. BTW, both boxes are running Ubuntu (10.10 and 11.04). I had installed different versions of VirtualBox, but since im going from an “old” version to the latest version.. i thought there would be no problems at all.. you all know backwards compatibility right ?

Ok, so i fire up VBox on the new.. box😛, create a new vm, and i choose “an existing virtual disk”. And to my surprise, it returns an UUID problem. Seems that it wont be able to read the .vdi file.

Not reading/searching the error message, i thought it was just a user owning issue. So i $chmod the files.. and tried again. Same error message: ns_error_invalid_arg (0x80070057).

So a bit of searching.. it seem that i should have RTFMFA (aka read the manual). The method to copy/move/backup is using the VBoxManage framework, the complete command is like this:

$VBoxManage clonevdi /path-to-original/vm.vdi /path-to-destination/vm2.vdi

Remember to use full path to the files !

This way VBoxManage changes the UUID to the one on the box you are trying to move the vm. And problem solved !

After that just create a new virtual machine and use the “existing virtual harddisk” from where you chose to store it.


Acciones

Information

3 responses

3 04 2013
zorporno.com

We stumbled over here by a different page and thought I might check things
out. I like what I see so now i am following you. Look forward to exploring your web page for
a second time.

20 04 2013
free porno videos to watch

That is a really good tip especially to those new to the blogosphere.
Brief but very accurate information… Many thanks for sharing this one.
A must read article!

28 05 2013
http://www.pornoblack.org/sex-hardcore-fuking/

It’s not my first time to pay a visit this website, i am visiting this website dailly and get nice data from here everyday.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s




A %d blogueros les gusta esto: