Qemu Tutorial

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/qemu-tutorial/
PINTEREST
PINTEREST
INSTAGRAM

Qemu is very old virtualization technology used to virtualize system components and run operating systems on it. Before KVM and XEN QEMU was used heavily but it can not race with VMWARE or VIRTUAL PC. But with the KVM qemu get superfast speed for computing by using hardware based virtualization. QEMU acts as a hardware supplier and KVM is the CPU. KVM resides in linux kernel and there is little configuration for it. Virtualization configuration is made on the QEMU.

Help

  • To get help and all of the configuration options

Syntax

  • Simply run qemu

Download Cloud Images

Popular Linux distributions like Fedora, CentOS, Debian, Ubuntu, RedHAT provides virtual machine images in various formats like raw, qcow2, vmdk etc. We will download Fedora 25 cloud image from following link which is provided by Fedora project.

https://download.fedoraproject.org/pub/fedora/linux/releases/25/CloudImages/x86_64/images/Fedora-Cloud-Base-25-1.3.x86_64.qcow2

Download with wget like below.

Set CPU and Core Count

Set the core count which make vm faster.

Boot From Network

  • Firstly boot from network

Set RAM or Memory Size

  • Set memory size of the vm in megabyte. Default memory size is 128

Set VM Name

  • Set the name of the vm which is show on the window caption

Specify Disk File

  • Start vm with existing disk file which is in qcow2 format and virtio driver is used. Be aware that virtio drivers must have installed on the guest operating system.
LEARN MORE  Which Groups Belong To A User In Linux

Disable GUI

  • Disable graphical interface and use remote connection or console

Connect To Virtual Switch Like virbr0

By default started guest will be connected no network and only single interface will be attached. This is not practical and useful feature for the most of the situations. We can add a network interface and connect this interface into bridge device which is running in host operating system. In this example we will connect our guest with a virtuo type network interface into virtual switch/bridge called virbr0 .

Use Remote Disk Images

  • Use remote disk image via ssh

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/qemu-tutorial/
PINTEREST
PINTEREST
INSTAGRAM

Leave a Reply

Your email address will not be published.