Report: Add icx rls data
[csit.git] / resources / templates / vm / init.sh
1 #!/bin/bash
2 mkdir /dev/pts
3 mkdir /dev/hugepages
4 mount -t devpts -o "rw,noexec,nosuid,gid=5,mode=0620" devpts /dev/pts || true
5 mount -t tmpfs -o "rw,noexec,nosuid,size=10%,mode=0755" tmpfs /run
6 mount -t tmpfs -o "rw,noexec,nosuid,size=10%,mode=0755" tmpfs /tmp
7 mount -t hugetlbfs -o "rw,relatime,pagesize=2M" hugetlbfs /dev/hugepages
8 echo Y > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
9 echo 0000:00:06.0 > /sys/bus/pci/devices/0000:00:06.0/driver/unbind
10 echo 0000:00:07.0 > /sys/bus/pci/devices/0000:00:07.0/driver/unbind
11 echo vfio-pci > /sys/bus/pci/devices/0000:00:06.0/driver_override
12 echo vfio-pci > /sys/bus/pci/devices/0000:00:07.0/driver_override
13 echo 0000:00:06.0 > /sys/bus/pci/drivers/vfio-pci/bind
14 echo 0000:00:07.0 > /sys/bus/pci/drivers/vfio-pci/bind
15 mkdir -p /var/run/vpp
16 ${vnf_bin}
17 poweroff -f