Posted on | April 27, 2013 | No Comments
Add Linux as a virtual machine to your Windows 7 laptop without VMWare
by Robin Rowe
HOLLYWOOD, CA (LinuxMovies.org) 2013/4/27 – CentOS is a RedHat-workalike that it very similar to RHEL without the logos. CentOS and Debian are the two of the most popular Linux distros around.
VirtualBox is an open source alternative to VMWare. I upgraded VMWare Player, which I’d been using a long time, because it I had problems installing CentOS 6.4 and the Internet recommended installing the latest version. However, with the new VMWare I couldn’t see how to install any OS that didn’t come in one of their pre-configured images. It would no longer run my VMWare Player image of Linux Mint Debian. A dialog box said the new version of VMWare has less capabilities than the old version. Apparently, the free ride is over. I’ve been meaning to try Oracle VirtualBox, so this prompted me to do so.
After downloading and installing VirtualBox, and downloading the minimal iso of CentOS, it was time to create a new virtual machine and boot the iso. I had to increase memory allocation from 256M to 2G and also bumped virtual disk space to 12G. The rest of the settings I left as stock.
After installing and rebooting into my new CentOS virtual machine, I found I had no networking and no desktop. To add networking, find the name of your ethernet interface using ip.
# ip a
My ethernet shows as being eth0:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Edit ONBOOT to be ‘yes’. Start network:
# service network start
Next update the distro:
# yum update
Next install the desktop and developer tools:
# yum -y groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts” “Graphical Administration Tools” “Internet Browser” “General Purpose Desktop” “Development Tools”
Next edit inttab to set run level to 5:
# vi /etc/inittab
# init 6
In VirtualBox preferences, set Display Max Guest Screen Size to 1024×720.
Right-click on the VirtualBox tools image on desktop and autorun to install.
Next install VLC so you can play movies.
# cd /etc/yum.repos.d/
# yum install wget
# wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo
# yum install vlc
Next turn off screensaver.