From feafe1cd8c0054f35c01d15969510e760da71d52 Mon Sep 17 00:00:00 2001 From: Roman Mohr Date: Mon, 16 Jan 2017 13:48:06 +0100 Subject: [PATCH] Move VM into container network namespace --- cmd/virt-launcher/qemu-kube | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/virt-launcher/qemu-kube b/cmd/virt-launcher/qemu-kube index 152e1bbf2eca..294b330fb78d 100755 --- a/cmd/virt-launcher/qemu-kube +++ b/cmd/virt-launcher/qemu-kube @@ -75,4 +75,4 @@ echo "$CMD" >> $LOG # Don't close file descriptors bigger than 10000 to allow passing tap device fds # Start the qemu process in the cgroups of the docker container # to adher the resource limitations of the container. -sudo -C 10000 bash -c -- "cgclassify -g ${CGROUPS}:system.slice/docker-$CONTAINER_ID.scope --sticky \$\$ && nsenter -t $CONTAINER_PID -p $CMD" +sudo -C 10000 bash -c -- "cgclassify -g ${CGROUPS}:system.slice/docker-$CONTAINER_ID.scope --sticky \$\$ && nsenter -t $CONTAINER_PID -n -p $CMD"