Libvirt Setup: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
How to setup Qemu/KVM using Libvirt on debian.
How to setup Qemu/KVM using libvirt on debian.
<hr>
<hr>
Install Libvirt:
Install libvirt:


<code>sudo apt install libvirt-daemon-system</code>
<code>sudo apt install qemu-kvm</code> # The actual virtualization solution we are using


<code>sudo apt install virt-manager</code>
<code>sudo apt install libvirt-daemon-system</code> # The background service that acts as a frontend for QEMU/KVM


<code>sudo gpasswd -a $USER libvirt</code>
<code>sudo systemctl enable --now libvirtd</code> # Enabling the background service
 
<code>sudo apt install virt-manager</code> # The GUI for creating and managing VMs
 
<code>sudo gpasswd -a $USER libvirt</code> # You will need to log out and back in for the changes to take effect.
 
 
Open virt-manager from the GUI and start having fun! :D
 
 
 
 
<hr>
Sources:
https://ubuntu.com/server/docs/virtualization-libvirt

Latest revision as of 18:36, 22 April 2024

How to setup Qemu/KVM using libvirt on debian.


Install libvirt:

sudo apt install qemu-kvm # The actual virtualization solution we are using

sudo apt install libvirt-daemon-system # The background service that acts as a frontend for QEMU/KVM

sudo systemctl enable --now libvirtd # Enabling the background service

sudo apt install virt-manager # The GUI for creating and managing VMs

sudo gpasswd -a $USER libvirt # You will need to log out and back in for the changes to take effect.


Open virt-manager from the GUI and start having fun! :D




Sources: https://ubuntu.com/server/docs/virtualization-libvirt