Skip to content

Instantly share code, notes, and snippets.

@CodyKochmann
Created March 11, 2021 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodyKochmann/88010a06566a747cac0cebd50057b7ce to your computer and use it in GitHub Desktop.
Save CodyKochmann/88010a06566a747cac0cebd50057b7ce to your computer and use it in GitHub Desktop.
install virsh and kvm for vm management on a fedora coreos host
#!/bin/bash
# installs virsh and tools for kvm on fedora coreos
# by: Cody Kochmann
# license: MIT
function remove-nfs-client(){
# this is needed if install has an issue
# with mount.nfs already existing
rpm-ostree override remove nfs-utils-coreos
}
function install-kvm(){
rpm-ostree install --reboot bridge-utils libvirt virt-install qemu-kvm virt-manager virt-top libguestfs-tools
}
function install-kvm-with-nfs-patch(){
remove-nfs-client
install-kvm
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment