From 5c7cedd512445bf9389219a7aa078f84261b3d28 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 22 Jan 2024 08:55:42 -0700 Subject: [PATCH] Implement qemu-guest-agent Signed-off-by: Tommy --- Fedora-Workstation-39.sh | 9 ++++++--- Ubuntu-22.04-Server.sh | 3 +++ Ubuntu-23.10-Desktop.sh | 11 +++++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Fedora-Workstation-39.sh b/Fedora-Workstation-39.sh index a00dd6f..2d30057 100644 --- a/Fedora-Workstation-39.sh +++ b/Fedora-Workstation-39.sh @@ -193,10 +193,13 @@ fi # Setup tuned if [ "$virt_type" = '' ]; then - # Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO. - sudo dnf remove tuned -y + # Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO. + sudo dnf remove tuned -y else - sudo tuned-adm profile virtual-guest + if [ "$virt_type" = 'kvm' ]; then + sudo dnf install qemu-guest-agent -y + fi + sudo tuned-adm profile virtual-guest fi # Setup real-ucode and hardened_malloc diff --git a/Ubuntu-22.04-Server.sh b/Ubuntu-22.04-Server.sh index deeab2a..1bc9302 100644 --- a/Ubuntu-22.04-Server.sh +++ b/Ubuntu-22.04-Server.sh @@ -123,6 +123,9 @@ fi if [ "$virt_type" = "" ]; then sudo tuned-adm profile latency-performance else + if [ "$virt_type" = 'kvm' ]; then + sudo apt install qemu-guest-agent -y + fi sudo tuned-adm profile virtual-guest fi diff --git a/Ubuntu-23.10-Desktop.sh b/Ubuntu-23.10-Desktop.sh index 369897a..4e87492 100644 --- a/Ubuntu-23.10-Desktop.sh +++ b/Ubuntu-23.10-Desktop.sh @@ -194,9 +194,12 @@ fi # Setup tuned if [ "$virt_type" = '' ]; then - # Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO. - sudo apt remove tuned -y - sudo apt autoremove -y + # Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO. + sudo apt remove tuned -y + sudo apt autoremove -y else - sudo tuned-adm profile virtual-guest + if [ "$virt_type" = 'kvm' ]; then + sudo apt install qemu-guest-agent -y + fi + sudo tuned-adm profile virtual-guest fi \ No newline at end of file