LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-08-2013, 06:14 AM   #1
DeeGee
Member
 
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, 06:49 AM   #2
parnmatt
Member
 
Registered: Apr 2013
Location: Lancaster
Distribution: Mac OS X
Posts: 38

Rep: Reputation: 7
Post

When you save the state, it will create a snapshot file to:
Code:
[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:
Code:
~/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:
Code:
$ ln -s <LINK> <TARGET>
or in Windows:
Code:
> mklink /d <LINK> <TARGET>
or for a directory junction
Code:
> 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 06:51 AM. Reason: Quick addition
 
Old 05-08-2013, 03:54 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,368

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


Reply


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 04:30 AM
Virtualbox USB State Unavailable IvanLow Slackware 2 03-27-2009 01:03 PM
Can't open saved web pages just saved by web browser... JeanBrownHarrel General 2 04-06-2008 11:52 AM
LXer: State by state, Microsoft responds to creeping threat LXer Syndicated Linux News 0 05-01-2007 07:16 AM


All times are GMT -5. The time now is 07:54 AM.

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