From b72a3cdcce621636403222ae3240caa596489a74 Mon Sep 17 00:00:00 2001 From: fupan Date: Wed, 17 Oct 2018 20:08:06 +0800 Subject: [PATCH] device: fix the issue of passing wrong device address using virtio-blk Kata agent expects the pci address to be passed and not the virtPath in guest. Fixes: #831 Signed-off-by: fupan --- virtcontainers/kata_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtcontainers/kata_agent.go b/virtcontainers/kata_agent.go index dd4c939314..4a7dbaf073 100644 --- a/virtcontainers/kata_agent.go +++ b/virtcontainers/kata_agent.go @@ -1073,7 +1073,7 @@ func (k *kataAgent) handleBlockVolumes(c *Container) []*grpc.Storage { } if c.sandbox.config.HypervisorConfig.BlockDeviceDriver == VirtioBlock { vol.Driver = kataBlkDevType - vol.Source = blockDrive.VirtPath + vol.Source = blockDrive.PCIAddr } else { vol.Driver = kataSCSIDevType vol.Source = blockDrive.SCSIAddr