(Solved) Need help with corrupted xml file

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Steveor
Posts: 2
Joined: 22. Feb 2009, 22:17

(Solved) Need help with corrupted xml file

Post by Steveor »

I've been running WindowsXP on VirtualBox 2.1.2 and Ubuntu 8.10 problem free for about a month. But for some reason I can't load the WindowsXP virtual machine due to the message below. Prior to that Ubuntu did a routine disk check with no errors (not sure if that is relevant).


Could not load the settings file '/home/steve/.VirtualBox/Machines/WindowsXP/WindowsXP.xml'.
Premature end of data in tag VirtualBox line 3.
Location: '/home/steve/.VirtualBox/Machines/WindowsXP/WindowsXP.xml', line 96 (3), column 1.


Result Code:
VBOX_E_XML_ERROR (0x80BB000A)
Component:
VirtualBox
Interface:
IVirtualBox {339abca2-f47a-4302-87f5-7bc324e6bbde}

I opened the WindowsXP.xml file (shown below) and I can only go to line 95: "</Machine>". I can't even get to line 96. Any assistance in troubleshooting this would be greatly appreciated.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Sun xVM VirtualBox Machine Configuration -->
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.6-linux">
<Machine uuid="{df2a90c4-58f3-4b3f-b40c-e07af67ab7da}" name="WindowsXP" OSType="WindowsXP" lastStateChange="2009-02-21T21:49:53Z" snapshotFolder="Snapshots" aborted="true">
<ExtraData>
<ExtraDataItem name="GUI/SaveMountedAtRuntime" value="yes"/>
<ExtraDataItem name="GUI/LastCloseAction" value="powerOff"/>
<ExtraDataItem name="GUI/LastWindowPostion" value="320,260,640,527,max"/>
<ExtraDataItem name="GUI/Fullscreen" value="off"/>
<ExtraDataItem name="GUI/Seamless" value="off"/>
<ExtraDataItem name="GUI/AutoresizeGuest" value="on"/>
</ExtraData>
<Hardware>
<CPU count="1">
<HardwareVirtEx enabled="false"/>
</CPU>
<Memory RAMSize="446"/>
<Boot>
<Order position="1" device="Floppy"/>
<Order position="2" device="DVD"/>
<Order position="3" device="HardDisk"/>
</Boot>
<Display VRAMSize="12" monitorCount="1" accelerate3D="false"/>
<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"/>
<IDEController type="PIIX4"/>
</BIOS>
<DVDDrive passthrough="false">
<HostDrive src="/dev/scd1"/>
</DVDDrive>
<FloppyDrive enabled="true"/>
<USBController enabled="true" enabledEhci="false"/>
<SATAController enabled="false" PortCount="1" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3"/>
<Network>
<Adapter slot="0" enabled="true" MACAddress="0800279FCDE2" cable="true" speed="0" type="Am79C973">
<NAT/>
</Adapter>
<Adapter slot="1" enabled="false" MACAddress="08002730C38F" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="2" enabled="false" MACAddress="080027A8E2F5" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="3" enabled="false" MACAddress="080027F5177A" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="4" enabled="false" MACAddress="080027104450" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="5" enabled="false" MACAddress="080027EA0828" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="6" enabled="false" MACAddress="08002719DAA4" cable="true" speed="0" type="Am79C973"/>
<Adapter slot="7" enabled="false" MACAddress="080027E0AA1A" cable="true" speed="0" type="Am79C973"/>
</Network>
<UART>
<Port slot="0" enabled="true" 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="SB16" driver="ALSA" enabled="true"/>
<SharedFolders/>
<Clipboard mode="Bidirectional"/>
<Guest memoryBalloonSize="0" statisticsUpdateInterval="0"/>
<GuestProperties>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Product" value="Windows XP Home" timestamp="1234762625548167000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/Release" value="5.1.2600" timestamp="1234762625549208000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/ServicePack" value="3" timestamp="1234762625550221000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/InstallDir" value="C:/Program Files/Sun/xVM VirtualBox Guest Additions" timestamp="1234762625551347000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Revision" value="41885" timestamp="1234762625552306000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Version" value="2.1.2" timestamp="1234762625553185000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxControl.exe" value="2.1.2r41885" timestamp="1234762625558477000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxHook.dll" value="2.1.2r41885" timestamp="1234762625561962000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxDisp.dll" value="2.1.2r41885" timestamp="1234762625585720000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMRXNP.dll" value="2.1.2r41885" timestamp="1234762625589392000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxService.exe" value="2.1.2r41885" timestamp="1234762625590973000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxTray.exe" value="2.1.2r41885" timestamp="1234762625594407000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxGuest.sys" value="2.1.2r41885" timestamp="1234762625607202000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxMouse.sys" value="2.1.2r41885" timestamp="1234762625610449000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxSF.sys" value="2.1.2r41885" timestamp="1234762625613653000" flags=""/>
<GuestProperty name="/VirtualBox/GuestAdd/Components/VBoxVideo.sys" value="2.1.2r41885" timestamp="1234762625617970000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/NoLoggedInUsers" value="false" timestamp="1234762631288541000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/LoggedInUsers" value="1" timestamp="1234763025206119000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/Count" value="1" timestamp="1234763025182203000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/IP" value="10.0.2.15" timestamp="1234763025183297000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Broadcast" value="255.255.255.255" timestamp="1234763025184330000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/V4/Netmask" value="255.255.255.0" timestamp="1234763025185269000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/Net/0/Status" value="Up" timestamp="1234763025186248000" flags=""/>
<GuestProperty name="/VirtualBox/HostInfo/GUI/LanguageID" value="C" timestamp="1234762511686290000" flags=""/>
<GuestProperty name="/VirtualBox/GuestInfo/OS/LoggedInUsersList" value="Steve" timestamp="1234763025204993000" flags=""/>
</GuestProperties>
</Hardware>
<HardDiskAttachments>
<HardDiskAttachment hardDisk="{de4958a5-c73d-4649-877d-c30ade28c8ed}" bus="IDE" channel="0" device="0"/>
</HardDiskAttachments>
</Machine>
Last edited by Steveor on 23. Feb 2009, 00:27, edited 1 time in total.
eviltwin
Posts: 32
Joined: 22. Feb 2009, 04:55
Location: England

Post by eviltwin »

I think the point the error is trying to make is that the file ends (it will consider 96 the end, because 95 is the last line containing data) with the <VirtualBox> tag still open. I'm not an expert on these things, but you could try adding

Code: Select all

</VirtualBox>
to the end of the file and see if that fixes it.
Steveor
Posts: 2
Joined: 22. Feb 2009, 22:17

Post by Steveor »

That did it!

One wrinkle though. I found this same solution and tried it earlier but I ended up with the same error. I think having VirtualBox open while editing may have botched my early efforts.

Thanks.
Post Reply