Set custom time for VirtualBox virtual machines
Open VirtualBox and identify the name of the virtual machine that you want to work on.
Go to the VirtualBox executable page (In Windows, it is usually C:\Program Files\Oracle\VirtualBox). Run the following command to stop the VM to sync its clock with the host.
Use the following command to set the time offset between the host and the guest. A positive value will set the time of the virtual machine ahead of the host.
Reference
Go to the VirtualBox executable page (In Windows, it is usually C:\Program Files\Oracle\VirtualBox). Run the following command to stop the VM to sync its clock with the host.
VBoxManage setextradata "My Virtual Machine"
"VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1
Use the following command to set the time offset between the host and the guest. A positive value will set the time of the virtual machine ahead of the host.
BoxManage modifyvm "VM name" --biossystemtimeoffset
Reference
Comments
Post a Comment