How can i manually remove an "ExtraDataItem" from MyMachine.vbox-prev config file?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
m1ch1
Posts: 1
Joined: 31. Mar 2017, 08:41

How can i manually remove an "ExtraDataItem" from MyMachine.vbox-prev config file?

Post by m1ch1 »

Hello,

I was stupid enough to copy a command from some website:

Code: Select all

$ VBoxManage setextradata WindowsEvo "VBoxInternal/Devices/VMMDev/0/Config/
 GetHostTimeDisabled" "1" 

and even more stupid by trying to fix the problem. So currently is have the following items in my config file.

Code: Select all

      <ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/
 GetHostTimeDisabled" value="2"/>
      <ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/
GetHostTimeDisabled" value="2"/>
      <ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="2"/>
I was not able to remove the item with the VBoxManage command. (even with no data-key given, which should remove the item). But it seems to be not very clear what is happening, especially with the space and the new line char.

If i remove the item manually from the file, the file is just restored (with the wrong items) when i start the vm.

So my question is: How can i remove these items?

I am using Ubuntu 16.04 as Host and virtualbox at version 5.1.14

Thank you for your help.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How can i manually remove an "ExtraDataItem" from MyMachine.vbox-prev config file?

Post by socratis »

m1ch1 wrote:If i remove the item manually from the file, the file is just restored (with the wrong items) when i start the vm.
You've got to quit all VirtualBox related processes. That also includes VirtualBox Manager. Make sure that no VB*, Virtual* or VM* processes are running before removing the offending lines.

PS. You shouldn't worry about the ".vbox-prev" file, only about the ".vbox" one.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply