Skip to main content

technical blog

Go Search
Home
Technical Blog
Resumé
Travel
Skydiving
Contact
  
Random Image

chrishines.com > technical blog > Posts > Stopping Time
Stopping Time
When working in a Microsoft Virtual Machine (VPC or Virtual Server) the virtual will periodically synchronize the clock with the host's clock. This can be a pain when trying to test your code with future or past dates. However, it is possible to stop this synchronization:
 
In Virtual Server
 
Edit the .vmc file. Find the components tag and add/modify the host_time_sync value to false
 
e.g.
 
<components>
  <host_time_sync>
    <enabled type="boolean">false</enabled>
  </host_time_sync>
</components>
 
 
In Virtual PC
 
Stop the 1-vmsrvc service.
 
e.g.
 
net stop 1-vmsrvc
 
This will break the ability to copy files into the VM. However, restarting the service will get things working again.
 
(Thanks to Stuart Lally for pointing this out to me)
 

Comments

There are no comments yet for this post.