Portable images

This is for discussing general topics about how to use VirtualBox.
Post Reply
sorensenbrad
Posts: 4
Joined: 14. Oct 2009, 15:19
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Vista, 7 & Linux

Portable images

Post by sorensenbrad »

I have Virtualbox installed on both my home and work computer, I want to be able to take my Virtualbox virtual machines and snapshots back and forth for testing purposes.

I created all my OS's on my work computer with fixed 8gb partitions.
What do I copy over to my 64gb usb thumb drive so I can use the same Virtual machines at home as well as at work.

I created the following virtual machines (xp,vista,7 and linux)

Thanks
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Portable images

Post by Sasquatch »

You need to copy the whole .VirtualBox folder to the drive (folder located in your user profile) and set the environmental variable VBOX_USER_HOME to the thumb drive, on both systems. Hopefully, that works.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
sorensenbrad
Posts: 4
Joined: 14. Oct 2009, 15:19
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Vista, 7 & Linux

Re: Portable images

Post by sorensenbrad »

Thanks for the response however Im brand new to VirtualBox what do you mean by
"set the environmental variable VBOX_USER_HOME to the thumb drive"
Sorry to ask but what do you mean? Instructions for the newbie please.

Are you saying to change the path under
file
preferences
general
then change the path for default hard disk to folder and default machine folder to point to my USB drive?
Last edited by sorensenbrad on 14. Oct 2009, 16:20, edited 1 time in total.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Portable images

Post by Sasquatch »

It's all in the manual about the variable. Check Google for how to set system or user environmental variables on Windows. I don't really know where it is in Vista, I know where it is on XP (it's on System properties, tab Advanced where you will find a button for it).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Portable images

Post by Perryg »

Perhaps this will help for your Vista. Just edit the path and add the complete path to the VBox file. In my case it was F:\.virtualbox. Separate the statements with a ;
Attachments
path.jpg
path.jpg (64.41 KiB) Viewed 2198 times
sorensenbrad
Posts: 4
Joined: 14. Oct 2009, 15:19
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: XP, Vista, 7 & Linux

Re: Portable images

Post by sorensenbrad »

Thanks so the change is on the 2 host machines or within each virtual machine I created?
I looked within Sun virtualbox doesnt these settings have to be changed as well so it points to the usb drive? after the .VirtualBox folder has been copied to the usb drive or course.

open virtual box
file
preferences
general
then change the path for default hard disk to folder and default machine folder to point to my USB drive folders?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Portable images

Post by Sasquatch »

The variable needs to be put on the Host systems, not the VMs. They don't know about the Host or the location they are, all they thing is that they are running on a real computer.

The settings, after moving the folder and setting the variable, must be made by hand in the settings files themselves, not through the VB GUI (the VMs will be listed as inaccessible anyway, if a VM is listed at all). The files that need to be changed are each machine.xml file and the main VirtualBox.xml file. You need to change the location from relative paths to full paths. This is needed, because the relative paths start from the user profile, not the location of the VirtualBox.xml file (not really sure about that though, but better be on the safe side).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply