"Start tag expected, '<' not found

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
ssgam
Posts: 22
Joined: 24. Aug 2009, 09:18
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: ubunut 9, windows

"Start tag expected, '<' not found

Post by ssgam »

HI All,

i was installing netbeans into my opensolaris guest,
(name: opensolaris) when the system ran out of space.

vbox says that the guest is no longer accessible,
and the opensolaris.xml file is now empty.

i followed suggestions on the forum to create a
new guest using the disk image of the old guest.

however, that gives me a new guest at the earliest
snapshot of the old guest.

is there a way i can get the snapshots from the old
guest into the new one ?

or is there a command that can be ran against the
snaphots to re-create the xml file ?

Thanks,
sam
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: "Start tag expected, '<' not found

Post by mpack »

To directly answer your question: assuming you have freed up enough disk space, then running VBoxManage clonehd on the most recent snapshot should result in a merged clone which you can build a new VM around.

However, there may be a simpler solution. Was there no <vmname>.xml-prev file in the VM folder? If yes then its possible that renaming that to <vmname>.xml will recover the VM - or at least recover more of it than does accessing the base VDI in a broken snapshot chain! (the advice you picked up from other threads was terrible btw).
ssgam
Posts: 22
Joined: 24. Aug 2009, 09:18
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: ubunut 9, windows

Re: "Start tag expected, '<' not found

Post by ssgam »

Thanks mpack!
will try as suggested.
cheers,Sam
ssgam
Posts: 22
Joined: 24. Aug 2009, 09:18
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: ubunut 9, windows

Re: "Start tag expected, '<' not found

Post by ssgam »

hi mpack,

clonehd works like you suggested.

although the latest snapshot (from ls -lt output), didn't seem
to get back to the state i wanted, had to back down a few snapshots
(to one that had a corresponding .sav file).

thanks very much again!
sam
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: "Start tag expected, '<' not found

Post by mpack »

ssgam wrote:although the latest snapshot (from ls -lt output), didn't seem to get back to the state i wanted, had to back down a few snapshots
(to one that had a corresponding .sav file).
The last modified date ought to be a pretty good indicator of which snapshot was most recently in use. Still, I'm glad you seem to have got your data back at least.
aravind
Posts: 1
Joined: 24. Jul 2013, 14:34

Re: "Start tag expected, '<' not found

Post by aravind »

mpack wrote: However, there may be a simpler solution. Was there no <vmname>.xml-prev file in the VM folder? If yes then its possible that renaming that to <vmname>.xml will recover the VM - or at least recover more of it than does accessing the base VDI in a broken snapshot chain! (the advice you picked up from other threads was terrible btw).
I know its an old thread but you've saved me (wo)man! Its worth registering with all the personal information that Oracle wants from me, to just say thanks because you deserve it.

I've had the exact same problem as the OP. I've tried the simpler solution as I didn't have enough space for clonehd and it worked.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: "Start tag expected, '<' not found

Post by mpack »

Well thanks to you to for going to all that trouble to provide feedback.

I should mention however that the advice above was correct two years ago, but things have moved on somewhat. New VMs created with VirtualBox v4.0.0 or later no longer have .xml files, instead they have .vbox files (which internally are still xml). In principle the solution still applies, except that it's ".vbox-prev" you should be looking for and renaming to ".vbox".

The ".vbox" name was introduced so that host OS's could identify VirtualBox control files distinctly from other xml files.


btw: snapshots are unreliable at the best of times and take up a lot of disk space. I think it's unwise to use them if disk space is short (you mentioned you didn't have enough space for clonehd). Hopefully you make regular backups to an external drive, and understand that snapshots themselves are useless as backups.
kytrak
Posts: 1
Joined: 7. May 2014, 11:22

Re: "Start tag expected, '<' not found

Post by kytrak »

You are the 2Pac of the Virtualbox world. Thanks! Cheers :D
mpack wrote:To directly answer your question: assuming you have freed up enough disk space, then running VBoxManage clonehd on the most recent snapshot should result in a merged clone which you can build a new VM around.

However, there may be a simpler solution. Was there no <vmname>.xml-prev file in the VM folder? If yes then its possible that renaming that to <vmname>.xml will recover the VM - or at least recover more of it than does accessing the base VDI in a broken snapshot chain! (the advice you picked up from other threads was terrible btw).
Post Reply