QEMU on antiX Linux
this guide will walk you though setting up QEMU, Virt Manager on Antix Linux runit v23.2, the instructions are inspired by this antix linux forum
-
Install Dependecies
Section titled “Install Dependecies”according to official QEMU guide , run install these Dependecies
Terminal window sudo apt install qemu-system qemu-utils dnsmasq-base qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager gir1.2-spiceclientgtk-3.0 spice-vdagent -
Setup Deamons and Services
Section titled “Setup Deamons and Services”to setup the
libvirtd,virtlockd,virtlogdservices, clone this gitlab repoTerminal window git clone https://gitlab.com/techore/libvirt-runitthen copy the files to the required locations
Terminal window cd libvirt-runitsudo cp -r etc/* /etc/sudo cp -r var/* /var/sudo ln -s /etc/sv/libvirtd /etc/service/libvirtdsudo ln -s /etc/sv/virtlockd /etc/service/virtlockdsudo ln -s /etc/sv/virtlogd /etc/service/virtlogdsudo sv start libvirtdsudo sv start virtlockdsudo sv start virtlogdsudo mkdir /usr/share/runit/sv/libvirtdsudo mkdir /usr/share/runit/sv/virtlockdsudo mkdir /usr/share/runit/sv/virtlogdsudo cp /etc/sv/libvirtd/run /usr/share/runit/sv/libvirtd/sudo cp /etc/sv/virtlockd/run /usr/share/runit/sv/virtlockd/sudo cp /etc/sv/virtlockd/run /usr/share/runit/sv/virtlockd/now, set the qemu network service on host system to autostart on startup
Terminal window sudo virsh net-autostart default -
Add User to
Section titled “Add User to libvirt group”libvirtgroupthis step is a common miss, not doing this causes
authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'Terminal window sudo usermod -aG libvirt $(whoami)
Setup shared clipboard (Optional)
Section titled “Setup shared clipboard (Optional)”if you’re running a linux OS in the Virtual Machine and want to have a shared clipboard amoung host and guest OS, then :
on the Guest System (the Virtual Machine),
you need to install the spice-vdagent package
choose your Guest OS and run the given command :
sudo apt install spice-vdagentsudo dnf install spice-vdagentsudo pacman -S spice-vdagentafter that, you need to start the spice-vdagent on startup on your Guest OS
choose the Guest OS to see instruction
create a file at /etc/sv/spice-vdagent/run
sudo vim /etc/sv/spice-vdagent/runand add this exact content to it
#!/bin/shmkdir -p /run/spice-vdagentdexec /usr/sbin/spice-vdagentd -xthen create a symlink of /etc/sv/spice-vdagent to /etc/service/ directory
sudo ln -s /etc/sv/spice-vdagentd /etc/service/finally add this line at the end to the ~/.desktop-session/startup file using vim, nano, anything you like
spice-vdagent &you would need to google for “how to setup a service to run on startup on <your os>”