Do not synchronize a VM with the host system date
NovembreZoulou
-
tyrunplacable -
tyrunplacable -
Hello,
To anticipate processing, I need to be "three weeks ahead" of the actual date, which will allow me to automatically trigger end-of-month jobs to ensure they function correctly.
I tried .\VBoxManage setextradata c:\Users\novem\VirtualBox VMs\tests "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1 to disable automatic time synchronization, but I get an error message:
"VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code E_NOINTERFACE (0x80004002) - No such interface supported (extended info
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start."
Additionally, I cannot access the "program files" directory under PowerShell W10 due to the space between "program" and "files"...
Is there a way to configure the virtual machine to accept being 3 weeks ahead? (In VBox or WMWare?)
Thank you for your help.
NZ
To anticipate processing, I need to be "three weeks ahead" of the actual date, which will allow me to automatically trigger end-of-month jobs to ensure they function correctly.
I tried .\VBoxManage setextradata c:\Users\novem\VirtualBox VMs\tests "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1 to disable automatic time synchronization, but I get an error message:
"VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code E_NOINTERFACE (0x80004002) - No such interface supported (extended info
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start."
Additionally, I cannot access the "program files" directory under PowerShell W10 due to the space between "program" and "files"...
Is there a way to configure the virtual machine to accept being 3 weeks ahead? (In VBox or WMWare?)
Thank you for your help.
NZ
3 answers
-
Hello,
For reasons I don't know, the first post doesn't seem to have been made by an identified member...
Maybe that's why I haven't received a response yet.
But... I've kept digging!
There is a partial solution to my problem: directly in the ".vbox" file of the machine, indicate the following line <ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="1"/> in the extradata section.
Remember not to synchronize the internet time! (VM control panel)
So, it works but... the VM resets its time when it starts up. You have to set it to the correct time after each reboot. The solution of suspending the VM avoids this problem but, as a result, the time of resumption is that of the sleep state and, therefore, honestly delayed, which also requires resetting the time. In fact, I wanted to keep my 3 weeks of advance each time I start the VM, but maybe that's too much to ask from technology...
NZ -
Hello,
check this out: https://forums.virtualbox.org/viewtopic.php?t=8535
See you!
--
When Jimmy says What'd I say
I love you baby
It's like saying
The whole province singing in English -
Thank you,
I went to check the post. It is indeed a solution to use a "batch" file, to grab the current date and add 21 days before launching the VM. I'll give it a try...
See you!