Crash: Premature end of data in tag VirtualBox line 2.

Discussions about using Windows guests in VirtualBox.
Locked
Donaldus
Posts: 4
Joined: 15. Jan 2010, 17:38
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: 1

Crash: Premature end of data in tag VirtualBox line 2.

Post by Donaldus »

Hi,
I was trying to have CSS working on my virtualbox, it was only a question of pointer yet but the whole thing crashed and as a result I had to reboot my host.
I can't run my Windows XP anymore and have this error, see file attached.

Is there any way to restore my machine?

Thanks
Attachments
Screenshot.jpeg
Screenshot.jpeg (105.68 KiB) Viewed 21397 times
Last edited by Donaldus on 15. Jan 2010, 22:26, edited 1 time in total.
Donaldus
Posts: 4
Joined: 15. Jan 2010, 17:38
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: 1

Re: Virtual machine crash, Premature end of data in tag VirtualB

Post by Donaldus »

Here is the file concerned by the error:

Code: Select all

<?xml version="1.0"?>
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.8-linux">
  <Machine uuid="{bb956385-6a95-4fc7-97c8-b1a8e4a6bb1e}" name="Windoze" OSType="WindowsXP" lastStateChange="2010-01-15T15:10:32Z">
    <ExtraData>
      <ExtraDataItem name="GUI/AutoresizeGuest" value="on"/>
      <ExtraDataItem name="GUI/Fullscreen" value="off"/>
      <ExtraDataItem name="GUI/LastCloseAction" value="shutdown"/>
      <ExtraDataItem name="GUI/LastWindowPostion" value="3,24,1024,816,max"/>
      <ExtraDataItem name="GUI/MiniToolBarAlignment" value="bottom"/>
      <ExtraDataItem name="GUI/MiniToolBarAutoHide" value="on"/>
      <ExtraDataItem name="GUI/SaveMountedAtRuntime" value="yes"/>
      <ExtraDataItem name="GUI/Seamless" value="off"/>
      <ExtraDataItem name="GUI/ShowMiniToolBar" value="yes"/>
    </ExtraData>
    <Hardware version="2">
      <CPU count="1">
        <HardwareVirtEx enabled="true"/>
        <HardwareVirtExNestedPaging enabled="true"/>
        <HardwareVirtExVPID enabled="false"/>
        <PAE enabled="false"/>
      </CPU>
      <Memory RAMSize="1024"/>
      <Boot>
        <Order position="1" device="Floppy"/>
        <Order position="2" device="DVD"/>
        <Order position="3" device="HardDisk"/>
        <Order position="4" device="None"/>
      </Boot>
      <Display VRAMSize="128" monitorCount="1" accelerate3D="true" accelerate2DVideo="true"/>
      <RemoteDisplay enabled="false" port="3389" authType="Null" authTimeout="5000"/>
      <BIOS>
        <ACPI enabled="true"/>
        <IOAPIC enabled="false"/>
        <Logo fadeIn="true" fadeOut="true" displayTime="0"/>
        <BootMenu mode="MessageAndMenu"/>
        <TimeOffset value="0"/>
        <PXEDebug enabled="false"/>
      </BIOS>
      <DVDDrive passthrough="false">
        <Image uuid="{cd083bf4-ca2a-4df4-8184-5cbffbdc7a47}"/>
      </DVDDrive>
      <FloppyDrive enabled="true"/>
      <USBController enabled="true" enabledEhci="true">
        <DeviceFilter name="EPSON USB2.0 MFP(Hi-Speed) [0100]" active="true" vendorId="04b8" productId="0839" revision="0100" manufacturer="EPSON" product="USB2.0 MFP(Hi-Speed)" serialNumber="640000000000000000" remote="no"/>
        <DeviceFilter name="Logitech USB Receiver [3810]" active="true" vendorId="046d" productId="c517" revision="3810" manufacturer="Logitech" product="USB Receiver" remote="no"/>
      </USBController>
      <Network>
        <Adapter slot="0" enabled="true" MACAddress="08002715442F" cable="true" speed="0" type="Am79C973">
          <NAT/>
        </Adapter>
        <Adapter slot="1" enabled="false" MACAddress="08002781984B" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="2" enabled="false" MACAddress="0800270DD676" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="3" enabled="false" MACAddress="080027AA3FDE" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="4" enabled="false" MACAddress="08002783B23C" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="5" enabled="false" MACAddress="08002712F310" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="6" enabled="false" MACAddress="0800272880CD" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="7" enabled="false" MACAddress="080027577F40" cable="true" speed="0" type="Am79C973"/>
      </Network>
      <UART>
        <Port slot="0" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
        <Port slot="1" enabled="false" IOBase="0x2f8" IRQ="3" hostMode="Disconnected"/>
      </UART>
      <LPT>
        <Port slot="0" enabled="false" IOBase="0x378" IRQ="4"/>
        <Port slot="1" enabled="false" IOBase="0x378" IRQ="4"/>
      </LPT>
      <AudioAdapter controller="AC97" driver="Pulse" enabled="true"/>
      <SharedFolders>
        <SharedFolder name="Shared" hostPath="/media/Shared" writable="true"/>
      </SharedFolders>
      <Clipboard mode="Bidirectional"/>
      <Guest memoryBalloonSize="0" statisticsUpdateInterval="0"/>
      <GuestProperties>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="
Donaldus
Posts: 4
Joined: 15. Jan 2010, 17:38
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: 1

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by Donaldus »

Please guys, don't let me in the gloom!
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by MarkCranness »

Do you have any backups (even old ones) of the file Windoze.xml?

You will have to recreate or restore or replace the Windoze.xml file. You should be able to recreate a new VM close enough to the old one and attach its VDI/virtual hard disk files and there is a good chance your VM can be recovered. You will likely lose any snapshots (if you had any).

General procedure is to:
- find the VDIs that corresponded to the 'Current State',
- IF you had snapshots then clonehd the 'Current State' VDI to a new VDI,
- create a new VM with VirtualBox config as close as you can get to the original,
- attach the VDI(s)
- give it a go.

Before trying any of this, backup the entire .VirtualBox folder, in case any 'repair' steps damage anything.

If you did *not* have snapshots, then you likely know the VDI.
Otherwise if you *did* have snapshots then see this post: http://forums.virtualbox.org/viewtopic. ... 91#p106206
Because your machine xml file is truncated, your Virtual Media Manager will not show that the VDI files are attached to any VM, so clonehd the LAST {hexUUID}.vdi in the tree rather than try and find the 'Current State'.

Create a new VM 'Windoze2' and configure it as close as you can remember to the old one.
Use 'Windoze.xml' as a reference while creating the new VM, and reuse the network card MACAddress from it (new VM: Settings>Network>Adapter n>Advanced>Mac Address:).

Attach the VDI to it (either the base VDI or the clonehd'ed VDI as above).

Perhaps 'Upload attachment' your VirtualBox.xml file.

Re-ask in this thread if any further questions or problems.
Donaldus
Posts: 4
Joined: 15. Jan 2010, 17:38
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: 1

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by Donaldus »

Well, it worked just fine!

I did create a new VM similar to the first one.
The, I copied the .wml of the new one into the first one folder,
then I edited the uuid's matching the one in the registery ~/.VirtualBox/VirtualBox.xml

Refreshed (The window crashed at that moment btw)
Re-opened the programme and both machines were in fonction.

Thank you very much!
tpost001
Posts: 4
Joined: 24. Feb 2010, 01:28
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by tpost001 »

I have a similar problem. I must admit that I don't understand the solution suggested here. I have not made any Snapshots. Do I have to start all over from scratch?

Here is my error message:
Premature end of data in tag VirtualBox line 2.
Location: '/home/thomas/.VirtualBox/Machines/WindowsXP/WindowsXP.xml', line 130 (2), column 1.
/home/vbox/vbox-3.1.4/src/VBox/Main/MachineImpl.cpp[5832] (nsresult Machine::loadSettings(bool)).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
VirtualBox
Interface:
IVirtualBox {2158464a-f706-414b-a8c4-fb589dfc6b62}

And here is my aborted .xml file

Code: Select all

<?xml version="1.0"?>
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.9-linux">
  <Machine uuid="{36796d73-7cc5-4f7c-8378-41f6cfe3d26b}" name="WindowsXP" OSType="WindowsXP" lastStateChange="2010-02-23T21:39:07Z" aborted="true">
    <ExtraData>
      <ExtraDataItem name="GUI/AutoresizeGuest" value="on"/>
      <ExtraDataItem name="GUI/Fullscreen" value="off"/>
      <ExtraDataItem name="GUI/InfoDlgState" value="400,450,normal"/>
      <ExtraDataItem name="GUI/LastCloseAction" value="powerOff"/>
      <ExtraDataItem name="GUI/LastWindowPostion" value="199,107,800,648,max"/>
      <ExtraDataItem name="GUI/MiniToolBarAlignment" value="bottom"/>
      <ExtraDataItem name="GUI/MiniToolBarAutoHide" value="on"/>
      <ExtraDataItem name="GUI/SaveMountedAtRuntime" value="yes"/>
      <ExtraDataItem name="GUI/Seamless" value="off"/>
      <ExtraDataItem name="GUI/ShowMiniToolBar" value="yes"/>
    </ExtraData>
    <Hardware version="2">
      <CPU count="1">
        <HardwareVirtEx enabled="true" exclusive="true"/>
        <HardwareVirtExNestedPaging enabled="false"/>
        <HardwareVirtExVPID enabled="false"/>
        <PAE enabled="false"/>
      </CPU>
      <Memory RAMSize="512"/>
      <Boot>
        <Order position="1" device="DVD"/>
        <Order position="2" device="HardDisk"/>
        <Order position="3" device="None"/>
        <Order position="4" device="None"/>
      </Boot>
      <Display VRAMSize="128" monitorCount="1" accelerate3D="false" accelerate2DVideo="false"/>
      <RemoteDisplay enabled="false" port="3389" authType="Null" authTimeout="5000"/>
      <BIOS>
        <ACPI enabled="true"/>
        <IOAPIC enabled="true"/>
        <Logo fadeIn="true" fadeOut="true" displayTime="0"/>
        <BootMenu mode="MessageAndMenu"/>
        <TimeOffset value="0"/>
        <PXEDebug enabled="false"/>
      </BIOS>
      <USBController enabled="true" enabledEhci="true">
        <DeviceFilter name="Broadcom Corp  [0100]" active="true" vendorId="0a5c" productId="4502" revision="0100" manufacturer="Broadcom Corp" remote="no"/>
        <DeviceFilter name="DeLorme Publishing DeLorme USB Earthmate [0004]" active="false" vendorId="1163" productId="0100" revision="0004" manufacturer="DeLorme Publishing" product="DeLorme USB Earthmate" remote="no"/>
        <DeviceFilter name="Verbatim Store 'n' Go [0100]" active="false" vendorId="08ec" productId="0008" revision="0100" manufacturer="Verbatim" product="Store 'n' Go" serialNumber="0BF11260C3B3689F" remote="no"/>
        <DeviceFilter name="PNY USB 2.0 FD [0110]" active="false" vendorId="154b" productId="0027" revision="0110" manufacturer="PNY" product="USB 2.0 FD" serialNumber="6E93180B0136" remote="no"/>
        <DeviceFilter name="USB DISK 2.0 [0403]" active="false" vendorId="090c" productId="1000" revision="0403" manufacturer="USB" product="DISK 2.0" serialNumber="ILXLSOQPJE9MZGJ7" remote="no"/>
        <DeviceFilter name="Broadcom Corp  [0100]" active="true" vendorId="0a5c" productId="4503" revision="0100" manufacturer="Broadcom Corp" remote="no"/>
      </USBController>
      <Network>
        <Adapter slot="0" enabled="true" MACAddress="08002780A227" cable="true" speed="0" type="Am79C973">
          <NAT/>
        </Adapter>
        <Adapter slot="1" enabled="false" MACAddress="080027E7BC68" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="2" enabled="false" MACAddress="0800271E14FA" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="3" enabled="false" MACAddress="0800277A278A" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="4" enabled="false" MACAddress="080027D4E563" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="5" enabled="false" MACAddress="080027CCA8CD" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="6" enabled="false" MACAddress="080027C82ECE" cable="true" speed="0" type="Am79C973"/>
        <Adapter slot="7" enabled="false" MACAddress="080027DDADD6" cable="true" speed="0" type="Am79C973"/>
      </Network>
      <UART>
        <Port slot="0" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
        <Port slot="1" enabled="false" IOBase="0x3f8" IRQ="4" hostMode="Disconnected"/>
      </UART>
      <LPT>
        <Port slot="0" enabled="false" IOBase="0x378" IRQ="4"/>
        <Port slot="1" enabled="false" IOBase="0x378" IRQ="4"/>
      </LPT>
      <AudioAdapter controller="AC97" driver="Pulse" enabled="true"/>
      <SharedFolders>
        <SharedFolder name="D67C750E7C74EA9F" hostPath="/media/D67C750E7C74EA9F" writable="true"/>
      </SharedFolders>
      <Clipboard mode="Bidirectional"/>
      <Guest memoryBalloonSize="0" statisticsUpdateInterval="0"/>
      <GuestProperties>
        <GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="en_US" timestamp="1266953778109051000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Windows XP Professional" timestamp="1266957701569517000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="5.1.2600" timestamp="1266957701571877000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/Version" value="" timestamp="1266957701573763000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestInfo/OS/ServicePack" value="3" timestamp="1266957701577048000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Version" value="3.1.4" timestamp="1266957701580237000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Revision" value="57640" timestamp="1266957701583356000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/InstallDir" value="C:/Program Files/Sun/VirtualBox Guest Additions" timestamp="1266957701589245000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxControl.exe" value="3.1.4r57640" timestamp="1266957701617415000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxHook.dll" value="3.1.4r57640" timestamp="1266957701631471000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxDisp.dll" value="3.1.4r57640" timestamp="1266957701637568000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMRXNP.dll" value="3.1.4r57640" timestamp="1266957701649393000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxService.exe" value="3.1.4r57640" timestamp="1266957701655265000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxTray.exe" value="3.1.4r57640" timestamp="1266957701657776000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGINA.dll" value="-" timestamp="1266957701690322000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxCredProv.dll" value="-" timestamp="1266957701710525000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLarrayspu.dll" value="3.1.4r57640" timestamp="1266957701711986000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLcrutil.dll" value="3.1.4r57640" timestamp="1266957701713239000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLerrorspu.dll" value="3.1.4r57640" timestamp="1266957701715378000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLpackspu.dll" value="3.1.4r57640" timestamp="1266957701717039000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLpassthroughspu.dll" value="3.1.4r57640" timestamp="1266957701718323000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGLfeedbackspu.dll" value="3.1.4r57640" timestamp="1266957701719977000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxOGL.dll" value="3.1.4r57640" timestamp="1266957701728553000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGuest.sys" value="3.1.4r57640" timestamp="1266957701729971000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMouse.sys" value="3.1.4r57640" timestamp="1266957701731068000" flags=""/>
        <GuestProperty name="/VirtualBox/GuestAdd/Components40.048 fff0 - 0000ffff 00cf9300 - base=00000000 limit=ffffffff dpl=0 DataRW Accessed Present Page 32-bit  HyperDS
00:05:40.048 fff8 - 0000ffff 00cf9b00 - base=00000000 limit=ffffffff dpl=0 CodeER Accessed Present Page 32-bit  HyperCS
00:05:40.048 ***
00:05:40.048 ************** End of Guest state at power off ***************
00:05:40.050 Changing the VM state from 'POWERING_OFF' to 'OFF'.
00:05:40.054 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Stopping, InUninit=0)
00:05:40.065 SharedFolders host service: disconnected, u32ClientID = 1
00:05:40.066 Changing the VM state from 'OFF' to 'DESTROYING'.
00:05:40.079 ************************* Statistics *************************
00:05:40.079 /Devices/IDE0/ATA0/Unit0/AtapiDMA        0 times
00:05:40.079 /Devices/IDE0/ATA0/Unit0/AtapiPIO        0 times
00:05:40.079 /Devices/IDE0/ATA0/Unit0/DMA        18480 times
00:05:40.079 /Devices/IDE0/ATA0/Unit0/PIO         2725 times
00:05:40.079 /Devices/IDE0/ATA0/Unit0/ReadBytes 408949760 bytes
00:05:40.079 /Devices/IDE0/ATA0/Unit0/WrittenBytes 86401024 bytes
00:05:40.079 /Devices/IDE0/ATA0/Unit1/AtapiDMA        0 times
00:05:40.079 /Devices/IDE0/ATA0/Unit1/AtapiPIO        0 times
00:05:40.079 /Devices/IDE0/ATA0/Unit1/DMA            0 times
00:05:40.079 /Devices/IDE0/ATA0/Unit1/PIO            0 times
00:05:40.079 /Devices/IDE0/ATA0/Unit1/ReadBytes        0 bytes
00:05:40.079 /Devices/IDE0/ATA0/Unit1/WrittenBytes        0 bytes
00:05:40.079 /Devices/IDE0/ATA1/Unit0/AtapiDMA       27 times
00:05:40.079 /Devices/IDE0/ATA1/Unit0/AtapiPIO      293 times
00:05:40.079 /Devices/IDE0/ATA1/Unit0/DMA            0 times
00:05:40.079 /Devices/IDE0/ATA1/Unit0/PIO            0 times
00:05:40.079 /Devices/IDE0/ATA1/Unit0/ReadBytes    34816 bytes
00:05:40.079 /Devices/IDE0/ATA1/Unit0/WrittenBytes        0 bytes
00:05:40.079 /Devices/IDE0/ATA1/Unit1/AtapiDMA        0 times
00:05:40.079 /Devices/IDE0/ATA1/Unit1/AtapiPIO        0 times
00:05:40.079 /Devices/IDE0/ATA1/Unit1/DMA            0 times
00:05:4
tpost001
Posts: 4
Joined: 24. Feb 2010, 01:28
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by tpost001 »

Maybe I did understand what MarkCranness described. I created a new VBox and called it WindowsXP2. I used every setting I remembered that WindowsXP had in Settings including USB and shared files. I also referred to the WindowsXP.vdi instead of making a new partition. Once this was created I went to my home directory and copied the WindowsXP2.xml file into my WindowsXP directory under Machines. I renamed WindowsXP.xml to WindowsXPold.xml and then renamed WindowsXP2.xml to WindowsXP.xml. I then clicked on Start and immediately got an error that the Machine UID was not the same as that referenced in the VirtualBox.xml. I then just copied the correct identifier from the error message into the proper place in the xml file by using gedit (the identifier is near the top of the file). I also changed the file name from WindowsXP2 to WindowsXP. Then I started it up again and it worked. Amazing and I am very happy.
timneil
Posts: 1
Joined: 29. Jun 2015, 15:51

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by timneil »

So this might not have applied in 2010 but today I hit the same problem after a machine ran out of hard drive space and only half the config file got written. I found a file alongside the other VirtualBox.xml file called VirtualBox.xml-prev. Deleted the corrupt one and renamed the other and I'm back up and running. I assume this will only apply if VirtualBox is the process that corrupts the file. But I also assume it will be the culprit in most cases.

Hopefully this will help anyone else who ends up here through the googles.
scoleman
Posts: 1
Joined: 12. Mar 2017, 15:02

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by scoleman »

timneil wrote:Hopefully this will help anyone else who ends up here through the googles.
Just wanted to let timneil know that it helped someone who ended up her through google :)
Thanks, simple solution that worked perfectly and quickly!!
Janxgeist
Posts: 1
Joined: 4. Jan 2022, 09:40

Re: Crash: Premature end of data in tag VirtualBox line 2.

Post by Janxgeist »

Hello,
timneil wrote: Hopefully this will help anyone else who ends up here through the googles.
Just wanted to say a big thank you! This helped me out when I desperately needed it!

best regards

Janxgeist
Locked