Skip to content

Commit

Permalink
Merge pull request #3476 from tstromberg/vbox-timesync
Browse files Browse the repository at this point in the history
VirtualBox time cleanup: sync on boot, don't run timesyncd
  • Loading branch information
tstromberg authored Dec 21, 2018
2 parents ae4221b + e4303eb commit ad57efb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy/iso/minikube-iso/configs/minikube_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ BR2_TARGET_ROOTFS_ISO9660=y
BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU="$(BR2_EXTERNAL_MINIKUBE_PATH)/board/coreos/minikube/isolinux.cfg"
BR2_TARGET_SYSLINUX=y
BR2_PACKAGE_HOST_E2TOOLS=y
BR2_PACKAGE_SYSTEMD_TIMESYNCD=n
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ ConditionVirtualization=oracle

[Service]
ExecStartPre=-/usr/sbin/modprobe vboxguest
ExecStartPre=-/usr/sbin/modprobe vboxvideo

# Broken and probably unused: Unknown symbol ttm_bo_del_sub_from_lru
# ExecStartPre=-/usr/sbin/modprobe vboxvideo

ExecStartPre=-/usr/sbin/modprobe vboxsf
ExecStart=/usr/sbin/VBoxService -f --disable-automount
# Normally, VirtualBox only syncs every 20 minutes. This syncs on start, and
# forces an immediate sync if VM time is over 5 seconds off.
ExecStart=/usr/sbin/VBoxService -f --disable-automount --timesync-set-start --timesync-set-threshold 5000

[Install]
WantedBy=multi-user.target

0 comments on commit ad57efb

Please sign in to comment.