Disable vm timesync in Vagrantfile

Hi,

I’d like to create a VM machine without host time synchronization. In VirtualBox I can do this by typing.

VBoxManage setextradata "VM name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1

Is there any way to do this inside the Vagrant file?

Thanks!

1 Like

Hi,

You can do this with provider specific configuration:

Vagrant.configure("2") do |config|
  ...
  config.vm.provider :virtualbox do |vb|
    vb.customize ["setextradata", :id, "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled", 1]
  end
end

You can find more information here:

Cheers

2 Likes

Thnks! It’s just what I was looking for