Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/machine/apple/apple.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ func StartGenericAppleVM(mc *vmconfigs.MachineConfig, cmdBinary string, bootload
}
vm.Devices = append(vm.Devices, mounts...)

timesync, err := vfConfig.TimeSyncNew(1234)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider using a named constant for the port

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 {
Expand Down