{{announcement.body}}
{{announcement.title}}

How to Set up Fedora in a Virtual Machine

DZone 's Guide to

How to Set up Fedora in a Virtual Machine

How amazing it will be if we are able to run an Operating System over our base Operating System. Well, this is actually possible. Want to know more?

· Open Source Zone ·
Free Resource

How amazing it will be if we are able to run an Operating System over our base Operating System. Well, this is actually possible. Want to know more? Explore!

Note: My base Operating System is Linux, precisely Fedora 29. I will install Fedora 30 over my base, using Virtual Machine Manager. You can install a Windows image on it as well.

You may also like: The JVM Architecture Explained

Setting Up a Virtual Machine

If you have fedora, just like I do, then Virtual Machine Manager will be pre-installed. Fedora ships with pre-installed Virtual Machine Manager. Otherwise, check this link: https://virt-manager.org/

You can install it using the following commands:

Java


x
 
1
# yum install virt-manager (Fedora)
2
# apt-get install virt-manager (Debian)
3
# emerge virt-manager (Gentoo)
4
# pkg_add virt-manager (OpenBSD)


Now download any iso image. Here I have downloaded Fedora30 image. See below:

download fedora

Click on the download button for downloading the x86_64 DVD ISO image. Check this following link:

https://getfedora.org/en/workstation/download/

After the download is complete, open the virtual machine manager. It might ask for your root password. After starting the tool, this window will appear.

virtual machine manager

Note: Your virtual machine manager might be empty, I have two virtual machines created already.

Now, from the “File” tab, select “Add Connection” and this window will appear. By default, you will find the manager is connected directly to the localhost. You can connect another host remotely as well.

virtual machine manager

Check Connect to remote host option then provide the Hostname/IP of the remote server. If you need to establish a connection to the remote host at every time the manager starting, just check the Auto Connect option.

Let’s return to our localhost and hit the button VM in the main window, this wizard window will appear.

virtual machine manager


Select the installation method which you will use to create the virtual machine. For now, we will use Local install media. We are using the ISO image method, so browsing the path of the ISO image. Press Forward and browse from downloads and select the iso image. Then click Choose Volume. A new window will open stating step 3 of 5. See below.

virtual machine manager

Provide the desired/required memory and allocate the CPUs. To run virtualization on Fedora, you need at least 600MB of hard disk storage per guest and 256MB of RAM per guest. Click on Forward. This screen will appear.

virtual machine manager

This is step 4 of 5. We are allocating 10 GiBs of space for creating a disk image for the virtual machine. Enable Storage box should be checked in. Click on Forward.

virtual machine manager

Now, this is step 5 of 5 steps. Give a suitable name to your virtual machine and click on Finish. This above screen will appear.

virtual machine manager

Next, you will see this screen coming.

virtual machine manager

You will also find this, your Fedora30 is running.

Topics:
fedora ,virtual machine ,opensource ,virtualization ,tutorial

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}