Difference between revisions of "EBC Exercise 06 Installing Ubuntu on VirtualBox"

From eLinux.org
Jump to: navigation, search
m (Notes on proxy: Added wget exports)
(Notes on proxy: Added dconf-editor to set ignore-hosts)
Line 8: Line 8:
  
 
== Notes on proxy ==
 
== Notes on proxy ==
I had to add
+
On the host I had to add
  
 
  Acquire::http::proxy "http://10.8.0.1:8080/";
 
  Acquire::http::proxy "http://10.8.0.1:8080/";
  
to '''/etc/apt/apt.conf''' to get the '''apt-get''' to work.  The following makes wget work.
+
to '''/etc/apt/apt.conf''' to get the '''apt-get''' to work.  Then
  
  export http_proxy="http://10.8.0.1:8080"
+
  host$ '''sudo apt-get install dconf-tools'''
  export https_proxy="https://10.8.0.1:8080"
+
host$ '''dconf-editor'''
 +
 
 +
Under '''system:proxy''' set the host to 10.8.0.1 and port to 8080 for ftp, http, https and socks.  Then click on proxy and change '''ignore-hosts''' to
 +
 
 +
  ['localhost', '127.0.0.0/8', '192.168.7.0/8', '::1']
 +
 
 +
This will allow it to access the bone without using the proxy.
  
 
== 2013-2014 Notes ==
 
== 2013-2014 Notes ==

Revision as of 03:30, 24 July 2015

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.

Notes on proxy

On the host I had to add

Acquire::http::proxy "http://10.8.0.1:8080/";

to /etc/apt/apt.conf to get the apt-get to work. Then

host$ sudo apt-get install dconf-tools
host$ dconf-editor

Under system:proxy set the host to 10.8.0.1 and port to 8080 for ftp, http, https and socks. Then click on proxy and change ignore-hosts to

['localhost', '127.0.0.0/8', '192.168.7.0/8', '::1']

This will allow it to access the bone without using the proxy.

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