X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftemplates%2Fvm%2Finit.sh;h=06006933c9614fe06887a58b1e16ff2e599765b3;hp=716ff9af086a8129632658dc0bdb0472bcf04d14;hb=6d941885b7974c992e5376a5c80dbe536ed0fc2f;hpb=8109bdd518242f4b8e50c37fea94371fa1ab62c6 diff --git a/resources/templates/vm/init.sh b/resources/templates/vm/init.sh index 716ff9af08..06006933c9 100644 --- a/resources/templates/vm/init.sh +++ b/resources/templates/vm/init.sh @@ -1,6 +1,4 @@ #!/bin/bash -mount -t sysfs -o "nodev,noexec,nosuid" sysfs /sys -mount -t proc -o "nodev,noexec,nosuid" proc /proc mkdir /dev/pts mkdir /dev/hugepages mount -t devpts -o "rw,noexec,nosuid,gid=5,mode=0620" devpts /dev/pts || true @@ -11,7 +9,6 @@ echo 0000:00:06.0 > /sys/bus/pci/devices/0000:00:06.0/driver/unbind echo 0000:00:07.0 > /sys/bus/pci/devices/0000:00:07.0/driver/unbind echo vfio-pci > /sys/bus/pci/devices/0000:00:06.0/driver_override echo vfio-pci > /sys/bus/pci/devices/0000:00:07.0/driver_override -echo 0000:00:06.0 > /sys/bus/pci/drivers/vfio-pci/bind -echo 0000:00:07.0 > /sys/bus/pci/drivers/vfio-pci/bind +mkdir -p /var/run/vpp $vnf_bin poweroff -f