Difference between revisions of "EBC Exercise 07 Installing Ubuntu in VMware"

From eLinux.org
Jump to: navigation, search
m (Getting Ubuntu and installing it)
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
It's pretty much agreed that if you are going to develop for embedded Linux, you should do it in Linux.  The problem is many have some form of Windows OS installed.  Here are step by step instructions on how to install a virtual machine running Unbuntu Linux on your Windows box.
+
[[Category:ECE497]]
 +
{{YoderHead}}
  
== Configuring VMware Player ==
+
It's pretty much agreed that if you are going to develop for embedded Linux, you should do it in Linux.  The problem is many have some form of Windows OS installed.  Here are step by step instructions on how to install a virtual machine running Ubuntu Linux on your Windows box.
  
First we'll set up the virtual hard drive, then we'll get the virtual machine software.  The hard drive is set up using some third party software.
+
== Installing and Configuring VMware Workstation ==
#Go to [http://sourceforge.net/projects/vmmanager here] and get '''VMmanager''',
 
#install and run it.
 
#Select "Creat a new virtual machine"
 
#Select Operating System:  Linux
 
#Below Select:  Ubuntu Linux
 
#Project name:  Ubuntu 9.10
 
#Tab RAM:  1024M  (Make this as big as possible, but no more than 1/2 your laptop's RAM)
 
#Tab Hard Disk: Unselect "Allocate all disk space now"  We'll make the hard drive bigger in a moment.  This is working around a small bug that requires all the disk space to be present when you create the machine, even if you don't allocate it all at the beginning.
 
#Keep Selected "Split into 2GB files"
 
#Tab Ethernet:  Ethernet 0, NAT, Ethernet 1 Bridged
 
#Tab Adapters: Select USB, COM1 COM2 and Sound Adapter
 
#Tab Finish:  Click "Ok" pick a file name.  It should quickly say it is finished.
 
#Quit VMmagager
 
Here are videos for [http://www.rose-hulman.edu/~yoder/eLinux/videos/Install_VMmanager.swf installing] and [http://www.rose-hulman.edu/~yoder/eLinux/videos/Run_VMmanager.swf running] VMmanager.
 
 
# Restart VMmanager
 
# Select "Modify an existing virtual machine"
 
# Select the machine you just saved.
 
# Tab Hard Drive
 
# Select "Unlock"
 
# Enter ''40960''
 
# Tab Finish
 
# Click "Ok".  It should quickly say it is finished.
 
Here is a video of [http://www.rose-hulman.edu/~yoder/eLinux/videos/Run_VMmanager2.swf running]] VMmanager the second time.
 
  
== Installing VMware Player ==
+
=== Downloading VMware Workstation ===
 +
If you are a Rose student you have access to a free (well, already paid for) copy of VMware Workstation.  Here's where to find it:
 +
# Go to [http://angel.rose-hulman.edu/default.asp Angel]
 +
# Click on [http://angel.rose-hulman.edu/ROSEtools/ROSEportal/default.asp RosePortal] near the bottom of the middle column.
 +
# Click on the link below [http://e5.onthehub.com/WebStore/ProductsByMajorVersionList.aspx?ws=67366416-107e-de11-9b99-0030487d8897&vsro=8&JSEnabled=1 VMware Global Education and Research Program]
 +
# Select [http://e5.onthehub.com/WebStore/OfferingsOfMajorVersionList.aspx?ws=67366416-107e-de11-9b99-0030487d8897&vsro=8&pmv=f5bac88e-ccf5-e111-bd05-f04da23e67f6&cmi_mnuMain=4751da70-dd3c-df11-b4ab-0030487d8897&cmi_mnuMain_child=fff4cc7b-8f1f-de11-9c12-0030485a8df0 VMWare Workstation 9]
 +
# Download it. This will take several steps.  In the end you will download a file that's some 436M.
  
Now we can get the VMware player and install it.
+
=== Downloading Ubuntu ===
# Get the [http://www.vmware.com/download/player/download.html VMware player]. I got version 2.5.3 for Windows 32-bit and 64-bit (.exe).
+
You are welcome to run whatever flavor of Linux you want, however I suggest running the current ''long-term support'' version of Ubuntu.  The current LTS is 12.04.  If you are at Rose you can quickly get it from the CSSE site.
# Install it
+
# Got to the [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/ csse site]
 +
# Click [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/12.04.2 12.04.2].
 +
# If you are running 32-bit hardware download [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/12.04.2/ubuntu-12.04.2-desktop-i386.iso ubuntu-12.04.2-desktop-i386.iso].  If you are running 64-bit download [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/12.04.2/ubuntu-12.04.2-desktop-amd64.iso ubuntu-12.04.2-desktop-amd64.iso].
  
== Getting Ubuntu and installing it ==
+
=== Running VMware and Installing Ubuntu ===
  
Next get the Ubunutu image and install it in the machine.  I'm using 9.10.
+
# Start VMware Workstation
#You can get the Ubuntu iso image [http://www.ubuntu.com/ here]; however it's faster for Rose students to get a copy locally from [http://lug.rose-hulman.edu/mirror/ubuntu-releases/ lug] or [ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/ csse].  If you aren't sure which iso to get, look for '''ubuntu-9.10-desktop-i386.iso'''.
+
# Select "Create a new virtual machine"
#Click on the vm you created above (*.vmx). The VMware Player should start.
+
# Select "Typical"
#Click on the CD icon on the bottom right.
+
# Select "Installer disc image file (iso)" and browse to the Ubuntu iso file. It should detect the correct OS
#Select Disconnect.
+
# Fill in names
#Click on the CD icon again and select "Connect to disk image file (iso):"
+
# Fill in VM name
#Select the Ubuntu '''iso''' file you downloaded.
+
# Use default disk size (20G) and be sure "Split virtual disk into multiple files"
#On the top left the window select the menu '''VMware Player:Troubleshoot:Reset'''. The VMware Player should find the iso image and start the Unbuntu install.
+
# Click "Finish"
#Select: Load Ubuntu
 
[http://www.rose-hulman.edu/~yoder/eLinux/videos/Install_Ubuntu.swf Here]is a 3 minute demo.
 
  
Hint 1:  You may have to hit ctrl-G to get the VM to listen to your keyboard.
+
Ubuntu will install and in a few minutes you'll have a running version.
Hint 2:  It won't see your mouse at first, so use the keyboard.
 
Hint 3:  Ctrl-Alt will release the mouse for outside the VM.
 
#Answer questions for your location.
 
#Select "Erase and use the entire disk"
 
#Answer the rest of the questions.
 
#Select install and wait a while.  My install took about half an hour.
 
#Restart the system when asked to.  You may be asked about ejecting the CD-ROM.  I clicked '''No'''.
 
 
 
 
 
#Once Ubuntu is running you can right-click on the CD-ROM image and unmount it.
 
#Go to the CD-ROM icon on the bottom right and disconnect from the iso image.
 
#The Update Manager may appear.  Go ahead and have it update everything. It took 15 minutes on my system.
 
 
 
[[Category:ECE597]]
 
--[[User:Yoder|Prof. Yoder]] 19:30, 3 March 2010 (UTC)
 

Revision as of 15:58, 27 May 2013

thumb‎ Embedded Linux Class by Mark A. Yoder


It's pretty much agreed that if you are going to develop for embedded Linux, you should do it in Linux. The problem is many have some form of Windows OS installed. Here are step by step instructions on how to install a virtual machine running Ubuntu Linux on your Windows box.

Installing and Configuring VMware Workstation

Downloading VMware Workstation

If you are a Rose student you have access to a free (well, already paid for) copy of VMware Workstation. Here's where to find it:

  1. Go to Angel
  2. Click on RosePortal near the bottom of the middle column.
  3. Click on the link below VMware Global Education and Research Program
  4. Select VMWare Workstation 9
  5. Download it. This will take several steps. In the end you will download a file that's some 436M.

Downloading Ubuntu

You are welcome to run whatever flavor of Linux you want, however I suggest running the current long-term support version of Ubuntu. The current LTS is 12.04. If you are at Rose you can quickly get it from the CSSE site.

  1. Got to the csse site
  2. Click 12.04.2.
  3. If you are running 32-bit hardware download ubuntu-12.04.2-desktop-i386.iso. If you are running 64-bit download ubuntu-12.04.2-desktop-amd64.iso.

Running VMware and Installing Ubuntu

  1. Start VMware Workstation
  2. Select "Create a new virtual machine"
  3. Select "Typical"
  4. Select "Installer disc image file (iso)" and browse to the Ubuntu iso file. It should detect the correct OS
  5. Fill in names
  6. Fill in VM name
  7. Use default disk size (20G) and be sure "Split virtual disk into multiple files"
  8. Click "Finish"

Ubuntu will install and in a few minutes you'll have a running version.