Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to create a virtual machine with virtualbox and use it on different computers. The problem is that I need to work on my programming projects on different machines and syncing them over the internet is getting increasingly uncomfortable.

Can I create a portable virtualmachine and use it across several hosts ? What is the host cpu architectures are different (32bit vs 64bit) ?

share|improve this question
The problem is with having virtualbox portable installed on usb, most schools and uni will not allow them to run due to security setting. I had the same problem and thanks. Having the default directory portable is the best option for me. ) – user286727 May 30 '14 at 6:31
up vote 6 down vote accepted

Export VM

With Virtual Box you can easily export, import or even clone your VMs to any place. This means, that once you export your VM to an external storage device you will be able to import this machine to any other instance of Virtual Box (of course irrespective of host OS).

Doing so is likely to be not so comfortable as you will have to export/import your machine everytime you made changes on the files hosted on your virtual drive. Depending on this drive size it may also take up quite some time to copy these data.

Define working directory on external drive

Therefore I suggest you set up Virtual Box to use a directory on the external drive as a standard location. In Virtual Box Manager open File - Preferences -General to define a "Default Machine Folder" than can also be on a (mounted) external drive.

enter image description here

Import VM

Then you also need to put your (previously exported) virtual hard disk there. Choose this location for the individual machine hard disk:

enter image description here

Carry your virtual machine to any place

You will now have a set up that not only stores the virtual disk drive but also the Virtual Box working directory for e.g. settings, snapshots etc. on the external drive.

Virtual Box is capable of running a 64-bit guest OS on a 32-bit host but this may not be as stable as when we stay within our architecture. You may need to test this first.

share|improve this answer

Why don't you install a good environment on a memory stick and boot that? If you say more about your issues, it's easier to provide good ideas.

share|improve this answer

Personally I would use portable virtualbox

share|improve this answer
portable virtualbox is available for windows only – binW Jan 16 '12 at 6:44
yes, but you can use the virtual disk in Linux. – bodhi.zazen Jan 16 '12 at 15:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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