Latest Qemu Installation in Ubuntu 22.04 – Step-by-step

October 4, 2023 | By the+gnu+linux+evangelist.

Getting Started

  1. 7. Installing Libvirt

    Now to Install Libvirt for Ubuntu
    Simply play:

    sudo apt install libvirt-bin ubuntu-vm-builder bridge-utils ipxe-qemu libcacard0 libexecs1 libfdt1 libiscsi7 libnfs13 librbd1 libslirp0 libspice-server1 libusbredirparser1 libvdeplug2 libvirglrenderer1 ovmf

    Following Ubuntu Documentation about KVM related Packages:

    • libvirt-bin provides libvirtd which you need to administer qemu and kvm instances using libvirt
    • ubuntu-vm-builder powerful command line tool for building virtual machines
    • bridge-utils provides a bridge from your network to the virtual machines
  2. 8. Adding User to Group

    Next Add User to libvirt Group
    First, you need to Make the Group:

    sudo addgroup libvirtd

    And then Add User with:

    sudo adduser `id -un` libvirtd

    This because only the Users of this Group can Run Virtual Machines.
    Then Relogin to Enable this Setup!

  3. 9. Verifing KVM Installation

    Finally, Test Installation.

    Simply performing:

    virsh list --all

    And in the Output you should find:

     Id    Name                           State
    ----------------------------------------------------

    This because still no VMs has been made.

  4. 10. Starting Libvirt Daemon

    Again to Start Libvirtd Daemon.

    sudo service libvirtd start

    And to Enable it on Boot:

    sudo update-rc.d libvirtd enable
  5. 11. Creating and Running KVM VMs

    KVM Virtualization Getting-Started Guide

    KVM+QEMU+VirtManager VM Quick Start

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress