mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 13:58:55 +00:00
runtime: fix bad default machine_type for remote hypervisor
Fixes: #10249 Signed-off-by: Silenio Quarti <silenio_quarti@ca.ibm.com>
This commit is contained in:
@@ -1341,13 +1341,12 @@ func newStratovirtHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newRemoteHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) {
|
func newRemoteHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) {
|
||||||
machineType := h.machineType()
|
|
||||||
|
|
||||||
return vc.HypervisorConfig{
|
return vc.HypervisorConfig{
|
||||||
RemoteHypervisorSocket: h.getRemoteHypervisorSocket(),
|
RemoteHypervisorSocket: h.getRemoteHypervisorSocket(),
|
||||||
RemoteHypervisorTimeout: h.getRemoteHypervisorTimeout(),
|
RemoteHypervisorTimeout: h.getRemoteHypervisorTimeout(),
|
||||||
DisableGuestSeLinux: true, // The remote hypervisor has a different guest, so Guest SELinux config doesn't work
|
DisableGuestSeLinux: true, // The remote hypervisor has a different guest, so Guest SELinux config doesn't work
|
||||||
HypervisorMachineType: machineType,
|
HypervisorMachineType: h.MachineType,
|
||||||
SharedFS: config.NoSharedFS,
|
SharedFS: config.NoSharedFS,
|
||||||
|
|
||||||
// No valid value so avoid to append block device to list in kata_agent.appendDevices
|
// No valid value so avoid to append block device to list in kata_agent.appendDevices
|
||||||
|
Reference in New Issue
Block a user