mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
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:
parent
e5bef8b124
commit
250e5f9914
3 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue