Saturday, March 7, 2009

How to install Ubuntu Netbook Remix (UNR v1.0.1) in VirtualBox

Read This First

Read through this entire post before attempting to use it as reference for your trial as I went through many steps that can be avoided as they do not work. Some things included in this guide:
  • Download the Ubuntu Netbook Remix .iso
  • Create a VirtualBox Guest Install for UNR deployment
  • Boot said VirtualBox machine from the mounted UNR v1.0.1 image and complete the automated installation process (which fails on reboot)
  • Install Ubuntu Hardy Herring 8.10 on modified Virtual machine
  • Add UNR packages to Hardy Herring Install and troubleshoot process

This is as much a tale of my attempt to install Ubuntu Netbook Remix on my Windows XP Hosted VirtualBox installation as much as a guide one how to do it. Note that, once installed, UNR doesn't run well in VirtualBox as suggested in some of the documentation. The cause, as far as I can tell, is caused by how VirtualBox handles OpenGL. This should only be used to test the software at this point, and not implemented as a usable interface.

About Ubuntu Netbook Remix

Ubuntu Netbook Remix is an Ubuntu variant/adaptation designed to work effectively and efficiently with netbook computers. Detailed information and standard installation instructions are available here:
https://wiki.ubuntu.com/UNR

Assumptions/Prerequisites:

VirtualBox is installed <-- tested with 2.1.4 on a Windows XP host
updates
Ubuntu 8.10 is installed in as a guest machine in VirtualBox

Step by Step recount of my attempts, failures, and results


  1. Download image (to mount or burn) from here:
    http://oem-images.canonical.com/unr/unr-1.0.1.iso
  2. Create a new Virtual Machine in Virtual Box (Linux OS, Ubuntu Type). The usual settings should be fine...I used the following settings:
    • 512 mb ram
    • 128mb video memory with hardware acceleration
    • Dynamic sized hard disk
  3. Mount the .iso (or boot from CD if you burned it) and start the Virtual Machine.

    The installation seems to be pretty much automated. There were no options to repartition the drive or preserve any existing data
  4. This step took a little longer than i expected...it was the same splash screen as is usually displayed when ubuntu is loaded, so i may have just expected it to go faster.
  5. After the first restart of the installation process, I encountered an error message:
    FATAL:  No bootable medium found!  System halted

    The following are steps I took to troubleshoot the installation:
    1. restart
    2. check VirtualBox settings, decrease video memory to 32mb with no hardware access
    3. read some information about UNR and VirtualBox from the following:
      https://wiki.ubuntu.com/MeetingLogs/openweekintrepid/NetbookRemix

    None of my troubleshooting procedures corrected the problem, but based on the reading, I decided to try installing 8.10 or 8.04 and using the instructions from
    https://wiki.ubuntu.com/UNR
    to try to install ubuntu 8.xx and perform the necessary alterations to that install so that the final result is basically the UNR release

Second Attempt -- by altering a Ubuntu 8.10 (Hardy Herring) Installation

  1. I began by attempting to install a copy of 8.10 (beta) i had laying around but it was 64 bit edition...and that doesn't work for my VirtualBox/XP host. I then began downloading the x86, non beta, version. For the record, a torrent search lists quite a few heavily seeded torrents which should get you the image faster than you can get it elsewhere. I think it took me 10 mins.
  2. I then mounted it and began installation on the previous machine.
    note: I left the standard 2GB hd size...I was warned that this may not be large enough, but though I'd give Ubuntu a chance to impress me with it's error handling capabilities. After all...it was just a warning, right?
  3. I then encountered an error -- failure to install due to insufficient hard drive space -- they warned me. Ubuntu did fail gracefully into the live session screen, only wasting about 5 minutes of my time.


  4. I shut down and modified the hard disk to start with 4 GB of space and expand if necessary -- had to delete the existing HD and create a new one. I still made it dynamic, bu started it with 8GB to be safe.
  5. Next, I installed Ubuntu easily using default options -- once installed, I agreed to recommended updates (250 mb worth). Some screenshots of the install follow for you screenshot lovers.


  6. After the installation had completed, I did the system updates (System >> Administration >> Update Manager) and installed guest additions...explained in a previous tutorial, here:
    http://chapmanit.blogspot.com/2009/02/how-to-access-shared-files-from-ubuntu.html

  7. Modifying the Ubuntu Hardy Herring (8.10) Installation by adding the Ubuntu Netbook Remix Packages

    note: For the next few lines, instructions came directly from the following web page:
    https://wiki.ubuntu.com/UNR#line-108
  8. As the instructions indicated, I did the following:
    go to system >> administration >> software sources
    • ensure under the Ubuntu tab that Community Maintained... box is checked
    • go to the third party tab and click add and enter the following:
      deb http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
    • click 'add source' and then 'close'
  9. ERROR: I got an error stating no public key was available to validate a signature here.

    After a google search for the error statement, a forum provided the following command line fix with some explanation that was a little beyond me, but here's how to avoid it:
    in a terminal, type the following >>
    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3F2A5EE4B796B6FE
  10. To resume, open a terminal and type the following:
    sudo apt-get update && sudo apt-get install go-home-applet human-netbook-theme maximus netbook-launcher window-picker-applet and hit enter
  11. (This section wasn't necessary for me, as maximus and netbook-launcher were already check to run when I went to the Gnome Session Manager) The remaining instructions say to chck the gnome-session-manager and to add maximus and the netbook-launcher, which aren't supposed to auto-start. Install them / set them to auto-start. Restart!

  12. It started up correctly...and operated as it was supposed to (forgiving the ridiculously slow performance). There are further instrctions (brief) saying to...
    setup the gnome-panel to mimic the standard UNR set-up. The applet order is as follows:
    go-home-applet | window-picker-applet | notifcation-area-applet | mixer-applet | clock

    ...but i'm not sure how necessary this is.

    Here's Ubuntu 8.10 -- Hardy Herring -- with the UNR packages added, running successfully.

Conclusion


If I would have listened to the recommendations my sources gave and installed onto an existing Intrepid (8.10) install, the whole process would have been easier and much faster. Still, it wasn't hard. That said, even with hardware acceleration enabled (or disabled), it runs unacceptably slow on my system. I saw warnings about Intrepid and about VirtualBox, but my guess is this has more to do with VirtualBox and its ability to render OpenGL graphics. It is running and looks nice...I look forward to trying this on a real laptop!

No comments: