vp-16-add-virt-manager.sh 369 B

1234567891011121314151617
  1. #!/bin/bash
  2. if (( $EUID != 0 )); then
  3. echo "Eseguire lo script come amministratore"
  4. exit
  5. fi
  6. # installo dipendenze necessarie
  7. apt-get install --yes qemu-kvm libvirt-clients qemu-utils libvirt-daemon-system
  8. # aggiungo utente ai gruppi necessari
  9. adduser $SUDO_USER libvirt
  10. adduser $SUDO_USER libvirt-qemu
  11. # installo virt-manager
  12. apt-get install --yes virt-manager