Virt-manager/QEMU guest

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

This article covers Virt-manager and its QEMU creation of a guest (VM or container) (VM) for use under the soft-emulation mode QEMU hypervisor Type-2.

Virtual Machine Manager (virt-manager) and its configuration toward the creation of an strict-emulation-mode virtual machine that an QEMU-capable operating system to be installed on.


Requirements

Host requirements

CPU requirements

Available memory

Disk space

Guest OS requirements

VM creation

To use the GUI approach, start the Virtual Machine Management application, virt-manager.

user $virt-manager
Note
To use the command line interface (CLI) approach only, follow this libvirt/QEMU guest wiki page.

virt-manager main window

Create a New VM

Hover the mouse over the button showing a console icon with shiny star tag (or use `File`->`New Virtual Machine` from menu bar:

VirtManager - New Virtual Machine

How to Install

A new dialog appears that is titled "New VM" and highlighted "Create a new virtual machine" "Step 1 of 5".

virt-manager new ISO image

Select the radio button to "Local install media".

To advance to the next step, press the "Forward" button.


Choose Image Media

"Choose ISO or CDROM image media" "Step 2 of 5" appears.

Hit the "Browse" button and find your downloaded image file: Gentoo, we hope, but any image media having this ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) will do.

Step 2 - ISO CDROM

Select the image file.

Step 2 - ISO CDROM

Click on the "Choose Volume" button.

Its file dialog box disappears and returns you back to the "New VM" GUI.

Make sure that checkbox is DISABLED to "Automatically detect from installation media / source".

In the textbox titled "Choose the operating system you are installing:", enter in `gentoo` and the popup combo box appears. Mouse-click on "Gentoo Linux (gentoo)"

Step 2 - ISO CDROM

Press "Forward" button.

Memory and CPUs

Selecting memory and CPU is basically rocket science. Pick them as you need them. Memory can be adjusted at next run; storage size, not as easily.

Memory

In Step 3 of 5, select the amount of memory that the operating system of new virtual machine desires.

Select the number of CPUs to make available to the new virtual machine.

Step 3 - Create Virtual Machine

Storage

In the "New VM" GUI, "Step 4 of 5" appears.

In the "Create a disk image for the virtual machine" textbox, increase it to the desired storage size, in gigabytes.

Step 4 - Create Storage

Press "Forward" button to continue to the next step.

Begin Install

Step 5 of 5 window appears.

Expand the "Network Selection".

Step 5 - Begin Install

Enable the checkbox to "Customize configuration before install".

Step 5a - Begin Install

Ensure that "Virtual Network 'default': NAT" is already selected as a minimum.

Press the "Finish" button.

Tweaking VM

Step 6 - Virtual Machine Configuration

Step 7 - Configuration Begin

At the menu bar, press "Begin installation" button.

Boot Up Result

After BIOS and Linux kernel bootup, you should get a virtual machine up and running.

Last Step - Boot-up Result - Live Gentoo

See also

  • Virtualization — the concept and technique that permits running software in an environment separate from a computer operating system.
  • QEMU — a generic, open source hardware emulator and virtualization suite.
  • QEMU/Front-ends — facilitate VM management and use
  • Virt-manager — desktop user interface for management of virtual machines and containers through the libvirt library
  • QEMU/Linux guest — describes the setup of a Gentoo Linux guest in QEMU using Gentoo bootable media.