aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot/shared
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-07-28 19:43:48 +0000
committerPeter Mikus <pmikus@cisco.com>2018-07-28 19:47:23 +0000
commit2e42562fb9948e8bfa55cee1a0e5d77157ff2e18 (patch)
tree00abd4d8c00ce33bb1cbf488e9a1eddbd603f82a /resources/libraries/robot/shared
parentc05d97223e4b69a5fab1d9f47421283c70440d38 (diff)
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 <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/robot/shared')
-rw-r--r--resources/libraries/robot/shared/container.robot3
1 files changed, 2 insertions, 1 deletions
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