use constant for timesync port and update mac_env.sh to print krunkit version

Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
This commit is contained in:
Gunjan Vyas 2026-05-04 18:04:05 +05:30
parent e5bef8b124
commit 250e5f9914
3 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -180,7 +180,7 @@ func StartGenericAppleVM(mc *vmconfigs.MachineConfig, cmdBinary string, bootload
}
vm.Devices = append(vm.Devices, mounts...)
timesync, err := vfConfig.TimeSyncNew(1234)
timesync, err := vfConfig.TimeSyncNew(define.TimeSyncVsockPort)
if err != nil {
return nil, nil, err
}

View file

@ -6,6 +6,9 @@ const (
UserCertsTargetPath = "/etc/containers/certs.d"
DefaultIdentityName = "machine"
DefaultMachineName = "podman-machine-default"
// TimeSyncVsockPort is the vsock port for host->guest time sync via qemu-guest-agent.
// Podman passes this to vfkit/krunkit --timesync; podman-machine-os configures qemu-guest-agent on the same port.
TimeSyncVsockPort = 1234
)
// MountTag is an identifier to mount a VirtioFS file system tag on a mount point in the VM.