Pre-provisioning: Install qemu-guest-agent on Linux distros

It helps to monitor the IP address assigned by DHCP from they
hypervisor.

Task-number: QTQAINFRA-6610
Change-Id: I51c85b341b039a0625e0362f018c547127083dcc
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
Dimitrios Apostolou
2024-10-28 18:49:18 +01:00
parent 39ad0317d1
commit f7797ab9ca
19 changed files with 40 additions and 1 deletions

View File

@@ -42,6 +42,8 @@ su
echo "add_drivers+=\"virtio-blk\"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Fetch and run coin-setup
Download http://coin/coin/binary/linux_amd64/coin-setup
run './coin-setup'

View File

@@ -46,6 +46,8 @@ su
echo "add_drivers+=\" virtio-blk \"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Do these from Opennebula UI!
# Enable network connection from right upper corner

View File

@@ -41,6 +41,8 @@ su
echo "add_drivers+=\"virtio-blk\"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Fetch and run coin-setup
Download http://coin/coin/binary/linux_amd64/coin-setup
run './coin-setup'

View File

@@ -52,6 +52,8 @@ su
echo "add_drivers+=\"virtio-blk\"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Enable network connection from right upper corner
# Fetch and run coin-setup

View File

@@ -46,13 +46,15 @@ su
echo "add_drivers+=\"virtio-blk\"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Do these from Opennebula UI!
# Enable network connection from right upper corner
Devices:
* Displays: Resolution 1280 x 800
# Fetch and run coin-setup
Download http://coin/coin/binary/linux_amd64/coin-setup
# run as qt user

View File

@@ -46,6 +46,8 @@ su
echo "add_drivers+=\" virtio-blk \"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Do these from Opennebula UI!
# Enable network connection from right upper corner

View File

@@ -42,6 +42,8 @@ su
echo "add_drivers+=\" virtio-blk \"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Enable network connection from right upper corner
# Fetch and run coin-setup

View File

@@ -42,6 +42,8 @@ su
echo "add_drivers+=\" virtio-blk \"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Do these from Opennebula UI!
# Enable network connection from right upper corner

View File

@@ -38,6 +38,9 @@ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
su
echo "add_drivers+=\" virtio-blk \"" >> /etc/dracut.conf.d/virtio.conf
dracut -f
yum -y install qemu-guest-agent
# Do these from Opennebula UI!
# Enable network connection from right upper corner

View File

@@ -37,6 +37,8 @@ sudo ./coin-setup
sudo echo "add_drivers+=\"virtio-blk\"" >> /etc/dracut.conf.d/virtio.conf
sudo dracut -f
sudo zypper -nq install qemu-guest-agent
# Add these to '/etc/polkit-default-privs.local'
org.freedesktop.udisks2.filesystem-mount yes
org.freedesktop.udisks2.filesystem-mount-other-seat yes

View File

@@ -31,6 +31,8 @@ sudo su -
echo "add_drivers+=\"virtio-blk\"" >/etc/dracut.conf.d/virtio.conf
dracut -f
sudo zypper -nq install qemu-guest-agent
# Add these to /etc/polkit-default-privs.local
org.freedesktop.udisks2.filesystem-mount yes
org.freedesktop.udisks2.filesystem-mount-other-seat yes

View File

@@ -35,6 +35,8 @@ sudo su -
echo 'add_drivers+=" virtio-blk "' >/etc/dracut.conf.d/virtio.conf
dracut -f
sudo zypper -nq install qemu-guest-agent
# Add these to /etc/polkit-default-privs.local
org.freedesktop.udisks2.filesystem-mount yes
org.freedesktop.udisks2.filesystem-mount-other-seat yes

View File

@@ -35,6 +35,8 @@ sudo su -
echo 'add_drivers+=" virtio-blk "' >/etc/dracut.conf.d/virtio.conf
dracut -f
sudo zypper -nq install qemu-guest-agent
# Disable coredump
chkconfig kdump off
echo 'Storage=none' >> /etc/systemd/coredump.conf.d/custom.conf

View File

@@ -51,6 +51,8 @@ run 'sudo apt install openssh-server'
# Disable firewall
run 'sudo ufw disable'
run 'sudo apt install qemu-guest-agent'
# Fetch and run coin-setup (in Opennebula)
Download http://coin/coin/binary/linux_amd64/coin-setup
run './coin-setup'

View File

@@ -51,6 +51,8 @@ run 'sudo apt install openssh-server'
# Disable firewall
run 'sudo ufw disable'
run 'sudo apt install qemu-guest-agent'
# Fetch and run coin-setup (in Opennebula)
Download http://coin/coin/binary/linux_arm64/coin-setup
run 'chmod +x ./coin-setup' to make it executable

View File

@@ -51,6 +51,8 @@ run 'sudo apt install openssh-server'
# Disable firewall
run 'sudo ufw disable'
run 'sudo apt install qemu-guest-agent'
# Fetch and run coin-setup (in Opennebula)
Download http://coin/coin/binary/linux_amd64/coin-setup
run 'chmod +x ./coin-setup' to make it executable

View File

@@ -40,3 +40,5 @@ Display and Monitor - Display Configuration - 1280x800
Power Management: Screen Energy Saving - unselect
add 'qt ALL=NOPASSWD: ALL' to /etc/sudoers.d/qt
sudo zypper -nq install qemu-guest-agent

View File

@@ -32,4 +32,6 @@ Power Management: Screen Energy Saving - unselect
Suspend Session - unselect
YaST - Hardware - Sound - Add Dummy soundcard
sudo zypper -nq install qemu-guest-agent
Reboot

View File

@@ -36,4 +36,6 @@ Power Management: Screen Energy Saving - unselect
Suspend Session - unselect
YaST - Hardware - Sound - Add Dummy soundcard
sudo zypper -nq install qemu-guest-agent
Reboot