Page 1 of 1

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

Posted: 31. Mar 2017, 09:27
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.

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

Posted: 31. Mar 2017, 09:43
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.