KVM virtualization with Qemu and Aqemu

Creating VMs

To create a VM, first go to the bar on the left with the buttons and click on the icon with the magic wand. This step calls up a wizard that will help you to set up a functional VM in a few steps. The options in the dialog tabs for a simple system correspond to those of the defined template.

After completing the wizard, you now need to assign a boot medium to the new machine. The wizard creates a virtual hard disk according to your specifications. Usually, the boot medium is either an optical disc or an ISO image. In the CD/DVD/Floppy tab, enable the optical drive by checking the box next to the CD/DVD-ROM option. In the selection field below, select an appropriate image or a physical drive.

In the General tab you can adjust the keyboard layout. Then launch the VM by clicking on Play. The new system launches in a second window customized in size and resolution. If it responds particularly slowly, you will need to adjust other options after finishing the session.

The wizard sets the RAM size of the new VM to just 256MB. For many distributions, it is recommended to set a higher value in the General tab – the physical memory needs to be around 2GB or more for a typical Live system. For compact distributions such as SliTaz or Puppy Linux, 256MB will suffice.

Aqemu limits the number of usable core processors in the specification to just one. If the host has a modern CPU with HT technology enabled, you can assign two or more cores to the VM in the General tab beside Number of CPU.

To permanently install a launched Live system on the virtual disk, trigger your distribution's installation process and choose the virtual image in the installer as the mass storage medium. You'll find the intended mass storage in the HDD tab of the Aqemu window, usually listed as HDA (Primary Master), including the maximum size of the virtual disk. If necessary, you can adjust the disk size by clicking the Format button when the VM is off.

After completing the setup, check the most important details in the Info tab (Figure 2). You can create several virtual systems, which Aqemu then lists in the program window to the left.

Figure 2: The Info tab provides a system overview of the VM.

Manual Creation

You can also create new VMs manually, instead of using the wizard. Left click on the button with the green plus sign. The software asks for a name for the new system; you can then enter all other settings in the various tabs.

ARM emulation is initially preset in the General tab in the Computer Type checkbox. Change the setting to IBM PC 64Bit so that you can then modify the number of core processors in the Number of CPU field.

When setting up multiple VMs in the Primary Master (HDA) segment, you will want to create a new image for a hard disk for each machine in the HDD tab (Figure 3). Otherwise, Aqemu assumes an image you created previously for the new VM. In the CD/DVD/Floppy tab, you can also modify the image that is used when the virtual system is first launched.

Figure 3: Creating an HDD image.

After you change all critical settings, close the dialog by clicking Apply. You can then launch the desired VM by clicking Start. Aqemu automatically adjusts the screen resolution. Additionally, it automatically starts the mouse cursor in most cases, so that you can easily switch between host and guest without the need to press any keyboard shortcuts.

To end a session, bring the Aqemu window to the foreground and click Stop. In a superposed dialog, the software will ask whether it should stop the VM. After confirming, Aqemu closes the window.

Snapshot

The KVM/Qemu virtualization environment lets you create a snapshot of a VM. A snapshot preserves a defined state of the VM, which lets you reconstruct the state in the event of a problem.

First, make sure that the VM is running when you create the snapshot, then select the Manage Snapshots option in the VM menu in the main window. In the dialog box that opens, click on +Create and enter a name and, optionally, a description for the snapshot. After a final click on OK, Aqemu creates the snapshot.

In the same window, you will see existing snapshots in the Snapshot List box and, if desired, you can activate a snapshot with Start.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • KVM Front Ends

    If you want to care for a zoo full of exotic KVM guest systems on your desktop, you could use a little help from a graphical front end.

  • QEMU and Qemu Manager

    Carry a virtual Linux machine with you wherever you go.

  • QEMU 2

    The new version of QEMU is a free virtualization solution that offers excellent stability and flexibility. We show how to deploy QEMU 2 in a Live environment.

  • Whonix

    The curiosity of various players on the Internet is making anonymity increasingly important. The Debian derivative Whonix offers an easy-to-install, comprehensive solution with a complete virtual work environment to protect your privacy.

  • Virtual Box

    Many popular virtualization tools are either too expensive or too complicated. If you’re looking for another option, try the no-cost and user-friendly VirtualBox.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News