blob: c5572f0533f6b1e8eebbe4960e53c048977fceba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
[ -e /etc/os-release ] && . /etc/os-release
# This will install all the dependent packages for qemu and ovmf to run
if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then
apt-get -y install qemu ovmf
else
dnf install qemu edk2-ovmf
fi
if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then
dpkg -i linux/host/linux-image-*.deb
else
rpm -ivh linux/kernel-*.rpm
fi
cp kvm.conf /etc/modprobe.d/
echo
echo "Reboot the host and select the SNP Host kernel"
echo
|