Wed Aug 30 07:29:58 2023 UTC

Install QEMU and start a virtual machine

Introduction

To Create a qemu virtual machine using NuTyX unique scripts and start the vm

Install Qemu

The package is named qemu.
sudo cards install qemu

This will install all needed files and 2 scripts "configvm and startvm" that will helpe us to create and start a vm.

Configure Qemu


Your account needs to be part of the 'kvm' group
to be able to use qemu:

  usermod -a -G kvm 
 ***

As it's says in yellow, you needs to be part of the kvm group. In this tutorial, user's name is james

usermod -a -G kvm james
They should me no output at prompt

Preparation

  • Open a terminal in USER account and create the needed Dirs.
    mkdir -pv ~/VM-qemu/iso
  • Download any ISO. Make sure the Downloaded iso is in ~/VM-qemu/iso dir.

for example, the 64bits 23.08.0 version BASE iso will be:

https://sourceforge.net/projects/nutyx/files/NuTyX_x86_64-23.08.0-BASE.iso

  • Start the config script
    configvm
  • This will start the script asking a number of options.

    • The name of the VM. Enter a name for example:
      NuTyX-base
    • The size of VM Default is 30G You can change by entering the size required.
    • Do you want a "bios or uefi" install. Bios is the default.
    • The disc interface. Accept the default ide
    • The memory for VM default is 2G. You can change this enter new size.
    • The cpu to use host is default but other options are listed.
    • The number of cores to allocate to VM: 2 cores is the default, it can be changed.
    • The Network card. Use default can be used.
    • Which ISO to use. The list will be what is in ~/VM-qemu/iso directory. Select the ISO name you wish to use.
    • The GRAPHICS Card. Select default Virtio
    • The OpenGL support. Select default which is No.
    • The Graphic option. Select default Local.
    • Open in Full screen or Reduced size. The default is reduced. Enter Full if prefered.
    • The Sound Card. The default is AC97
    • Tablet Pointer. The default is No
    • This will start the VM.

Start a pre built VM

  • To start a prebuilt VM.
    startvm

This will give 2 Warnings " You didn't state WHICH VM to start, but it will list all availble VM's. Select the 1 you want. Simply enter the Name of which VM.

  • There is a nice feature if Zenity is availble. The script will use that to list all VM's.

    Just select VM and hit "OK"

Enjoy your qemu installation.