Today's Background Task: RHEL 7 KVM Image on Ubuntu Trusty
SamAlexander 120000PQMY Visits (6624)
Virtualization technologies -- Really cool stuff that can really help developers, but being a full fledged expert in it can also be a full time job. There's multiple implementations -- kvm, qemu, VMWare, etc -- and the ways to configure each can be daunting. Knowing that I can't drop everything I'm paid to do to immerse myself in it, I've spent small amounts of time here and there over the past year experimenting and building my own VMs for various purposes.
A long time Linux fan, I currently run Ubuntu as my IBM desktop. When I set up this desktop about a year ago, I had planned for several types of VMs: a Red Hat Enterprise Linux vm to run Portal; a Windows environment, just in case I needed it (and those times are few); and potentially other VM's for particular customer environments. (Often in the context of customer work, I have to install the customer's vpn software and other tooling that I don't necessarily want on my work machine)
KVM was installed already, so I worked with that. It's been painful at times as I've dealt with a number of problems dealing with issues like screen resolution, networking, and disk space. Mainly by experimentation over the past year I finally have enough information to be successful with it.
Today, while working on other things, I needed to set up a Portal environment so that I have everything on one laptop for IBM ConnectED. (Running Portal on Ubuntu isn't supported, and it's nice to have it in its own environment, anyway).
Here's a high level process I followed to create the kvm image:
Get Linux as an ISO Image
There's a few different ways to install Linux as a KVM image. I chose to use an ISO image. In my case, I downloaded the RHEL 7 .iso image and saved it locally.
Use Virtual Machine Manager to Install It
Although it's not the most intuitive application I've ever seen, I used Ubuntu's Virtual Machine Manager to install a new KVM image.
Click the "Create a New Virtual Machine" icon, which is the little computer with a yellow star on it. :-)
Then, choose your iso image.
Choose memory and the number of CPU's.
and disk space....
I took the defaults for this screen...
After clicking finish, the installer will start. In my case, the RHEL installer started.
I forgot to capture screenshots of the installer, but as you might expect, you get prompted for the type of installation and other things.
Because I'm doing this in the background and wasn't reading closely enough, I accidentally chose RHEL's minimal installation -- which doesn't include X and a window manager. So when the installation finished and the OS booted, imagine my surprise when I got the old school terminal login prompt. :-)
So I did all of this over again and selected the installation that included X and a window manager.
Now I can install Portal on it and I should be all set.