Opened 14 years ago
Closed 14 years ago
#8948 closed defect (fixed)
VBox unable to start virtual machine due to strange character in .vbox file => Fixed in SVN
Reported by: | Andre Carvalhais | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.0.8 |
Keywords: | invalid char, unaccessible | Cc: | |
Guest type: | Windows | Host type: | Linux |
Description
Hi,
After launching Virtual Box, on my Linux Host (Debian Squeeze 64 bit, VBox binaries from the official virtualbox.org repositories) one of my VM's (Windows 7 Guest 64 bit) is listed as not being accessible according to the following error message:
PCDATA invalid Char value 3. Location: '/home/carvalhais/Máquinas Virtuais/Win 7 - Trabalho/Win 7 - Trabalho.vbox', line 618 (3), column 36. /home/vbox/vbox-4.0.8/src/VBox/Main/src-server/MachineImpl.cpp[679] (nsresult Machine::registeredInit()). Código de Resultado: NS_ERROR_FAILURE (0x80004005) Componente: VirtualBox Interface: IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff
Googling around, I came across some other users having the same issue (see topic http://forums.virtualbox.org/viewtopic.php?f=7&p=187762 in user forums), and as one of them suggested, editing the .vbox file revealed a strange character that was preventing the machine from start (in my case I just removed it, and the VM started working again).
Apparently in none of the cases anything was done to introduce the error. I also noticed we were all running 64 bit Debian based hosts and 64 bit Windows 7 guests, so this may be a particularized error.
I cannot confirm this error was introduced after upgrading VBox itself or the Guest Additions (as it is suggested in the user forums topic), since I was able to run the VM after the upgrade without any problems for a couple of times. However, the problem appeared after Windows did an automatic update (I do not know if this can interfere with VBox engine). Attached is my original .vbox files (with the strange char still in it).
Thanks in advance, wishing to hear from you soon,
André.
Attachments (12)
Change History (27)
by , 14 years ago
Attachment: | Win 7 - Trabalho.vbox.201105222327 added |
---|
comment:1 by , 14 years ago
Adding myself to this ticket per PerryG's request here. http://forums.virtualbox.org/viewtopic.php?f=7&t=41725&start=15
by , 14 years ago
Attachment: | Win 7 Again.vbox added |
---|
by , 14 years ago
Attachment: | VBox.log.1 added |
---|
by , 14 years ago
Attachment: | linms2008.jpg added |
---|
by , 14 years ago
Attachment: | LinMSS2008.vbox.txt added |
---|
oreomatic's vbox file with error still in it
comment:3 by , 14 years ago
I was referred here from:
http://forums.virtualbox.org/viewtopic.php?f=7&t=41725&start=15#p188202
by , 14 years ago
Win7 VM on Ubuntu 11.04 AMD64 PCDATA invalid Char value 3.
comment:4 by , 14 years ago
Same error as everyone else. Been working great, but bam no joy this morning. Attached my .vbox file. Running Ubuntu 11.04 AMD64. VBox 4.0.8 r71778 VM is Windows 7 64-bit.
comment:5 by , 14 years ago
Confirmed. There are two problems:
- The invalid value of the VersionEx guest property is written into the XML file, this should not happen.
- The value of the VersionEx guest property is invalid at all. This is a 4.0.8 regression where one variable was not properly initialized. This should only affect Windows guests. If the guest cannot boot, just edit the XML file manually (make sure that no other VM is running and that VBoxSVC isn't running) and fix the file by replacing the invalid string with "4.0.8".
comment:6 by , 14 years ago
Same issue. Virtualbox 4.0.8 with host running Ubuntu 11.04 (64 bit) and guest running Windows 7 (64 bit).
follow-up: 8 comment:7 by , 14 years ago
Same issue. Virtualbox 4.0.8 with host running Ubuntu 10.10 (64 bit) and guest running Windows Vista (64 bit) My workaround is to open Windows Vista.xml file and delete the character referenced, save, start vbox & the Vista machine. Thanks.
Error Msg - PCDATA invalid Char value 3. Location: '/home/lou/.VirtualBox/Machines/Windows Vista/Windows Vista.xml', line 83 (3), column 36. /home/vbox/vbox-4.0.8/src/VBox/Main/src-server/MachineImpl.cpp[679] (nsresult Machine::registeredInit()). Result Code: NS_ERROR_FAILURE (0x80004005) Component: VirtualBox Interface: IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff}
attached files, ../.VirtualBox/Machines/Windows Vista.xml; ../.VirtualBox/Machines/Windows Vista/Logs/VBox.log
by , 14 years ago
Attachment: | Windows Vista.xml added |
---|
by , 14 years ago
comment:8 by , 14 years ago
Replying to harphauler: Don't know if this is a help or not but have tried replacing the strange character in line 83 with "4.0.8", "4.0.8r71778", and "71778" all with no joy - on shut down the value is replaced with a strange character.
follow-ups: 10 12 comment:9 by , 14 years ago
In that case please do the following:
- Edit the settings file to allow the VM to start again.
- Start the Windows guest
- Run regedit
- Go to HKLM\SOFTWARE\Oracle\VirtualBox Guest Additions
- Create a string key VersionEx (use exactly this spelling)
- Give it a reasonable value
- Shut down the VM.
follow-ups: 11 13 comment:10 by , 14 years ago
Replying to frank: Interesting. This may have fixed my problem. On the first Windows and Vbox shut down after performing your instructions, using "4.0.8" as the registry value for the newly created string, my line 83 was: <GuestProperty name="/VirtualBox/GuestAdd/VersionEx" value="L" timestamp="1306339257786578000" flags=""/> After manually editing the value= to "4.0.8" I have now successfully started and shut down three times without incident. Will try a few more repetitions. Thank you.
In that case please do the following:
- Edit the settings file to allow the VM to start again.
- Start the Windows guest
- Run regedit
- Go to HKLM\SOFTWARE\Oracle\VirtualBox Guest Additions
- Create a string key VersionEx (use exactly this spelling)
- Give it a reasonable value
- Shut down the VM.
comment:11 by , 14 years ago
Replying to harphauler: VBox still working just fine after a few more start/shut downs. Don't know if this will help but following is my complete Windows Registry entry after modification. The only change is/was addition of your string key:
(Default) REG_SZ (value not set) InstallDir REG_SZ C:\Program Files\Oracle\VirtualBox Guest Additions Revision REG_SZ 71778 Version REG_SZ 4.0.8 VersionEX REG_SZ 4.0.8 VersionExt REG_SZ 4.0.8
Replying to frank: Interesting. This may have fixed my problem. On the first Windows and Vbox shut down after performing your instructions, using "4.0.8" as the registry value for the newly created string, my line 83 was: <GuestProperty name="/VirtualBox/GuestAdd/VersionEx" value="L" timestamp="1306339257786578000" flags=""/> After manually editing the value= to "4.0.8" I have now successfully started and shut down three times without incident. Will try a few more repetitions. Thank you.
In that case please do the following:
- Edit the settings file to allow the VM to start again.
- Start the Windows guest
- Run regedit
- Go to HKLM\SOFTWARE\Oracle\VirtualBox Guest Additions
- Create a string key VersionEx (use exactly this spelling)
- Give it a reasonable value
- Shut down the VM.
by , 14 years ago
Attachment: | Window7x64.vbox added |
---|
vbox file for Win7 (64bit) guest on Ubuntu 11.04 (64bit)
by , 14 years ago
Attachment: | VBox.2.log added |
---|
comment:12 by , 14 years ago
Replying to frank:
In that case please do the following:
- Edit the settings file to allow the VM to start again.
- Start the Windows guest
- Run regedit
- Go to HKLM\SOFTWARE\Oracle\VirtualBox Guest Additions
- Create a string key VersionEx (use exactly this spelling)
- Give it a reasonable value
- Shut down the VM.
I can also confirm that this workaround works (although I needed another restart/shutdown cycle of the guest system, just like harphauler).
Thanks for your help Frank!
comment:13 by , 14 years ago
Replying to harphauler: After several start, shut down cycles I feel it safe to confirm that this has fixed my problem. Thank you Frank!
In that case please do the following:
- Edit the settings file to allow the VM to start again.
- Start the Windows guest
- Run regedit
- Go to HKLM\SOFTWARE\Oracle\VirtualBox Guest Additions
- Create a string key VersionEx (use exactly this spelling)
- Give it a reasonable value
- Shut down the VM.
comment:14 by , 14 years ago
Summary: | VBox unable to start virtual machine due to strange character in .vbox file → VBox unable to start virtual machine due to strange character in .vbox file => Fixed in SVN |
---|
Thanks for the report. This bug will be fixed with the next maintenance release.
comment:15 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix in VBox 4.0.10, make sure to update the Guest Additions!
Defective .vbox file