Silly way of setting time on Virtual PCs

A small problem at work, with a silly little solution. This really should be filed under silly-but-I-have-such-a-bad-memory. For some strange reason I can’t always get the Linux system in Virtual PC to use NTP properly. However, it seems my regular Linux machine doesn’t suffer from the problem. I could set up an NTP server, but I’m a bit lazy… it’s also not that important to have exact time.

My current solution looks like this:

$ ssh root@virtual.pc "date -s \"$(date)\""
Leave a comment