US
13 MIN READ TIME

Inside Linux

Virtual this, that & the other

Matt Holder delves deeper into the kernel to discover virtualisation, containerisation and virtual filesystems.

CREDIT: Magictorch

Part Two! Don’t miss next issue, subscribe on page 16!

In this part of our Inside Linux series, we are looking at more of the features our kernel offers and introducing virtual filesystems and hardware detection. Last month, we covered the basics of the Linux kernel, what it does and how it makes our lives a lot easier by providing interfaces between userspace applications and the hardware itself. As we discovered, the kernel is made of multiple subsystems, each of which is split into a number of layers. This time, we are looking at the virtual filesystem layer of the storage subsystem.

Your Linux distribution follows the concept that ‘everything is a file’. This means that pictures, documents, movies, directories, writing to hardware and reading from hardware are all abstracted into filesystem operations. For example, sending data to or reading data from a serial port is done by referencing a file in a certain part of the filesystem.

Virtual first

First arriving in 2007, Kernel-based Virtual Machine (KVM) allows the kernel to function as a virtualisation hypervisor. KVM emulates a virtual CPU and memory, and has support for VirtIO. Tools such as Qemu are then used to provide the emulation of some of the other hardware devices as well as using VirtIO, which is a standard for the communication between the virtual machine and hypervisor to allow for high-performance networking and disk operations. Drivers are available for Windows guests as well as Linux support being widespread. We will now turn our Ubuntu installation into a hypervisor and use Cockpit to control it.

To set up your Ubuntu installation as a hypervisor, open a terminal and enter the following commands:

$ sudo apt install bridge-utils cpu-checker libvirtclients libvirt-daemon qemu qemu-kvm $ sudo apt install cockpit cockpit-machines

The kernel is made from multiple subsystems and each one is made up of multiple layers.

The first command installs the necessary tools to run virtual machines and the second installs Cockpit, which can be used to set up and use virtual machines.

Once installed, open your web browser, navigate to https://127.0.0.1:9090 and use your username and password to log in to Cockpit. Spend some time learning about the tasks you can accomplish, such as adding users and performing upgrades. Select the Virtual Machines menu on the left-hand side and use the displayed option to create a new VM.

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99c
SUBSCRIBE NOW
30 day trial, then just $9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
August 2024
VIEW IN STORE

Other Articles in this Issue


LINUX FORMAT
LINUX FORMAT
The #1 open source mag Future Publishing Limited,
WELCOME
Rescue and repair
We often like to have a little giggle
LINUX FORMAT
MEET THE TEAM
REGULARS AT A GLANCE
Distros start to ban AI code
Generative AI continues to court controversy as Gentoo and NetBSD heavily restrict its implementation.
Qualcomm on upstreaming to Linux
Patchsets for the Snapdragon X Elite SoC aim at Linux compatibility.
APT 3.0 is coming
New APT solver comes with a number of changes.
A LIBRE SUMMER
Italo Vignoli is one of the founders of LibreOffice and the Document Foundation.
THE LONG HAUL
David Stokes is a technology evangelist at Percona.
Framework optimises screen
Invisible pixels promised.
KeePassXC kerfuffle
Upcoming Debian Trixie implementation of KeePassXC won’t offer optional features like browser integration.
Neofetch is dead
Creator of utility archives repo to take up farming.
What’s behind the free software sofa?
LINUX LITE 7.0 Linux Lite has a tweaked
FEEL THE G-FORCE
Daniel Morin is a senior software developer at
Kernel Watch
Jon Masters summarises the latest happenings in the Linux kernel, so that you don’t have to.
Answers
Neil Bothwick swallowed a Got a burning question
Mailserver
Quantum Leap Seeing as Linus Torvalds wrote programs
HotPicks
THE BEST NEW OPEN SOURCE SOFTWARE ON THE PLANET
REVIEWS
Ryzen 7 5700X3D
Paul Alcorn is feeling more powerful than ever with AMD inside!
LibreELEC 12.0
Nate Drake is impressed with the freedom that the latest version of LibreELEC (code name Omega) offers to cosy up to Kodi.
AlmaLinux 9.4
Alma is the Spanish word for soul. Nate Drake certainly feels his has been uplifted through this spiritual successor to CentOS.
SparkyLinux 2024.05
Nate Drake blinks and almost misses this zippy Debian-based distro, so light on resources it runs perfectly on ancient hardware.
Garuda Linux 240428
Nate Drake seldom applies the words ‘luxurious’ or ‘sumptuous’ to an OS, but in Garuda’s case, he makes an exception.
Nvidia GeForce Now for Steam Deck
Management is wondering where Dave Meikleham and Alex Wawro are. Perhaps those noises from the server dungeon aren’t those of hard work…
ROUNDUP
ROUNDUP
Hyper Cool Retro Term Yakuake Terminator Terminology
Save your old PC
REPAIR IT WITH LINUX
Don’t consign your old machines to the scrap heap just yet – Jonni Bidwell reckons they can still be put to work.
Time and tide
Linux can run on various machines that are plenty old, but first we really ought to manage your expectations.
Hardware refresh
Fifty British pounds (or local equivalent) and half an hour on an auction site might give your PC the shot in the arm it craves.
Introducing L MDE
We investigate the easy-to-use but powerful Linux Mint Debian Edition – like regular Mint, but with less Ubuntu, more Debian.
Vintage PC options
We look at some alternative web browsers, and summarise the ultra-lightweight distro scene for particularly old systems.
Pi USER
$40 million Raspberry Pi IPO set for June
London Stock Exchange to be hit by Pi.
Easier coding
With management tools
Get together!
Clubs are back, baby
TAKING A HAT FOR A DRIVE
The Raspberry Pi M.2 HAT+ has finally been
Ubuntu 24.04 LTS Pi
Les Pounder has been using Ubuntu since 2005, which makes him feel incredibly old. Can Ubuntu 24.04 on the Pi 5 make him young again?
QIDI Tech Q1 Pro
Getting hot under the collar, Denise Bertacchi likes this heated model.
PYTHON
Build your own fortune teller
All of your Pis are under your control
No one would say Les Pounder has gone power mad, but he’s cackling like a Bond villain now he can control all the Pis.
TUTORIALS
Fancy file management
While CLI purists scoff at TUI tools, Shashank Sharma has no hesitation working with wonderfully crafted utilities that do their job well.
Installing and managing software
LINUX BASICS
Install and control Flatpak software
Get installing tools with the distro-agnostic packaging system that offers all sorts of advantages. Michael Reed has come packing his hex key set.
Create a Fyne journaling app
Dressed in his programming finery, Andrew Williams shows how you can quickly build a graphical app for your computer using Fyne and Go.
Reliving the birth of the terminal
It looked like a PC but, although it wasn’t user-programmable, the display terminal had a vital role in the days of minicomputers, says Mike Bedford.
Create old-school pixel art images
Still stuck with the ancient GIMP 2, Neil Mohr decides to go even more retro and explore how you can create classic pixel art with it.
ADMINISTERIA
Use some admin-fu to master snapshots
Most users don’t much care about the underlying disk management system LVM, but Stuart Burns reveals one of its most useful features.
Root & branch
Databases, observability, open core and trashed PCs get a mention as Linux Format talks to Percona founder Peter Zaitsev.
CODING ACADEMY
Create a play-by-mail user interface
David Bolton looks further into designing play-by-mail-type games, with insights about the user interface and core game features.
Screens of fractals and complex numbers
Blowing our minds and eyes with his psychedelic demos, it looks like Ferenc Deák has a rising medical bill to pay…
Chat
X
Pocketmags Support