This message was deleted.
# citrix-vad
s
This message was deleted.
j
f
I added the below commands to our VDA startup script after we experienced some issues with DST :
#region Windows Time service (W32Time)
& "$env:SystemRoot\System32\w32tm.exe" /config /update
& "$env:SystemRoot\System32\w32tm.exe" /resync /nowait
#endregion
BrokerAgent is set to "startup delay"
m
if it can’t pick up the correct time from the domain then you run into all sorts of issues with group policy as it doesn’t think it’s properly domain joined because the time is too far out for kerberos.
I’ve seen it more with MCS than anything else
it will grab the time in UTC from vmware at boot and then have to change it once it can see the domain but it doesn’t always work
I’ve been meaning to write an article about it for years because NTP is one of the most misunderstood technologies
but I’m not sure I even understand it enough to explain exactly why it goes wrong sometimes
a
thanks everyone for the help! ultimately would it make the most sense to just change it from manual (triggered) to automatic for everyone? cant imagine it would cause any more harm that way right?
j
Yep, that would be a good start. But as Mike says, it gets it's initial time reference from the hypervisor during boot and then gets itself a bit messed up with the way the image management works. The explanation I gave in my article was the closest I found to why this happens. Need some further help from Microsoft and/or Citrix support for a deeper dive.
a
thanks guys! we're a persistent desktop setup in AHV if that makes any difference but hopefully just the service type change helps since we dont get too many instances of this but i spun my wheels for a while until i stumbled on this one since even though the time service was stopped , the date/time was correct and even when i'd restart the citrix desktop service then it wouldnt matter
m
https://kb.vmware.com/s/article/1189 check that out, by default (even if you uncheck the sync time to host box) esxi syncs time to the host “when you migrate the virtual machine using vMotion, take a snapshot, restore to a snapshot, shrink the virtual disk, or restart the VMware Tools service in the virtual machine (including rebooting the virtual machine).”
you can edit the vmx and turn it all off. What I found in one client was that because esxi is set to UTC, the VMs were assuming that time was local time and were so far out that NTP would not resync them.
you can also set the time to whatever you want in that file with rtc.startTime = <Epoch timestamp>
a
thanks dude! only thing is we're Nutanix AHV so not sure those specifics apply but overall idea i'm sure does in one way or another. i'll start w/ the automatic setting and maybe i get lucky but this is all great info!
so testing a bit here w/ set-service to change that service to automatic which works but its changing the service to Automatic (triggered start) rather than just automatic for some reason.
m
I think the triggered start is when it detects the network has come up, that’s how I had to do it for an old win7 image that would boot up too fast
a
that makes sense .....that would seem safe enough to do then (since it doesnt seem to let me change it to just automatic w/ powershell anyways 🙂 )