Using shared VMs on dual-boot (Win/Linux) PC

This is for discussing general topics about how to use VirtualBox.
Post Reply
imrazor
Posts: 34
Joined: 15. Oct 2015, 02:53
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows Server 2012 & R2, Win8.1, CentOS 7

Using shared VMs on dual-boot (Win/Linux) PC

Post by imrazor »

OK, I've actually got this working but I'm afraid there might be unforeseen consequences. Or in other words, am I just asking for trouble?
So I have dual boot laptop with three drives configured like so:
Drive A - SSD w/Win 10 Pro
Drive B - SSD w/Debian Jessie
Drive C - Hard drive formatted NTFS with VMs (and other data)
So far this actually seems to work. The VMs were created under Win10, but Debian Vbox will run them, though it will complain about missing ISO files.
Is there any reason to anticipate problems with this setup? I generally prefer Linux over Windows, but I like being able to play those AAA Windows games as well.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Using shared VMs on dual-boot (Win/Linux) PC

Post by socratis »

imrazor wrote:though it will complain about missing ISO files. Is there any reason to anticipate problems with this setup?
You've already seen the problems; paths. The way that paths (for mounted ISOs for example) are referenced is different between Windows and Linux. Other than that, if you kept the VM structure the default, you shouldn't see any problems.

Your VirtualBox preferences are going to be different of course.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
imrazor
Posts: 34
Joined: 15. Oct 2015, 02:53
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows Server 2012 & R2, Win8.1, CentOS 7

Re: Using shared VMs on dual-boot (Win/Linux) PC

Post by imrazor »

Thanks for that. I guess I'm just worried about potential filesystem corruption or permission issues, with the data volume being NTFS and non-native to Linux. I've got the Data volume automounting with uid 1000, which will hopefully prevent any permission issues. I take it the config files are universal regardless of which host OS is running Vbox?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Using shared VMs on dual-boot (Win/Linux) PC

Post by socratis »

imrazor wrote:I take it the config files are universal
If you're talking about the .VBOX file, the "recipe" of the VM, then yes, they are (except maybe line endings). As I said the exception is the paths.

The VirtualBox config file itself is not the same. That contains the registry of the VMs, and your VirtualBox Manager preferences, your definitions/modifications of Internal, HostOnly, NAT and NATService networks. That's stored at each user's home directory and since users are different when you boot different OSes, these are going to differ.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Using shared VMs on dual-boot (Win/Linux) PC

Post by scottgus1 »

A suggestion on the ISO files, untested:

Try putting the ISO files each guest needs to access in the guest folder along with the guest's .vbox file and virtual drive file(s). Maybe the path to the ISO would then also be relative instead of absolute?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Using shared VMs on dual-boot (Win/Linux) PC

Post by socratis »

No, actually it wouldn't because it also works its way on the VirtualBox.xml as in the Recent used files...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
imrazor
Posts: 34
Joined: 15. Oct 2015, 02:53
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows Server 2012 & R2, Win8.1, CentOS 7

Re: Using shared VMs on dual-boot (Win/Linux) PC

Post by imrazor »

socratis wrote:
imrazor wrote:I take it the config files are universal
If you're talking about the .VBOX file, the "recipe" of the VM, then yes, they are (except maybe line endings). As I said the exception is the paths.

The VirtualBox config file itself is not the same. That contains the registry of the VMs, and your VirtualBox Manager preferences, your definitions/modifications of Internal, HostOnly, NAT and NATService networks. That's stored at each user's home directory and since users are different when you boot different OSes, these are going to differ.
That makes sense. I had to add my NAT network to both instances of VirtualBox separately (once on Linux, once on Windows.) It's a bit confusing trying to figure out what's in the .xml file and what's in the VM's .vbox file.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Using shared VMs on dual-boot (Win/Linux) PC

Post by socratis »

You just quoted me listing what's stored in VirtualBox.xml, why are you still confused? Have you tried peeking at it? Peeking, not poking.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply