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

From eLinux.org
Jump to: navigation, search
m
(Pasted in the text (not html) from Joomla)
Line 1: Line 1:
== Step by step instructions ==
+
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.
  
Go to http://sourceforge.net/projects/vmmanager and get VMmanager, install and run it.
+
==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.
 +
#Go to [[http://sourceforge.net/projects/vmmanager]] 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:  512M  (make this no more than 1/2 your 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's a demo of installing:
 +
'''FIX ME'''
 +
Here's how to run VMmanager:
 +
'''FIX ME'''
 +
 +
#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 demo:
 +
'''FIX ME'''
 +
==Installing VMware Player==
 +
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).
 +
#Install it
 +
(
 +
Optional: You can also get the VMware Workstation, but they are out of keys right now.  Do this:
 +
#Rose Students: go to [[http://angel.rose-hulman.edu]]
 +
#Login
 +
#In the middle column click on '''ROSEportal'''.
 +
#Click on the '''VMware Global Education''' on the top right.
 +
)
 +
==Getting Ubuntu and installing it==
 +
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'''.
 +
#Click on the vm you created above (*.vmx). The VMware Player should start.
 +
#Click on the CD icon on the bottom right.
 +
#Select Disconnect.
 +
#Click on the CD icon again and select "Connect to disk image file (iso):"
 +
#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.
 +
#Select: Load Ubuntua
 +
Here is a demo: 
 +
'''FIX Me'''
  
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Creat a new virtual machine"</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;">Select Operating System:  Linux</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;">Below Select:  Ubuntu Linux</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;">Project name:  Ubuntu 9.10</div>
+
#Answer questions for your location.
<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>
+
#Select "Erase and use the entire disk"
<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>
+
#Answer the rest of the questions.
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Unselect "Allocate all disk space now"</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;">Keep Selected "Split into 2GB files"</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;">Tab Ethernet:  Ethernet 0, NAT, Ethernet 1 Bridged</div>
+
 
<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>
+
 
<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>
+
#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;">Restart 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;">Select "Modify an existing virtual machine"</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;">Select the machine you just saved.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Hard Drive</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Unlock"</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Enter 40960</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Tab Finish</div>
+
<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>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.vmware.com</div>
+
<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>
+
<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>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">The VMware Player should start.</div>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select Disconnect.</div>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Answer questions for your location.</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">Select "Erase and use the entire disk"</div>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">cd tmp/staging/i686-linux/usr/lib</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">mv libz.so libz.so.orig</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ln -s /usr/lib/libz.so .</div>
+
<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>
+
<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>
+
<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>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">www.vmware.com</div>
+
<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;">Instructions are at the bottom of this page:</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">https://help.ubuntu.com/community/VMware/Player</div>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">http://sourceforge.net/projects/vmmanager</div>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;"># In ubuntu run</div>
+
<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>
+
<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>
+
<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>
+
<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>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">nameserver 137.112.4.196</div>
+
<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>
+
<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>
+
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">##### minicom</div>
+
<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>
+
<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 20:22, 27 February 2010

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.

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 [[1]] and get VMmanager,
  2. install and run it.
  3. Select "Creat a new virtual machine"
  4. Select Operating System: Linux
  5. Below Select: Ubuntu Linux
  6. Project name: Ubuntu 9.10
  7. Tab RAM: 512M (make this no more than 1/2 your 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's a demo of installing: FIX ME Here's how to run VMmanager: FIX ME

  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
  8. Click "Ok". It should quickly say it is finished.

Here is a demo: FIX ME

Installing VMware Player

Now we can get the VMware player and install it.

  1. Get the VMware player (I got 2.5.3) at [[2]]. I got VMware Player for Window 32-bit and 64-bit (.exe).
  2. Install it

( Optional: You can also get the VMware Workstation, but they are out of keys right now. Do this:

  1. Rose Students: go to [[3]]
  2. Login
  3. In the middle column click on ROSEportal.
  4. Click on the VMware Global Education on the top right.

)

Getting Ubuntu and installing it

Next get the Ubunutu image and install it in the machine. I'm using 9.10.

  1. You can get the Ubuntu iso image at [[4]]; however it's faster for Rose students to get a copy locally from [[5]] or [[6]]. 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 Ubuntua

Here is a demo: FIX Me

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.