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.
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.
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.
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
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.
News
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.