QEMU is a Linux emulator used to create virtual machines. Many people use Virtual Box on Windows, but fir Linux, you can use QEMU instead.

4

Create a virtual machine.

  1. Once you're all set up, you can create a virtual machine at the command line or in the GUI. Here's how:
    • For the command line, the command is:
      • sudo virt-install --name=itzgeekguest --ram=1024 --vcpus=1 --cdrom=/var/lib/libvirt/images/CentOS-6.9-x86_64-minimal.iso --os-type=linux --os-variant=rhel7 --network bridge=br1 --graphics=spice --disk path=/var/lib/libvirt/images/itzgeekguest.dsk,size=4
    • For graphical mode, you need to be root. Sometimes starting the Virtual Machine Manager from Dashboard does not give all the features to create a virtual machine.
      • sudo virt-manager
5

Manage your virtual machines.

  1. You can manage your virtual machines in the virtual machine manager. To do so:
    • Choose "File" and "New Virtual Machine".
    • Browse for the desired operating system.
    • Choose the type and version for your operating system.
    • Choose your memory and CPU settings.
    • Tick "Enable storage for this virtual machine" and "Create a disk on the computer's hard drive," or pick "Select managed or other existing storage" and select your desired storage.
    • Choose "Advanced options" to select bridge networking; this allows the communication to outside networks.
    • Give a name to the VM and tick "Set a fixed MAC address".
  2. Advertisement

About This Article

Tested by:
wikiHow Technology Team
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 168,439 times.
How helpful is this?
Co-authors: 8
Updated: December 1, 2022
Views: 168,439
Advertisement