Virtual Machines sharing saved states when on Dual boot?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
hal9000
Posts: 1
Joined: 16. Jul 2009, 15:49
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: ubuntu, xp

Virtual Machines sharing saved states when on Dual boot?

Post by hal9000 »

I am currently dual booting Vista/Ubuntu with virtualbox installed on both hosts. I have a windows xp and ubuntu guest machines installed with the files located on the vista NTFS partition. Is there anyway I can get my real ubuntu host to use/share the same virtual machines that are hosted on my Vista partition? I am guessing there should be a way since Ubuntu can read NTFS.

I also want to be able to share the saved states of the virtual machines, no matter what real partition i am currently running. Is there anyway to do this?

Thank you in advance for your help, and I hope i was clear in addressing my question :)

-hal
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Virtual Machines sharing saved states when on Dual boot?

Post by vbox4me2 »

Make another partition that can be read/written to from both OS's and move all the vbox xml and VDI files there.
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: Virtual Machines sharing saved states when on Dual boot?

Post by Sasquatch »

Sharing the VM, yes, that can be done. Sharing the saved state: only with some manual work which you don't really want. To get the saved state from one host to the other involves editing the XML file associated with the VM so it contains the saved state. Something that can be done when transferring the state from Windows to Linux, but you can't do it the other way around because Windows can't read the Linux file system. By default, saved states and snapshots are saved in the user profile folder, just like the machine settings and hard disk. You can change this, but it will still give you some work.

There is one thing you absolutely can't do, and that is use one VM settings file for both systems. Each OS has it's own layout because of the differences between them. E.g. audio, physical drives, shared folders, all those things are different. You don't have a /dev/scd0 on Windows, and you don't have DirectSound on Linux.

So, overall, it's too much work to think about sharing saved states and snapshots between two entirely different Hosts.
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