summaryrefslogtreecommitdiff
path: root/src/pal/tools/setup-ubuntuvm.sh
blob: 89d8ea37b22dbf19332066acd7693a4737bc1ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash

echo Installing basic Ubuntu \(VM\) XPlat environment

function Install-Packages {
	echo Installing Packages
	apt-get install clang -y
	apt-get install cmake -y
}

function Enable-Integration-Services {
	echo Checking for integration services
	res=$(grep -c "hv_vmbus" /etc/initramfs-tools/modules)
	if [ $res -eq 0 ]
	then
		echo Installing integration services
		echo hv_vmbus >> /etc/initramfs-tools/modules
		echo hv_storvsc >> /etc/initramfs-tools/modules
		echo hv_blkvsc >> /etc/initramfs-tools/modules
		echo hv_netvsc >> /etc/initramfs-tools/modules
	else
		echo Integration Services already installed
	fi
}

Install-Packages
Enable-Integration-Services