diff --git a/contrib/cirrus/mac_env.sh b/contrib/cirrus/mac_env.sh index ce9eed793cb..367e6d1c500 100755 --- a/contrib/cirrus/mac_env.sh +++ b/contrib/cirrus/mac_env.sh @@ -24,3 +24,6 @@ go env # The latest version is installed system-wide when instances are created. Make the # current version known. vfkit --version + +# Make the current version of krunkit known. +krunkit --version diff --git a/pkg/machine/apple/apple.go b/pkg/machine/apple/apple.go index 3ca329c8e56..0bd638208eb 100644 --- a/pkg/machine/apple/apple.go +++ b/pkg/machine/apple/apple.go @@ -25,7 +25,10 @@ import ( "go.podman.io/common/pkg/strongunits" ) -const applehvMACAddress = "5a:94:ef:e4:0c:ee" +const ( + applehvMACAddress = "5a:94:ef:e4:0c:ee" + timeSyncVsockPort = 1234 +) var ( gvProxyWaitBackoff = 500 * time.Millisecond @@ -180,6 +183,14 @@ func StartGenericAppleVM(mc *vmconfigs.MachineConfig, cmdBinary string, bootload } vm.Devices = append(vm.Devices, mounts...) + timesync, err := vfConfig.TimeSyncNew(timeSyncVsockPort) + if err != nil { + return nil, nil, err + } + if err := vm.AddDevice(timesync); err != nil { + return nil, nil, err + } + // To start the VM, we need to call vfkit cfg, err := config.Default() if err != nil {