diff --git a/container.go b/container.go index 62950a22..b76278a9 100644 --- a/container.go +++ b/container.go @@ -523,12 +523,14 @@ func (c *Container) start() error { } defer c.pod.proxy.disconnect() - agentCaps := c.pod.agent.capabilities() - hypervisorCaps := c.pod.hypervisor.capabilities() + if !c.pod.config.HypervisorConfig.DisableBlockDeviceUse { + agentCaps := c.pod.agent.capabilities() + hypervisorCaps := c.pod.hypervisor.capabilities() - if agentCaps.isBlockDeviceSupported() && hypervisorCaps.isBlockDeviceHotplugSupported() { - if err := c.hotplugDrive(); err != nil { - return err + if agentCaps.isBlockDeviceSupported() && hypervisorCaps.isBlockDeviceHotplugSupported() { + if err := c.hotplugDrive(); err != nil { + return err + } } }