EBC Exercise 06 Installing Ubuntu on VirtualBox

From eLinux.org
Revision as of 10:08, 19 August 2013 by Amesen (talk | contribs) (Added some info on USB issues for VBox 4.2.12 and Ubuntu 12.04. Also confirmed that the TI guide works well for upcoming Rose students.)
Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder

Here's some things I learned installing VirtualBox. It's rather out of date. Please update it if you have something to add.

TI's notes

Here is how TI suggests setting up VirtualBox.

2013-2014 Notes

The TI guide above worked for my Ubuntu 12.04 install/4.2.12 VirtualBox with a BeagleBone Black, so I would recommend it. Just be sure to install the Extension pack for USB 2.0 support. The guide mentions this, and the pack itself is easy to find via the site or google. Also be careful to NOT use a 3.0 port! For those of us with w510's, make sure to use the rear USB port for your BBB connection.

If you still receive any USB issues, there are a couple different tricks to try.

a) Create an empty filter in the VirtualBox -> Settings -> USB window.

b) Stop Windows from auto-mounting the BBB by using the cmd as an admin, and running the 'mountvol /n' command.

c) Again, make sure you're using a 2.0 or 1.0 port. VBox cannot interface with 3.0's correctly, and while you might still get an ssh connection, internet connection is a no-go.

My Notes

  • Download from here.
  • Install as usual. I made no changes on the Custom Setup page. I got the following message some 9 times. I clicked continue.

VBox - Install Warning.png

  • Start VirtualBox. Click New.

VBox - New.png

  • Run the wizard and give your machine a name.

VBox - Create New Virtual Machine.png

  • I used 1024M for the memory size. Make sure your host computer has at least 2 times the real RAM as the virtual machine.

VBox - Memory Size.png

  • Select Use existing hard disk and click VBox - Browse.png

VBox - Virtual Hard Disk.png

  • Click VBox - Add.pngand select your virtual drive.

VBox - Select disk image.png

  • Click Select, Next, Finish.
  • Click VBox - Start.png
  • Got to the Devices menu and select Install Guest Additions....

VBox - Additions.png

  • Select Applications:Accessoris:Terminal from the menu.

VBox - Terminal.png

  • cd to /media/cdrom0 and run the file for your machine.

VBox - run command 001.png

  • Reboot your virtual machine.
  • You can now resize your virtual machine screen.

Ian's notes

When setting up the VM if you are not using an existing hard disk I recommend going over the 8gb default size when creating a new disk while sticking the default format. I ran out of space when using the 8gb size, but it could have been due to mistakes on my part. When you run the VM for the first time, it will look for a media to boot off of, so if you downloaded the latest Ubuntu iso, mount that and begin your install. Congratulations, you now have an Ubuntu VM.

Unfortunately, you do not have a gui yet. This can be solved by following the steps here: http://dlc.sun.com.edgesuite.net/virtualbox/4.2.12/UserManual.pdf, under the section installing guest additions on Linux in the Ubuntu subsection. If it says it does not have permission to edit something, run the command with sudo in front of it.

thumb‎ Embedded Linux Class by Mark A. Yoder