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?
Join the DZone community and get the full member experience.Join For Free
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:
Now download any iso image. Here I have downloaded Fedora30 image. See below:
Click on the download button for downloading the x86_64 DVD ISO image. Check this following link:
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.
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.
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.
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.
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.
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.
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.
Next, you will see this screen coming.
You will also find this, your Fedora30 is running.
Fedora30 will start booting after 60 seconds. Select Install to Hardrive from the GUI. Then select the language in which you want to use your new fedora and press continue.
Next, select the disk and press Done.
Now, Begin installation. It might take some time to install.
You can enjoy a full screen view to your newly installed Fedora30 also.
After the installation is complete, you will see this screen.
You can now create a new user, set up password and other permissions for your newly created user. This is another topic to discuss for some other day. :)
Hope, you have enjoyed reading this article as much as I did while writing it. Thank you :)
Opinions expressed by DZone contributors are their own.