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

From eLinux.org
Jump to: navigation, search
m (Cleaning up html)
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Here's step by step instructions.
+
[[Category:ECE497]]
Go to http://sourceforge.net/projects/vmmanager and get VMmanager, install and run it.
+
{{YoderHead}}
  
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Creat a new virtual machine"</div>
+
'''This is rather out of date''', but still may be useful.  Please edit if you have thinks to add.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select Operating System:  Linux</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Below Select:  Ubuntu Linux</div>
+
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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Project name:  Ubuntu 9.10</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab RAM:   512M  (make this no more than 1/2 your RAM)</div>
+
== Configuring VMware Player ==
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hard Disk: 20480 (we want 40960, but it won't do that)</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Unselect "Allocate all disk space now"</div>
+
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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Keep Selected "Split into 2GB files"</div>
+
#Go to [http://sourceforge.net/projects/vmmanager here] and get '''VMmanager''',
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Ethernet:  Ethernet 0, NAT, Ethernet 1 Bridged</div>
+
#install and run it.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Adapters:<span style="white-space: pre;"> </span>Select USB, COM1 COM2 and Sound Adapter</div>
+
#Select "Create a new virtual machine"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Finish:  Click "Ok" pick a file name.  It should quickly say it is finished.</div>
+
#Select Operating System: Linux
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Restart VMmanager</div>
+
#Below Select: Ubuntu Linux
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Modify an existing virtual machine"</div>
+
#Project name: Ubuntu 9.10
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select the machine you just saved.</div>
+
#Tab RAM:   1024M  (Make this as big as possible, but no more than 1/2 your laptop's RAM)
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Hard Drive</div>
+
#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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Unlock"</div>
+
#Keep Selected "Split into 2GB files"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Enter 40960</div>
+
#Tab Ethernet: Ethernet 0, NAT, Ethernet 1 Bridged
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Finish</div>
+
#Tab Adapters: Select USB, COM1 COM2 and Sound Adapter
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click "Ok".  It should quickly say it is finished.</div>
+
#Tab Finish: Click "Ok" pick a file name. It should quickly say it is finished.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Get the VMware player (I got 2.5.3) at:</div>
+
#Quit VMmagager
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.vmware.com</div>
+
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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.vmware.com/download/player/download.html</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Install it</div>
+
# Restart VMmanager
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Get the Ubuntu iso image at http://www.ubuntu.com/</div>
+
# Select "Modify an existing virtual machine"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click on the vm you created above.  (*.vmx)</div>
+
# Select the machine you just saved.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The VMware Player should start.</div>
+
# Tab Hard Drive
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click on the CD icon on the bottom right.</div>
+
# Select "Unlock"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select Disconnect.</div>
+
# Enter ''40960''
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Click on the CD icon again and select "Connect to disk image file (iso):</div>
+
# 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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select the Ubuntu iso file you downloaded.</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">On the top left the widow select the menu VMware Player:Troubleshoot:Reset</div>
+
# Click "Ok". It should quickly say it is finished.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The VMware Player should find the iso image and start the Unbuntu install.</div>
+
Here is a video of [http://www.rose-hulman.edu/~yoder/eLinux/videos/Run_VMmanager2.swf running]] VMmanager the second time.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select:  Load Ubuntua</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hint 1:  You may have to hit ctrl-G to get the VM to listen to your keyboard.</div>
+
== Installing VMware Player ==
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hint 2:  It won't see you mouse at first, so use the keyboard.</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Hint 3:  Ctrl-Alt will release the mouse for outside the VM.</div>
+
Now we can get the VMware player and install it.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Answer questions for your location.</div>
+
# 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).
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Erase and use the entire disk"</div>
+
# Install it
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Answet the rest of the questions.</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select install and wait a while.  My install took about 1/2 and hour.</div>
+
== Getting Ubuntu and installing it ==
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Restart the system when asked to.  You may be asked about ejecting the CD-ROM.  I clicked No.</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Once Ubuntu is running you can right-click on the CD-ROM image and unmount it.  Then</div>
+
Note: At the time I'm editing these I can't get to either the lug site or the csse ftp site.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">go to the CD-ROM icon on the bottom right and disconnect from the iso image.</div>
+
--may
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The Update Manager may appear.  Go ahead and have it update everything.</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">It took 15 minutes on my system.</div>
+
==== Manually Installing with ISO ====
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### Installing beagleboard-demo-image on Ubuntu under VMware</div>
+
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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">I got and error the labgwaether had failed.  I check the log file given in the erro and it said</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">tmp/staging/i686-linux/usr/lib/libxml2.so.2 had an undefined symbol gzopen64.</div>
+
#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'''.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The path tells me it's something being compiled for the guest OS (not the target).  I googled</div>
+
#Click on the vm you created above (*.vmx). The VMware Player should start.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">for libxml2.so gzopen46 and found this help:</div>
+
#Click on the CD icon on the bottom right.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/151045</div>
+
#Select Disconnect.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The library /usr/lib/libz.so should contain gzopen64, but some versions don't.</div>
+
#Click on the CD icon again and select "Connect to disk image file (iso):"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The version at /usr/lib/libz.so had gzopen64, so I did</div>
+
#Select the Ubuntu '''iso''' file you downloaded.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">cd tmp/staging/i686-linux/usr/lib</div>
+
#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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">mv libz.so libz.so.orig</div>
+
#Select: Load Ubuntu
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ln -s /usr/lib/libz.so .</div>
+
[http://www.rose-hulman.edu/~yoder/eLinux/videos/Install_Ubuntu.swf Here]is a 3 minute demo.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">I had made this change earlier and it looks like some tool had undone it.</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### Other notes</div>
+
Hint 1: You may have to hit ctrl-G to get the VM to listen to your keyboard.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Here's how I get ubuntu running in a vmware window.  The instructions are:</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Here is a preloaded VMware image with Ubuntu 9.04</div>
+
Hint 2: It won't see your mouse at first, so use the keyboard.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://vmplanet.net/node/95</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">You can get the Ubuntu iso image at the link below, but you don't have to.</div>
+
Hint 3: Ctrl-Alt will release the mouse for outside the VM.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.ubuntu.com/</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Get the VMware player (I got 2.5.2) at:</div>
+
#Answer questions for your location.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.vmware.com</div>
+
#Select "Erase and use the entire disk"
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.vmware.com/download/player/download.html</div>
+
#Answer the rest of the questions.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Instructions are at the bottom of this page:</div>
+
#Select install and wait a while. My install took about half an hour.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">https://help.ubuntu.com/community/VMware/Player</div>
+
#Restart the system when asked to. You may be asked about ejecting the CD-ROM. I clicked '''No'''.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Here is some other useful information:</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">https://help.ubuntu.com/community/VMware/Workstation</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># The install has an 8G virtual drive.  We need a bigger drive so use:</div>
+
#Once Ubuntu is running you can right-click on the CD-ROM image and unmount it.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://sourceforge.net/projects/vmmanager</div>
+
#Go to the CD-ROM icon on the bottom right and disconnect from the iso image.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># In ubuntu run</div>
+
#The Update Manager may appear. Go ahead and have it update everything. It took 15 minutes on my system.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get install gparted</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">#######################</div>
+
==== Downloading VMWare Appliance ====
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The network didn't work until I switched to NAT.  Do this by selecting the</div>
+
{{caution}} If you have downloaded the Ubuntu disk and installed it, these directions do not apply to you.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">network icon on the bottom right of the VMware window.  Select NAT, disable</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">the network, then enable it.  It should connect.</div>
+
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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">### Notes on creating own VM appliance</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.ffnn.nl/pages/articles/linux/vmware-player-image-creation.php</div>
+
See [http://vmplanet.net/node/106 VMPlanet Ubuntu 9.10]
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">###### DNS</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># DNS doesn't alway work on its own.  Editing /etc/resvol.conf and adding</div>
+
== Installing VMWare Tools ==
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">nameserver 137.112.4.196</div>
+
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.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># Seems to make it work</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">###### Disk Mount</div>
+
*If you are running the VMWare Appliance, this may not be necessary.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># Here's how to get to the files from outside vmware</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://www.petri.co.il/virtual_mount_vmware_virtual_disk_without_vmware.htm</div>
+
The Ubuntu wiki has by far the best directions on how to do this
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### minicom</div>
+
[https://help.ubuntu.com/community/VMware/Tools Ubuntu VMWare Tools]
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get install minicom</div>
+
 
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">In minicom hit ctrl-A then O to configure.  Turn off Hardware flow control.</div>
+
{{YoderFoot}}
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Set to /dev/ttyS0</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### Eclipse</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.eclispe.org</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get install openjdk-6.jre-headless</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">###### Setting Time</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># The date was a couple of days off.  It this happens try:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">sudo apt-get insall ntpdate</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ntpd</div>
+
<p>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.</p>
+
<p> </p>
+
<p>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.</p>
+
<ol>
+
<li>Go to <a href="http://sourceforge.net/projects/vmmanager" target="_blank" title="http://sourceforge.net/projects/vmmanager">http://sourceforge.net/projects/vmmanager</a> and get <strong>VMmanager</strong>, </li>
+
<li>install and run it. </li>
+
<li>Select "Creat a new virtual machine"</li>
+
<li>Select Operating System:  Linux</li>
+
<li>Below Select:  Ubuntu Linux</li>
+
<li>Project name:  Ubuntu 9.10</li>
+
<li>Tab RAM:   512M  (make this no more than 1/2 your RAM)</li>
+
<li>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.</li>
+
<li>Keep Selected "Split into 2GB files"</li>
+
<li>Tab Ethernet:  Ethernet 0, NAT, Ethernet 1 Bridged</li>
+
<li>Tab Adapters:<span style="white-space: pre;"> </span>Select USB, COM1 COM2 and Sound Adapter</li>
+
<li>Tab Finish:  Click "Ok" pick a file name.  It should quickly say it is finished.</li>
+
<li>Quit VMmagager</li>
+
</ol>
+
<div>Here's a demo of installing:</div>
+
<div>{swf}BeagleBoard/install_vmmanager|724|659{/swf}</div>
+
<div>Here's how to run VMmanager:</div>
+
<div>{swf}BeagleBoard/run_vmmanager|481|329{/swf}</div>
+
<ol>
+
<li>Restart <strong>VMmanager</strong></li>
+
<li>Select "Modify an existing virtual machine"</li>
+
<li>Select the machine you just saved.</li>
+
<li>Tab Hard Drive</li>
+
<li>Select "Unlock"</li>
+
<li>Enter 40960</li>
+
<li>Tab Finish</li>
+
<li>Click "Ok".  It should quickly say it is finished.</li>
+
</ol>
+
<div>Here is a demo:</div>
+
<div>{swf}BeagleBoard/run_vmmanager2|481|329{/swf}</div>
+
<p>Now we can get the VMware player and install it.</p>
+
<ol>
+
<li>Get the <strong>VMware </strong>player (I got 2.5.3) at <a href="http://www.vmware.com/download/player/download.html" target="_blank" title="http://www.vmware.com/download/player/download.html">http://www.vmware.com/download/player/download.html</a>.  I got <strong>VMware Player for Window 32-bit and 64-bit (.exe).</strong></li>
+
<li>Install it</li>
+
</ol>
+
<p><em>(</em></p>
+
<p><em>Optional: You can also get the VMware Workstation, but they are out of keys right now.  Do this:</em></p>
+
<ol>
+
<li><em>Go to http://angel.rose-hulman.edu</em></li>
+
<li><em>Login</em></li>
+
<li><em>In the middle column click on <strong><span style="color: #ff00ff;">ROSE</span>porta</strong>l.</em></li>
+
<li><em>Click on the <strong>VMware Global Education</strong> on the top right.</em></li>
+
</ol>
+
<p><em>)</em></p>
+
<p>Next get the Ubunutu image and install it in the machine.  I'm using 9.10.</p>
+
<ol> </ol> <ol>
+
<li>You can get the Ubuntu iso image at <a href="http://www.ubuntu.com/" target="_blank" title="http://www.ubuntu.com/">http://www.ubuntu.com/</a>;jhowever it's faster to get a copy locally from <a href="http://lug.rose-hulman.edu/mirror/ubuntu-releases/">http://lug.rose-hulman.edu/mirror/ubuntu-releases/</a> or <a href="ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/">ftp://ftp.csse.rose-hulman.edu/ubuntu-releases/</a>.  If you aren't sure which <strong>iso </strong>to get, look for <strong>ubuntu-9.10-desktop-i386.iso</strong>.</li>
+
<li><a href="http://www.ubuntu.com/" target="_blank" title="http://www.ubuntu.com/"></a>Click on the vm you created above (*.vmx). The VMware Player should start.</li>
+
<li>Click on the CD icon on the bottom right.</li>
+
<li>Select Disconnect.</li>
+
<li>Click on the CD icon again and select "<strong>Connect to disk image file (iso)</strong>:"</li>
+
<li>Select the Ubuntu <strong>iso </strong>file you downloaded.</li>
+
<li>On the top left the widow select the menu <strong>VMware Player:Troubleshoot:Reset. <span style="font-weight: normal;">The VMware Player should find the iso image and start the Unbuntu install.</span></strong></li>
+
<li><strong><span style="font-weight: normal;">Select: </span><span style="font-weight: normal;">Load Ubuntua</span></strong></li>
+
</ol>
+
<div>Here is a demo:  {swf}BeagleBoard/install_ubuntu|818|664{/swf}</div>
+
<div><span style="color: #000000; font-family: Arial, helvetica, sans-serif; line-height: normal; font-size: 11px;"><br /></span></div>
+
<p>Hint 1:  You may have to hit ctrl-G to get the VM to listen to your keyboard.</p>
+
<p>Hint 2:  It won't see your mouse at first, so use the keyboard.</p>
+
<p>Hint 3:  Ctrl-Alt will release the mouse for outside the VM.</p>
+
<ol>
+
<li>Answer questions for your location.</li>
+
<li>Select "Erase and use the entire disk"</li>
+
<li>Answer the rest of the questions.</li>
+
<li>Select install and wait a while.  My install took about half an hour.</li>
+
<li>Restart the system when asked to.  You may be asked about ejecting the CD-ROM.  I clicked <strong>No</strong>.</li>
+
</ol> <ol>
+
<li>Once Ubuntu is running you can right-click on the CD-ROM image and unmount it. </li>
+
<li>Go to the CD-ROM icon on the bottom right and disconnect from the <strong>iso </strong>image.</li>
+
<li>The Update Manager may appear.  Go ahead and have it update everything. It took 15 minutes on my system.</li>
+
</ol>
+

Revision as of 16: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