From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Creating a VM with QEMU and KVM

Creating a VM with QEMU and KVM - Linux Tutorial

From the course: Linux Tips

Creating a VM with QEMU and KVM

- [Instructor] To get started using QEMU. I'll make sure the QEMU system package is installed here on my Ubuntu machine. QEMU provides a huge number of options for creating virtual machines. And I encourage you to take a look at the Man pages for the various tools. You can do that with man qemu-system-. And if the architectures you'd like to take a look at I'll open up x86_64. We can spend hours digging through the various options that QEMU provides but I want to show you around just a little bit. So let's use QEMU and KVM to create a very basic Linux VM. (keyboard sound) It'll have a 20 gigabyte hard drive, two gigabytes of memory and network access and we'll do a minimal install of Ubuntu Server. First We need to create the file for the virtual disk. I'll do that with qemu-img create -f qcow2 mydisk.qcow2 20g. The qcow2 format will make a sparse file. So it won't take up the full 20 Gigabytes right from the start.…

Contents