How does freebsd virtual machine read the time of the host computer(win 10)

Hi, all

I have installed a freebsd on Win 10, and the time of freebsd is the same as my Win 10 computer after i run it. However, I want to use different time zone on freebsd, and I know that vm-tools can do this (read the time and adjust it according to the time zone), so I just want to disable freebssd from reading the time of the host computer. I know that executing 'date' can adjust the time, but that's not what I want.
 
Instead of disabling the time synchronization you can change the Time zone using tzsetup(8).

If for some reason your Host computer clock is not correct (wrong) and you don't want to use it then you can disable it's synchronization. For Hyper-V VM go to integration services and uncheck "Time Synchronization" then you can use ntpd to synch your VM clock against some internet ntp server.
1690176566073.png
 
Beware that windows *still* doesn't use UTC internally and for the hardware clock, so you'll only get local time instead of the (correct) UTC value from the hypervisor.
There is some registry hack though to force the correct behavior.
 
Oh wow, did they finally fix that? Last time I had to set up a FreeBSD VM on Win10/Server2019 Hyper-V I always got the local time from the hypervisor. We had to apply the registry fix to default to UTC for the RTC, then Hyper-V also passed the correct time to the VM.
 
Oh wow, did they finally fix that?
Probably, I didn't do any registry changes and don't remember that issue previously with Hyper-V; it was an issue for me with VMware Workstation, but rtc.diffFromUTC = "0" in VM config file helped there. If something was indeed changed, need to check if workaround is still needed for VMware WS.
 
Back
Top