Gather what you need
- Install VirtualBox for your system: https://www.virtualbox.org/wiki/Downloads
- Download the Fedora 23 Workstation ISO to use later https://getfedora.org/en/workstation/download/
Creating the VM Image
- Open Virtualbox and press the blue "New" button to start making your very own image!
- In the "Name" box, name it something unique.
- In the Type Dropdown, select Linux.
- In the "Version" select "Fedora (64-bit)" and hit next.
- Adjust the memory to something usable, hit next.
- Leave it on "Create a virtual disk now", hit create.
- Leave it on "VDI", hit next.
- Leave it on "Dynamically allocated", hit next.
- Adjust the File size to something more like 25gb if you have the space, hit finish. You should see your new box powered off in the left panel.
Configuring the Image
- Right-Click the box in the list and click settings.
- Go to System->Processor tab. Add a CPU or two.
- Under Storage, click on the "Empty" CD Icon.
- Click on the CD icon to the right of the Optical drive. We're going to add the ISO image you downloaded from the Fedora download, so select the option "Choose Optical Disk File" then navigate to the ISO you downloaded in the "Gather what you need" step 2.
- Go to Network and change NAT to Bridged adapter. Sometimes this doesn't work for me though...Under advanced settings you should see a mac address. I keep the first mac address I created so I can reuse it for all my VM's. Less set up in the long run for connecting to the local internet.
- Hit ok to get out of the settings.
Installing Fedora 23 with the Live Image
- Hit start. It should load Fedora 23 Live. Click on "Install to Hard Drive".
- Select Language, Next.
- Click the Installation Destination icon.
- Select the only local standard disk you see and hit "Done" (which is hiding at the top, I know it's silly)
- Click "Begin Installation".
- While waiting for the install to finish, create your root password and local user. Check the "Make this user administrator".
- When the install is finished, click "Quit".
- Shut down the Live Image.
- Go back to the Storage settings and remove the live CD image by clicking on the CD icon to the right of Optical Drive and select "Remove Disk from Virtual Drive".
- At this point I would recommend taking a snapshot of the current Image state so that you can roll back to a fresh install if you need to. Click on the VM listed on the left and you'll see a bunch of Camera icons (Not the snapshots button on the right, that just lists the snapshots you have already taken) Click the one that if you hover over it, the tooltip says: "Take a snapshot of the current virtual image state".
Further Fedora 23 Customization (Make it usable)
- Start the image up.
- Go through the prompts how you will.
- Once you're in the Desktop, go up to the terminal. I mostly use the (start button + typing what program name) so Start -> type "terminal" and hit enter to open it.
In the terminal, install one of the libraries required for install the VBox Guest Additions.
The VirtualBox bar above your running VM and select Devices->Insert Guest Additions CD Image. Click Run and enter your password. Hopefully the output you get won't contain errors. If it gives you an error saying you need to install a specific version of kernel-devel, copy that entire version name which probably looks like this: kernel-devel-4.3.3-301.fc23.x86_64
Then install it like so:
If you have troubles with this step, try an update restart.
- Run the vbox additions again by going into the file explorer (search for "files") and navigating to the Mounted VBOXADDITIONS CD. There will be a button in the top right that says "Run Software". It should install without error now.
- In the VirtualBox Menu above your VM click on Devices->Shared Clipboard->Bi-directional and Devices->Drag and Drop->Bi-directional.
- Restart your image for those changes to take effect, but make sure you select install updates on the restart.
Once you're back in, open up the terminal again and update your software. Even though this is a fresh image straight from Fedora, the update is going to take a while.
- Restart again if you feel like it.
- All done! Continue on with what you want to do with your shiny new VM. I suggest taking another snapshot for good measure.