From: Peter Mikus Date: Sat, 28 Jul 2018 19:43:48 +0000 (+0000) Subject: FIX: LXC container creation on Ubuntu Bionic X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=2e42562fb9948e8bfa55cee1a0e5d77157ff2e18 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 --- 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