Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 05-08-2013, 07:14 AM   #1
Registered: Apr 2013
Distribution: Debian, Linux From Scratch, Mint
Posts: 118

Rep: Reputation: 24
Retaining saved state of a VirtualBox VM between two hosts

I run Ubuntu on my home computer and Windows XP at office.

I have a Debian VM on my ntfs USB drive and run it from both computers. It runs fine when the machine is powered off and restarted.

The problem is when I save the machine's state.

When I change to the other host, it reboots when I start the VM, without restoring the saved state.

Any workarounds, please? All help is greatly appreciated .
Old 05-08-2013, 07:49 AM   #2
Registered: Apr 2013
Location: Lancaster
Distribution: Mac OS X
Posts: 38

Rep: Reputation: 7

When you save the state, it will create a snapshot file to:
[VirtualBox Directory]/[VM Name]/Snapshots/*.sav
Which has a time index; the latest time index should be read first.

For example I just made one, it's stored on my machine:
~/VirtualBox VMs/Arch Linux/Snapshots/2013-05-08T11-39-00-247704000Z.sav
You can either bring these with you on a USB, and put them into the snapshot folder on your host; or use a service like Dropbox to automatically sync them, using soft links:
$ ln -s <LINK> <TARGET>
or in Windows:
> mklink /d <LINK> <TARGET>
or for a directory junction
> mklink /j <LINK> <TARGET>
Where <LINK> would be in your dropbox folder, and <TARGET> would be the directory for Snapshots.
You would have to do this on both machines.

Depends on how comfortable you are in Command Line.

Hope that helps.
If it doesn't, I hope it guides you to the right path.

Last edited by parnmatt; 05-08-2013 at 07:51 AM. Reason: Quick addition
Old 05-08-2013, 04:54 PM   #3
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
Is the hardware like cpu exactly the same?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set deadeyes Linux - Server 14 07-29-2009 05:30 AM
Virtualbox USB State Unavailable IvanLow Slackware 2 03-27-2009 02:03 PM
Can't open saved web pages just saved by web browser... JeanBrownHarrel General 2 04-06-2008 12:52 PM
LXer: State by state, Microsoft responds to creeping threat LXer Syndicated Linux News 0 05-01-2007 08:16 AM > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration