Linux Format

Virtual this, that & the other

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

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format8 min read
Create A Fyne Journaling App
Credit: https://fyne.io Over the past decade, we have seen great improvements in the graphical software user experience and corresponding advancements in the tools that are used to create compelling apps for our phones and tablets. Unfortunately, bui
Linux Format1 min read
Tom’s HARDWARE
No matter if you're building a PC, buying a laptop or learning about robots, Tom’s Hardware has all the comprehensive knowledge you need. Scan & Subscribe for free! ■
Linux Format10 min read
Create A Play-by-mail User Interface
This is the second article in our series about creating play-by-mail games. These are games that are now played over the web (or by email), and we’ll be looking at various aspects of this, including user input, use of JSON, clans, and free versus pai

Related Books & Audiobooks