I have Ubuntu Server installed (quantal, 12.10, 32-bit), as a VM guest using Hyper-V with Windows 8.
Note I am using this on my laptop. When I re-open my laptop, the time is no longer synchronised with the VM.
How often does the time synchronisation process take? Is it possible to enforce it somehow?
I can see the following modules installed on Ubuntu: * hv_storvsc * hv_netvsc * hv_utils * hv_vmbus
I have time sync checked under "Synchronistaion services" in Hyper-V.
Note I don't want my VM to require internet access, so unfortunately using an Internet date sync server will not work.
Thanks
3 Answers
Install Microsoft's Linux Integration Services on the VM you are having issues with.
- Downloading the Linux Integration Components v2.1
- Mount the ISO in the VM
- Run these commands as root under the VM:
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
mkdir /linuxic
cp –R /mnt/cdrom/* /linuxic
cd /linuxic/
make
make install- Reboot the VM
Run this command under the VM as root to verify it worked
/sbin/lsmod | grep vsc
Source: Installing Linux Integration Services v2.1 Hyper-V R2 On CentOS 5 (courtesy of the Internet archive's Wayback Machine).
According to Installing and Activating Hyper-V Linux Integration Services, Ubuntu has included Ubuntu Hyper-V Integration Services since 12.04. The article lists the steps to activate these services:
2
The first step is to edit the "modules" file located in /etc/initramfs-tools using this command:
sudo vi /etc/initramfs-tools/modulesIn vi Editor, navigate to the last line in the file and use the insert (I) command to append and enter the following lines:
hv_vmbus hv_storvsc hv_blkvsc hv_netvscSave the file by hitting the Esc key and then issuing the ":x" command
Next, run the following command to re-initialize the "modules" file:
sudo update-initramfs –uFinally, reboot the virtual machine by executing the below command in Shell:
sudo shutdown -r nowOnce the guest virtual machine is rebooted, the LIS drivers and services will be registered in the system.
I think Time Synchronization in Hyper-V may answer your questions.