Last active
October 5, 2021 18:44
-
-
Save UnderGrounder96/b5dd1eb65a1d61175fa188172d130af9 to your computer and use it in GitHub Desktop.
Install qemu-kvm libvirt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# WIP from: https://linuxhint.com/install_kvm_qemu_centos_8/ | |
sudo groupadd polkit | |
sudo usermod -aG polkit ${USER} | |
sudo yum install -y \ | |
qemu \ | |
dhclient \ | |
openbsd-netcat \ | |
virt-viewer \ | |
libvirt \ | |
dnsmasq \ | |
dmidecode \ | |
ebtables \ | |
virt-install \ | |
virt-manager \ | |
bridge-utils | |
sudo systemctl enable --now libvirtd | |
sudo sh -c "systemctl start libvirtd; systemctl enable libvirtd" | |
mkdir ~/.config/libvirt | |
sudo sh -c "cp -rv /etc/libvirt/libvirt.conf ~/.config/libvirt/ &&\ | |
chown ${USER}:wheel ~/.config/libvirt/libvirt.conf" | |
# uncomment line -> uri_default = "qemu:///system" | |
# sudo cp ~/Downloads/my_pretty_image.qc2 /var/lib/libvirt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt install qemu-kvm libvirt-daemon-system -y | |
sudo apt build-dep -y vagrant ruby-libvirt | |
sudo apt install -y qemu libvirt-daemon-system libvirt-clients ebtables dnsmasq-base | |
sudo apt install -y libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev | |
sudo apt install -y libguestfs-tools | |
vagrant plugin install vagrant-libvirt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment