From 2e42562fb9948e8bfa55cee1a0e5d77157ff2e18 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Sat, 28 Jul 2018 19:43:48 +0000 Subject: [PATCH 1/1] FIX: LXC container creation on Ubuntu Bionic Do not mount whole /dev into container as it can steal the PTS (tty). Currently mounting only /dev/bus for pci devices and /dev/vfio Change-Id: Ie829d35db81317bcd081257453ede7cbec2a302e Signed-off-by: Peter Mikus --- resources/libraries/robot/shared/container.robot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/libraries/robot/shared/container.robot b/resources/libraries/robot/shared/container.robot index 8a56caacb4..cf19464751 100644 --- a/resources/libraries/robot/shared/container.robot +++ b/resources/libraries/robot/shared/container.robot @@ -28,7 +28,8 @@ | | ${duts}= | Get Matches | ${nodes} | DUT* | | :FOR | ${dut} | IN | @{duts} | | | ${env}= | Create List | DEBIAN_FRONTEND=noninteractive -| | | ${mnt}= | Create List | /tmp:/mnt/host | /dev:/dev +| | | ${mnt}= | Create List | /tmp:/mnt/host | /dev/vfio:/dev/vfio +| | | ... | /dev/bus:/dev/bus | | | ${cpu_node}= | Get interfaces numa node | ${nodes['${dut}']} | | | ... | ${dut1_if1} | ${dut1_if2} | | | Run Keyword | ${group}.Construct containers -- 2.16.6