runtime: Initialize SharedFS for remote hypervisor

Sets SharedFS config to NoSharedFS for remote hypervisor in order to start the file watcher which syncs files from the host to the guest VMs. 

Signed-off-by: Silenio Quarti <silenio_quarti@ca.ibm.com>
This commit is contained in:
Silenio Quarti
2024-07-09 23:30:02 -03:00
parent 7f71eac6de
commit 8260ce8d15

View File

@@ -1341,6 +1341,7 @@ func newRemoteHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) {
RemoteHypervisorSocket: h.getRemoteHypervisorSocket(),
RemoteHypervisorTimeout: h.getRemoteHypervisorTimeout(),
DisableGuestSeLinux: true, // The remote hypervisor has a different guest, so Guest SELinux config doesn't work
SharedFS: config.NoSharedFS,
// No valid value so avoid to append block device to list in kata_agent.appendDevices
BlockDeviceDriver: "dummy",