Manjaro Virt-manager

Virt-manager

From Manjaro
Revision as of 15:23, 10 July 2015 by imported>Ataulfo (1c00b0dfdbf7afd3b89d24e8e38068634e14316ba278aa6e89d14b3227196f2c)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

Topbar logo.png



Tip
Have you heard about Virtualbox to virtualize operating systems like Linux and Windows or Mac? It 'a good program, but not the only one! Don't forget VMware, Gnome Boxes and ...virt-manager.


Virt-manager uses libvirt and it's a manager of many hypervisor, including the one that we want to use here: QEMU / KVM.


Why do I need to virtualize?

  • To learn about a new S.O
  • To configure a hardware that has a setup only for that operating system
  • To use a program that only works on another

I want to know more

Hypervisor 1.png


1. Virtualization
2. Hypervisor
3. Virtual machine

What we absolutely must know


1. What is my CPU. Identify it and make sure it's at least a quad core. TAKE A LOOK AT CPU-World
2. How much memory I have. Check the RAM and verify that is at least 4GB.
3. The amount of free space on my HDD.Launch gparted and make sure you have a partition with at least 20GB free. While you're there add a label to the partitions to better recognize them even by name.
4. The minimum hardware requirements of the operating system you want to install as a virtual machine.

From terminal:

sudo pacman -S inxi dmidecode gparted && sudo inxi -Fxm
Inxi 1.png
Gparted 1.png


Install virt-manager, qemu and all dependencies


From terminal:

sudo pacman -S virt-manager qemu vde2

Enable and start service

sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service


Using Virt-Manager


1. Launch menu Virtual Machine Manager, check that it is connected.
2. Go to File, choose Add Connection and choose hypervisor QEMU / KVM user session. Click on connect.From the screen select the first qemu / kvm, Right click, unplug and delete it.
3. You need the HDD space in which to create the virtual machine and copy the ISO file of the operating system (but you can also use the cd / dvd burned). Double click qemu / kvm, go on storage and add by clicking + the path to the folder where you have the iso and the folder where create the virtual machine.


Tip
My advice: use a different partition than the root. If you can create a new one with gparted or recover new space with a resize. In case you need to reinstall your operating system does not lose the VM that already ready-to-start.

4. Click on create a new virtual machine: select cdrom or iso (first path created where put the iso file)
5. How many CPU assign and how much memory? (check the recommended requirements of S.O. that you are installing)
6. Create the file system of the virtual machine by selecting managed or other storage and create the volume of the virtual machine. How many GB? Check the recommended requirements OS you install.
7.Assign a name to the machine and flag customize before installing. You have access to the screen with all the hardware that will be virtualized, do a check if there is all that is needed to initialize and launch the installer.
8. Click on the top on installation and start.

Warning
All these steps will soon be visible in a video on youtube.

Install guest additions

Once the VM is started and running you have to install the guest spice tools.
For Windows is a single package: spice-guest-tools-xxxx.exe
For linux are: spice-vdagent and xf86-video-qxl.
Visit: Spice download

References

Virt-manager
Libvirt
Qemu
x86 virtualizationx86 virtualization
Intel-vt
Amd-v

Cookies help us deliver our services. By using our services, you agree to our use of cookies.