aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh2
-rwxr-xr-xlaunch-qemu.sh11
2 files changed, 5 insertions, 8 deletions
diff --git a/install.sh b/install.sh
index 0d30a65..216c741 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+. /etc/os-release
+
# This will install all the dependent packages for qemu and ovmf to run
if [ "$ID_LIKE" = "debian" ]; then
apt-get -y install qemu ovmf
diff --git a/launch-qemu.sh b/launch-qemu.sh
index a2c4c53..b396af2 100755
--- a/launch-qemu.sh
+++ b/launch-qemu.sh
@@ -191,8 +191,8 @@ add_opts "-drive if=pflash,format=raw,unit=0,file=${UEFI_CODE},readonly"
# add network support and fwd port 22 to 8000
echo "guest port 22 is fwd to host 8000..."
#add_opts "-netdev user,id=vmnic,hostfwd=tcp::8000-:22 -device e1000,netdev=vmnic,romfile="
-add_opts "-netdev user,id=vmnic,hostfwd=tcp::8000-:22"
-add_opts " -device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile="
+#add_opts "-netdev user,id=vmnic,hostfwd=tcp::8000-:22"
+#add_opts " -device virtio-net-pci,disable-legacy=on,iommu_platform=true,netdev=vmnic,romfile="
# If harddisk file is specified then add the HDD drive
if [ -n "${HDA}" ]; then
@@ -220,7 +220,7 @@ if [ ${SEV} = "1" ]; then
[ "${ALLOW_DEBUG}" = "1" ] && POLICY=$((POLICY & ~0x01))
[ "${SEV_ES}" = "1" ] && POLICY=$((POLICY | 0x04))
SEV_POLICY=$(printf ",policy=%#x" $POLICY)
- SEV_POLICY=",policy=0x90000"
+ SEV_POLICY=",policy=0xB0000"
fi
if [ "${SEV_SNP}" = 1 ]; then
@@ -250,11 +250,6 @@ fi
# start monitor on pty and named socket 'monitor'
add_opts "-monitor pty -monitor unix:monitor,server,nowait"
-# add virtio ring
-if [ "$USE_VIRTIO" = "1" ]; then
- add_opts "-device virtio-rng-pci,disable-legacy=on,iommu_platform=true"
-fi
-
# log the console output in stdout.log
QEMU_CONSOLE_LOG=`pwd`/stdout.log