| msoe.edu > Dr. Durant > Courses > CS384 > Ubuntu on VMWare Player |
This procedure will allow you to run Ubuntu on a virtual machine under Windows XP, eliminating the need to separately boot into Ubuntu, and allowing you to rapidly switch between Windows and Ubuntu.
Make sure you have at least 4-5 GB available on the D Drive.
Press CTRL-G to direct input into the VM (you’ll notice your keyboard now only works with the VM and the mouse is gone). When Ubuntu loads with the boot: menu, press enter to install it. Create a computer name of your choice (will be seen on MSOE network), create a username and password (recommend MSOE e-mail username / password). When choosing available screen resolutions, select them all. Ubuntu will figure out which to use.
When you reach for format disk prompt: make sure it looks something like this:
![[Partition Disks Dialog]](partitionDisks.png)
Make sure the disk size is less than 4-5 GB, and go ahead and Erase entire disk. It’s actually erasing your virtual disk (the Ubuntu.vmdk file), so no damage can be done. The virtual disk will not grow past the maximum, but instead you’ll just get errors in Ubuntu about lack of disk space. I found this file to be about 2.7 GB when installed and working.
Open Ubuntu.vmx again in you favorite text editor.
Change:
#ide1:0.fileName = "auto detect" #ide1:0.deviceType = "cdrom-raw" ide1:0.fileName = "ubuntu-5.10-install-i386.iso" ide1:0.deviceType = "cdrom-image"
to
ide1:0.fileName = "auto detect" ide1:0.deviceType = "cdrom-raw" #ide1:0.fileName = "ubuntu-5.10-install-i386.iso" #ide1:0.deviceType = "cdrom-image"
This will give you a regular CD ROM in Ubuntu (instead of the install CD). It is now safe to delete the Ubuntu ISO file.
Restart the VM if necessary (System->logout->shutdown)
Note that if you shut down Ubuntu from within Ubuntu, it also closes the VM. If you select ‘restart’ or ‘power down and exit’ from the VM’s menu, this is equivalent to holding down the power button on a physical machine… not recommended.
When you restart the VM you should have everything you need to start developing C++ applications using the Ubuntu VM. While dealing with the scrollbars/fullscreen modes can be a little annoying in Windows, it beats having to restart the entire computer every time you need to flip!
If the scrolling around becomes difficult switching between Windows/Ubuntu, you can uncomment out the last line of your vmx file (remove the # sign in “#gui.fullScreenAtPowerOn = "TRUE"). This will start Ubuntu in full screen mode. Ctrl-Alt will still restore the window to a smaller size).
Anytime I’ve attempted to adjust my Ubuntu screen resolution it acts up. I’ve only been able to use it on the highest (1920x1200) resolution, and the scrollbars remain when maximized (except for fullscreen mode).
It should also be noted that running the VM is separate from running Windows. They do not communicate with each other, so you cannot copy/paste or anything between them. They are also incapable of transferring any files directly (including viruses!).
It’s also pretty clear that the VM is a beta release. It has occasional problems with switching inputs between the OSs (giving mouse control to both or the wrong one). If you use the (Ctrl-Alt) to go back to windows and Ctl-G to direct input it works pretty well.
Info found online from:
VM program support/info: http://www.vmware.com/community/forum.jspa?forumID=123
This page was last updated on Friday, 09-Dec-2005 17:51:30 CST.