How to resume machine state from different host?
-
chillrobot
- Posts: 9
- Joined: 14. May 2009, 07:15
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7Beta
How to resume machine state from different host?
For portability, I need to save machine state on one host and resume it on another. I have set my HardDrives, Machines, and Snapshots dirs to the appropriate subdir of .VirtualBox on my portable external hd (from both hosts), but when I start VB on the second host, no saved state is shown and no snapshots are listed.
How can I resume a saved state on a second host?
I use 2.2.2 on XP Pro (first host) and 2.2.4 on Vista Home Premium (second host).
How can I resume a saved state on a second host?
I use 2.2.2 on XP Pro (first host) and 2.2.4 on Vista Home Premium (second host).
Re: How to resume machine state from different host?
Host 2 is not looking at the same xml files as Host 1, check locations.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
chillrobot
- Posts: 9
- Joined: 14. May 2009, 07:15
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7Beta
Re: How to resume machine state from different host?
The following settings are the same on both hosts, except for the drive letters:
File | Preferences | General | Default Hard Disk Folder
XP - F:\.VirtualBox\HardDisks
Vista - G:\.VirtualBox\HardDisks
File | Preferences | General | Default Machine Folder
XP - F:\.VirtualBox\Machines
Vista - G:\.VirtualBox\Machines
Settings | General | Advanced | Snapshot folder
XP - F:\.VirtualBox\Machines\Win7RCPortable\Snapshots
Vista - G:\.VirtualBox\Machines\Win7RCPortable\Snapshots
What other settings need to be coordinated?
File | Preferences | General | Default Hard Disk Folder
XP - F:\.VirtualBox\HardDisks
Vista - G:\.VirtualBox\HardDisks
File | Preferences | General | Default Machine Folder
XP - F:\.VirtualBox\Machines
Vista - G:\.VirtualBox\Machines
Settings | General | Advanced | Snapshot folder
XP - F:\.VirtualBox\Machines\Win7RCPortable\Snapshots
Vista - G:\.VirtualBox\Machines\Win7RCPortable\Snapshots
What other settings need to be coordinated?
Re: How to resume machine state from different host?
There is a master xml and for each VM its own xml, you need to check them all. Currently you are looking in the GUI, you need to look inside the xml files.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
chillrobot
- Posts: 9
- Joined: 14. May 2009, 07:15
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7Beta
Re: How to resume machine state from different host?
I have only one VM, and it's configured by G:\.VirtualBox\Machines\Win7RCPortable\Win7RCPortable.xml on the external drive.
The entire contents of .VirtualBox on the external drive are:
.VirtualBox\VirtualBox.xml
.VirtualBox\HardDisks\Win7RCPortable.vdi
.VirtualBox\Machines\Win7RCPortable\Win7RCPortable.xml
.VirtualBox\Machines\Win7RCPortable\Logs (log files not listed)
.VirtualBox\Machines\Win7RCPortable\Snapshots\{213cd042-edd7-4680-a998-52ae9d05a9ba}.vdi
.VirtualBox\Machines\Win7RCPortable\Snapshots{a10cb512-5f88-4bab-aa3d-eb7d73d4ba0c}.sav
The contents of Win7RCPortable.xml seem to match the Snapshots directory contents. (see attached)
In VirtualBox.xml, I updated <MachineEntry> and <HardDisks>. (see attached)
When I start VB, no snapshots are offered in the UI, nor is any saved state shown. My changes to VirtualBox.xml should have made this work, I think, but didn't.
The log files don't show any errors about bad config.
Why don't these xml files lead the UI to offer saved state and snapshots?
The entire contents of .VirtualBox on the external drive are:
.VirtualBox\VirtualBox.xml
.VirtualBox\HardDisks\Win7RCPortable.vdi
.VirtualBox\Machines\Win7RCPortable\Win7RCPortable.xml
.VirtualBox\Machines\Win7RCPortable\Logs (log files not listed)
.VirtualBox\Machines\Win7RCPortable\Snapshots\{213cd042-edd7-4680-a998-52ae9d05a9ba}.vdi
.VirtualBox\Machines\Win7RCPortable\Snapshots{a10cb512-5f88-4bab-aa3d-eb7d73d4ba0c}.sav
The contents of Win7RCPortable.xml seem to match the Snapshots directory contents. (see attached)
In VirtualBox.xml, I updated <MachineEntry> and <HardDisks>. (see attached)
When I start VB, no snapshots are offered in the UI, nor is any saved state shown. My changes to VirtualBox.xml should have made this work, I think, but didn't.
The log files don't show any errors about bad config.
Why don't these xml files lead the UI to offer saved state and snapshots?
- Attachments
-
Win7RCPortable.xml- (11.54 KiB) Downloaded 8 times
-
VirtualBox.xml- (2.45 KiB) Downloaded 110 times
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: How to resume machine state from different host?
Are you machines of the same CPU architecture. Jumping from Intel to AMD is definitely a no-no and you may have problems moving architectures within vendor. It's just that the OS latches a load of info and tuning stuff as part of the OS bootstrap and they don't expect this sort of stuff to miraculously change mid-life.chillrobot wrote:For portability, I need to save machine state on one host and resume it on another.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
Re: How to resume machine state from different host?
Your best bet is to copy all the xml files over to the other machine and start from there.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
chillrobot
- Posts: 9
- Joined: 14. May 2009, 07:15
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7Beta
Re: How to resume machine state from different host?
Yes:TerryE wrote:Are you machines of the same CPU architecture.
host1: Intel Core2 Duo T7500 (XP Pro)
host2: Intel Core2 Duo T5550 (Vista Home Premium)
Remember, I'm using an external hd to store .VirtualBox. The two hosts have access to exactly the same xml files.vbox4me2 wrote:Your best bet is to copy all the xml files over to the other machine and start from there.
I suspect that the UI requires the "location" and "src" attributes of HardDisk, MachineEntry, etc to be absolute paths, and that if they aren't it ignores them. That would make portability difficult, since .VirtualBox is likely to be mounted under different drive letters when on different hosts.
Re: How to resume machine state from different host?
Are you using the vbox_home environment variable to make sure the host is looking at the right place? see also the manual.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
chillrobot
- Posts: 9
- Joined: 14. May 2009, 07:15
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7Beta
Re: How to resume machine state from different host?
I set environment variable VBOX_USER_HOME on my second host, restarted VB, and now I get an error "Premature end of data in tag VirtualBox in line 3...Location 'G:\.VirtualBox\VirtualBox.xml', line 34 (3), column 1."
Line 3 is:
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.7-windows">
and line 34 is after the last line of the file,
</VirtualBox>
The physically-same xml files work fine on my primary host, XP Pro, running the same version of VB, 2.2.4, as the secondary host. Since the versions are the same, I don't see why the xml parser would behave differently.
I have also done a VB install on a third windows host, set VBOX_USER_HOME to use the physically-same files, and got the same xml parser error.
Has anyone had luck using external storage to resume saved state across different windows hosts? I can't find anything helpful about this in the user manual.
Line 3 is:
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.7-windows">
and line 34 is after the last line of the file,
</VirtualBox>
The physically-same xml files work fine on my primary host, XP Pro, running the same version of VB, 2.2.4, as the secondary host. Since the versions are the same, I don't see why the xml parser would behave differently.
I have also done a VB install on a third windows host, set VBOX_USER_HOME to use the physically-same files, and got the same xml parser error.
Has anyone had luck using external storage to resume saved state across different windows hosts? I can't find anything helpful about this in the user manual.
-
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: How to resume machine state from different host?
That will be a problem. Those CPU's will generate a different ID. It doesn't matter if they are both Intel CPU's, or Core2Duo, they differ in hardware and that is enough to cause even one bit to be different in the identification. Restoring a saved state without a precise match of the CPU ID will fail. This ID is saved in the .sav file and therefore cannot be changed. Modifying it with a hex editor might get you to match the ID, but the file itself might get corrupted and restore will fail as well. Not to mention the possible corruption of the entire VM.chillrobot wrote:Yes:TerryE wrote:Are you machines of the same CPU architecture.
host1: Intel Core2 Duo T7500 (XP Pro)
host2: Intel Core2 Duo T5550 (Vista Home Premium)
And to make the different systems show the states, you have to modify the VM xml file itself too, so it won't list G:\...\.sav, when it should look at F:\... You can use Snapshots that way, not saved states.
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.
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.
-
chillrobot
- Posts: 9
- Joined: 14. May 2009, 07:15
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7Beta
Re: How to resume machine state from different host?
Thank you for the clarification. Maybe someday VB will support portability of machine state, too.Sasquatch wrote:You can use Snapshots that way, not saved states.
FWIW, I tried resuming a snapshot on my second and third hosts (when there was no saved state) but got the xml parse error noted above.
-
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: How to resume machine state from different host?
The error means that there is an open tag somewhere that isn't closed before the final close tag is noted. Like with HTML code, where you start with html, then body, but if you close html before body, then you can get errors like these.
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.
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.
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
Re: How to resume machine state from different host?
You can also get this error if you open an XML created by, say, 3.0.0 in version 2.2.4. If you want to share the XML definitions then make sure you run the same version of VBox on all machines.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.
-
chillrobot
- Posts: 9
- Joined: 14. May 2009, 07:15
- Primary OS: MS Windows XP
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7Beta
Re: How to resume machine state from different host?
Thanks Sasquatch and TerryE, but as I mentioned I made sure to run the same version of VB on all windows hosts before encountering this error.
And the xml is well-formed. The files are attached earlier in this thread.
If there are any VB developers who can suggest a test to help debug this situation, I'd be eager to try it.
And the xml is well-formed. The files are attached earlier in this thread.
If there are any VB developers who can suggest a test to help debug this situation, I'd be eager to try it.