mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 09:31:34 -05:00
Implement qemu-guest-agent
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
effebda27a
commit
5c7cedd512
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user