Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
timesync: Fix automatic vsock device creation
Timesync uses a vsock port for guest/host time synchronization. When timesync is in use, if the VM has no vsock device, a new one is automatically added. However this got broken in commit a5db53d as we are generating the hypervisor configuration before adding this device. The vsock device must be part of `virtualMachineConfig` before calling `cfg.SetSocketDevicesVirtualMachineConfiguration(cfg.socketDevicesConfiguration)`, and after this commit, the vsock device is only added to `virtualMachineConfig` afterwards. This means the timesync only worked if you had another vsock device configured. This fixes #190 Signed-off-by: Christophe Fergeau <[email protected]>
- Loading branch information