VirtualBox on an external hard disk

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Shakipu
Posts: 8
Joined: 29. Sep 2008, 17:17

VirtualBox on an external hard disk

Post by Shakipu »

Hello everyone,
I installed VirtualBox on an external hard disk so now I can start a Linux where I want but, there is a problem : VirtualBox need the .VirtualBox files located in C:\Documents and Settings\ORDINATEUR ( or COMPUTER for english's people ) if I want VB to recognize my vdi Linux... Sorry if I don't speak very well : I'm french... I think that the .VirtualBox files wich contains .xml files is absolutely needed for the recognition of the vdi but it's needed on the PC, and not in the external hard disk so when I wire my hard disk on another PC, I need to copy these files in the PC and I don't want this... So... How can I do if I want VB to read ( and to write on ) the file .VirtualBox in my external Hard disk and not in the PC ?
Please Help me, thank you

P.S : I hope you understand me... :s
Shakipu
Posts: 8
Joined: 29. Sep 2008, 17:17

Post by Shakipu »

A little new : I modify VirtualBox.xml in .VirtualBox and now, he load the machine wich is in the external hard disk but I need to copy VirtualBox.xml in C:\Documents and Settings\user's_name\.VirtualBox but I want VB to read the VirtualBox.xml situated in F:\VirtualBox\.VirtualBox ( my external hard disk )... How can I do this ?
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

Post by Sasquatch »

You can change the VB Preferences to use a different machine folder. With that, there will be only one file left in your user profile, which is essential. That file lists the registered VMs for your user account. You can't move this file to a different location. All the VM settings and drives however (the <vmname>.xml and .VDI files) will be on the other drive you specified in the preferences.
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.
Shakipu
Posts: 8
Joined: 29. Sep 2008, 17:17

Post by Shakipu »

Yes, I know this but I absolutely want to move VirtualBox.xml on my external hard disk and then my external hard disk will be independent to the PC ( except for the Host system )
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

Post by Sasquatch »

You could try to mount your external drive to an empty NTFS folder. Move the file to the root of the external drive and use the Windows Disk manager to attach it to the empty NTFS folder in your user profile folder .virtualbox. Too bad Windows can't handle symlinks.

The location of the VirtualBox.xml file is hard coded, you can't change it that easily (unless you compile your own version from the source code, but you won't have some functions as USB and RAW Disk Access. And you need a lot of additional tools for it to compile on Windows. See the main page for the build instructions ;).
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.
sandervl
Volunteer
Posts: 1064
Joined: 10. May 2007, 10:27
Primary OS: MS Windows Vista
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux, Solaris

Post by sandervl »

You can override the directory where VBox stores its config files with the VBOX_USER_HOME environment variable.
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

Post by Sasquatch »

Oh, right, forgot about that one.
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.
Shakipu
Posts: 8
Joined: 29. Sep 2008, 17:17

Post by Shakipu »

Sorry but i didn't read all you say and i found how to do what i want :
http://doc.ubuntu-fr.org/tutoriel/insta ... ur_externe
It's in French because i'm french ^^ so good luck !
Now I'm searching how to install VirtualBox for LINUX on my external hard disk... But I think it's impossible...
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

Post by Sasquatch »

Shakipu wrote:Sorry but i didn't read all you say and i found how to do what i want :
http://doc.ubuntu-fr.org/tutoriel/insta ... ur_externe
It's in French because i'm french ^^ so good luck !
Now I'm searching how to install VirtualBox for LINUX on my external hard disk... But I think it's impossible...
That is only possible if you compile the OSE version. You can change it's location by supplying a parameter to the configure script to change it's location (called prefix). With the binary, you can't. And even if you did manage, there are several symlinks, files in /etc and so on. On top of all that, there is also the kernel module which you have to take into account. Not an easy solution if you look at it that way.
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.
Shakipu
Posts: 8
Joined: 29. Sep 2008, 17:17

Post by Shakipu »

Yes, I think i can do that with symlinks and a compilation of the module each time i use VB but it will be reaaaally hard for me... Someone wanna try ?
Ok i will try... Some help ? :P
Post Reply