using one guest with multiple host's

This is for discussing general topics about how to use VirtualBox.
Post Reply
passerbycmc
Posts: 3
Joined: 24. Aug 2009, 16:38
Primary OS: openSUSE
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, openSuSE, Ubuntu

using one guest with multiple host's

Post by passerbycmc »

hello so here is the situation i have duel boot system with openSuSE 11.1 and Windows Seven and i have one Windows XP VM that i want to be able to use from both systems.

i got the same version on VB on both hosts and i got the machines and vdi stored on a common partition where both operating systems of full read/write to and in the VB options i have both of them pointing to the same disk image and machines folders but the machine i made in openSuSE still wont show in win7.

i dont really want to use a separate vm with the 2 os's because of disk space and convince.

i was pretty sure i was able to do this with the older versions
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: using one guest with multiple host's

Post by Sasquatch »

You need to create two VMs, one in each Host. The settings need to be exactly the same, including MAC address for the virtual NIC. Of course, a few settings cannot be the same, shared folders use different paths and the sound system is different between Linux and Windows. Now mount the same VDI in each VM and you're good to go.
Now there two things you have to keep in mind: No snapshots and saved states for the VM, or you hack the XML files of each VM to include the new snapshot files (you don't want to do this, takes too much time, a backup is much better). And the second thing you must know is that defragmenting the hard drive where the VDI resides is out of the question. I've had several times that the NTFS partition forced a disk check when I booted to Windows after a defrag from Windows. The first boot, it didn't give an error, defragmented it, and bam, disk check. You can loose your VM that way, or other important data.
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.
passerbycmc
Posts: 3
Joined: 24. Aug 2009, 16:38
Primary OS: openSUSE
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, openSuSE, Ubuntu

Re: using one guest with multiple host's

Post by passerbycmc »

ah ya the reason why i wanted to do this vs instead of just cloning the vm was for the save states but thanks for the info
passerbycmc
Posts: 3
Joined: 24. Aug 2009, 16:38
Primary OS: openSUSE
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, openSuSE, Ubuntu

Re: using one guest with multiple host's

Post by passerbycmc »

how would i move vm's around than cause now im trying to store my windows host vm's and my suse host vm's in differnt dirs and VB is complaing even know i told it to look in the new dirs for them and made the changes in the media manager
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: using one guest with multiple host's

Post by Sasquatch »

You change the VDI location in the general settings, move the VDI to the new location if you haven't done already, register the VDI from the new location (unregister the old one first) and mount it to the VM that needs 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.
Post Reply