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

From eLinux.org
Jump to: navigation, search
(Pasted in the text (not html) from Joomla)
(30 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}}
 +
 
 +
'''This is rather out of date''', but still may be useful.  Please edit if you have thinks to add.
 +
 
 +
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.
 +
 
 +
== Configuring VMware Player ==
  
==Configuring VMware Player==
 
 
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.
 
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.
#Go to [[http://sourceforge.net/projects/vmmanager]] and get '''VMmanager''',
+
#Go to [http://sourceforge.net/projects/vmmanager here] and get '''VMmanager''',
 
#install and run it.
 
#install and run it.
#Select "Creat a new virtual machine"
+
#Select "Create a new virtual machine"
 
#Select Operating System:  Linux
 
#Select Operating System:  Linux
 
#Below Select:  Ubuntu Linux
 
#Below Select:  Ubuntu Linux
 
#Project name:  Ubuntu 9.10
 
#Project name:  Ubuntu 9.10
#Tab RAM:  512M (make this no more than 1/2 your RAM)
+
#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.
 
#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"
 
#Keep Selected "Split into 2GB files"
Line 16: Line 22:
 
#Tab Finish:  Click "Ok" pick a file name.  It should quickly say it is finished.
 
#Tab Finish:  Click "Ok" pick a file name.  It should quickly say it is finished.
 
#Quit VMmagager
 
#Quit VMmagager
Here's a demo of installing:
+
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.
'''FIX ME'''
 
Here's how to run VMmanager:
 
'''FIX ME'''
 
 
   
 
   
#Restart VMmanager
+
# Restart VMmanager
#Select "Modify an existing virtual machine"
+
# Select "Modify an existing virtual machine"
#Select the machine you just saved.
+
# Select the machine you just saved.
#Tab Hard Drive
+
# Tab Hard Drive
#Select "Unlock"
+
# Select "Unlock"
#Enter ''40960''
+
# Enter ''40960''
#Tab Finish
+
# Tab Finish, if it says "the size of the hard disk is too large" and indicates the maximum hard disk you can have is 8 GB, go to 'vmmanager.ini' file and change the paramter 'maxHDsize' defined within it. You may change this parameter within the range from 100 MB up to 972800 MB.
#Click "Ok".  It should quickly say it is finished.
+
 
Here is a demo:
+
# Click "Ok".  It should quickly say it is finished.
'''FIX ME'''
+
Here is a video of [http://www.rose-hulman.edu/~yoder/eLinux/videos/Run_VMmanager2.swf running]] VMmanager the second time.
==Installing VMware Player==
+
 
 +
== Installing VMware Player ==
 +
 
 
Now we can get the VMware player and install it.
 
Now we can get the VMware player and install it.
#Get the '''VMware''' player (I got 2.5.3) at [[http://www.vmware.com/download/player/download.html]]. I got VMware Player for Window 32-bit and 64-bit (.exe).
+
# 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).
#Install it
+
# Install it
(
+
 
Optional: You can also get the VMware Workstation, but they are out of keys right now. Do this:
+
== Getting Ubuntu and installing it ==
#Rose Students: go to [[http://angel.rose-hulman.edu]]
+
 
#Login
+
NoteAt the time I'm editing these I can't get to either the lug site or the csse ftp site.
#In the middle column click on '''ROSEportal'''.
+
--may
#Click on the '''VMware Global Education''' on the top right.
+
 
)
+
==== Manually Installing with ISO ====
==Getting Ubuntu and installing it==
+
Next get the Ubunutu image and install it in the machine.  I'm using 10.4 LTS since it's required by some of the TI tools.
Next get the Ubunutu image and install it in the machine.  I'm using 9.10.
+
 
#You can get the Ubuntu iso image at [[http://www.ubuntu.com/]]; however it's faster for Rose students to get a copy locally from [[http://lug.rose-hulman.edu/mirror/ubuntu-releases/]] or [[ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/]].  If you aren't sure which iso to get, look for '''ubuntu-9.10-desktop-i386.iso'''.
+
#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'''.
 
#Click on the vm you created above (*.vmx). The VMware Player should start.
 
#Click on the vm you created above (*.vmx). The VMware Player should start.
 
#Click on the CD icon on the bottom right.
 
#Click on the CD icon on the bottom right.
Line 51: Line 56:
 
#Select the Ubuntu '''iso''' file you downloaded.
 
#Select the Ubuntu '''iso''' file you downloaded.
 
#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.
 
#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.
#Select: Load Ubuntua
+
#Select: Load Ubuntu
Here is a demo
+
[http://www.rose-hulman.edu/~yoder/eLinux/videos/Install_Ubuntu.swf Here]is a 3 minute demo.
'''FIX Me'''
 
  
 
Hint 1:  You may have to hit ctrl-G to get the VM to listen to your keyboard.
 
Hint 1:  You may have to hit ctrl-G to get the VM to listen to your keyboard.
 +
 
Hint 2:  It won't see your mouse at first, so use the keyboard.
 
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.
 
Hint 3:  Ctrl-Alt will release the mouse for outside the VM.
 +
 
#Answer questions for your location.
 
#Answer questions for your location.
 
#Select "Erase and use the entire disk"
 
#Select "Erase and use the entire disk"
Line 68: Line 75:
 
#Go to the CD-ROM icon on the bottom right and disconnect from the iso image.
 
#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.
 
#The Update Manager may appear.  Go ahead and have it update everything. It took 15 minutes on my system.
 +
 +
==== Downloading VMWare Appliance ====
 +
{{caution}} If you have downloaded the Ubuntu disk and installed it, these directions do not apply to you.
 +
 +
VMPlanet provides premade virtual hard disks that can simply be imported into vmware player.  This will simply save the install, but probably will use more internet bandwidth then downloading and installing the iso.
 +
 +
See [http://vmplanet.net/node/106 VMPlanet Ubuntu 9.10]
 +
 +
== Installing VMWare Tools ==
 +
Now that you have your Ubuntu image loaded and updated, it is important to install VMWare Tools.  This will allow for much more natural mouse synchronization, speed improvements, and copy/paste support between host and guest OS's.
 +
 +
*If you are running the VMWare Appliance, this may not be necessary.
 +
 +
The Ubuntu wiki has by far the best directions on how to do this
 +
[https://help.ubuntu.com/community/VMware/Tools Ubuntu VMWare Tools]
 +
 +
{{YoderFoot}}

Revision as of 09:06, 16 July 2012

thumb‎ Embedded Linux Class by Mark A. Yoder


This is rather out of date, but still may be useful. Please edit if you have thinks to add.

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.

Configuring VMware Player

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.

  1. Go to here and get VMmanager,
  2. install and run it.
  3. Select "Create a new virtual machine"
  4. Select Operating System: Linux
  5. Below Select: Ubuntu Linux
  6. Project name: Ubuntu 9.10
  7. Tab RAM: 1024M (Make this as big as possible, but no more than 1/2 your laptop's RAM)
  8. 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.
  9. Keep Selected "Split into 2GB files"
  10. Tab Ethernet: Ethernet 0, NAT, Ethernet 1 Bridged
  11. Tab Adapters: Select USB, COM1 COM2 and Sound Adapter
  12. Tab Finish: Click "Ok" pick a file name. It should quickly say it is finished.
  13. Quit VMmagager

Here are videos for installing and running VMmanager.

  1. Restart VMmanager
  2. Select "Modify an existing virtual machine"
  3. Select the machine you just saved.
  4. Tab Hard Drive
  5. Select "Unlock"
  6. Enter 40960
  7. Tab Finish, if it says "the size of the hard disk is too large" and indicates the maximum hard disk you can have is 8 GB, go to 'vmmanager.ini' file and change the paramter 'maxHDsize' defined within it. You may change this parameter within the range from 100 MB up to 972800 MB.
  1. Click "Ok". It should quickly say it is finished.

Here is a video of running] VMmanager the second time.

Installing VMware Player

Now we can get the VMware player and install it.

  1. Get the VMware player. I got version 2.5.3 for Windows 32-bit and 64-bit (.exe).
  2. Install it

Getting Ubuntu and installing it

Note: At the time I'm editing these I can't get to either the lug site or the csse ftp site. --may

Manually Installing with ISO

Next get the Ubunutu image and install it in the machine. I'm using 10.4 LTS since it's required by some of the TI tools.

  1. You can get the Ubuntu iso image here; however it's faster for Rose students to get a copy locally from lug or csse. If you aren't sure which iso to get, look for ubuntu-9.10-desktop-i386.iso.
  2. Click on the vm you created above (*.vmx). The VMware Player should start.
  3. Click on the CD icon on the bottom right.
  4. Select Disconnect.
  5. Click on the CD icon again and select "Connect to disk image file (iso):"
  6. Select the Ubuntu iso file you downloaded.
  7. 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.
  8. Select: Load Ubuntu

Hereis a 3 minute demo.

Hint 1: You may have to hit ctrl-G to get the VM to listen to your keyboard.

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.

  1. Answer questions for your location.
  2. Select "Erase and use the entire disk"
  3. Answer the rest of the questions.
  4. Select install and wait a while. My install took about half an hour.
  5. Restart the system when asked to. You may be asked about ejecting the CD-ROM. I clicked No.


  1. Once Ubuntu is running you can right-click on the CD-ROM image and unmount it.
  2. Go to the CD-ROM icon on the bottom right and disconnect from the iso image.
  3. The Update Manager may appear. Go ahead and have it update everything. It took 15 minutes on my system.

Downloading VMWare Appliance

Caution! Caution: If you have downloaded the Ubuntu disk and installed it, these directions do not apply to you.

VMPlanet provides premade virtual hard disks that can simply be imported into vmware player. This will simply save the install, but probably will use more internet bandwidth then downloading and installing the iso.

See VMPlanet Ubuntu 9.10

Installing VMWare Tools

Now that you have your Ubuntu image loaded and updated, it is important to install VMWare Tools. This will allow for much more natural mouse synchronization, speed improvements, and copy/paste support between host and guest OS's.

  • If you are running the VMWare Appliance, this may not be necessary.

The Ubuntu wiki has by far the best directions on how to do this Ubuntu VMWare Tools




thumb‎ Embedded Linux Class by Mark A. Yoder