Difference between revisions of "Installing LinuxMCE on Virtual Machine via VirtualBox"
(Added a section about installing kubuntu 10.04 as a guest os, also updated the other instructions for the newest version of Virtual Box) |
|||
Line 28: | Line 28: | ||
== Download and Install VirtualBox == | == Download and Install VirtualBox == | ||
+ | (updated for Virtual Box 4.0.2) | ||
# First grab the latest VirtualBox from here [http://www.virtualbox.org/wiki/Downloads VirtualBox download page] '''Right click and save as''' | # First grab the latest VirtualBox from here [http://www.virtualbox.org/wiki/Downloads VirtualBox download page] '''Right click and save as''' | ||
# Install VirtualBox on your machine | # Install VirtualBox on your machine | ||
Line 38: | Line 39: | ||
#Click Next | #Click Next | ||
#Name it whatever you want and choose Linux 2.6 | #Name it whatever you want and choose Linux 2.6 | ||
+ | #Click Next | ||
#Give your machine at least 1024 | #Give your machine at least 1024 | ||
− | #Click | + | #Click Next |
+ | #Make sure Boot Hard Disk is checked, and choose Create new hard disk and Click Next | ||
#Click Next | #Click Next | ||
#Check Fixed-size and Click Next | #Check Fixed-size and Click Next | ||
− | #Allocate at least 50GB of space | + | #Allocate at least 50GB of space and Click Next |
− | #Click Finish to Create your HD. This | + | #Click Finish to Create your HD. This may take a while. Go grab a Beer! (20GB took 6 min) |
#Click Next to use your new virtual drive | #Click Next to use your new virtual drive | ||
#Click Finish | #Click Finish | ||
==Setup your Virtual Machine== | ==Setup your Virtual Machine== | ||
− | #Select your VM and Click on General on the right | + | #Select your VM and Click on General on the right or settings up above. |
− | #Give as much memory as you can for video. I did all 128MB | + | #Click System |
− | # | + | ##Check CD/DVD-ROM in the boot order. |
− | ## | + | #Click Display |
+ | ##Give as much memory as you can for video. I did all 128MB. | ||
+ | ###Note: Do NOT check Enable 3D Acceleration before you have installed the OS as it can cause the OS to not boot. | ||
#Click Audio | #Click Audio | ||
##Check Enable Audio and choose ALSA Driver | ##Check Enable Audio and choose ALSA Driver | ||
− | #Click Network | + | #Click Network (still testing how these settings work on the network) |
##Changed Adapter type to the Intel NIC | ##Changed Adapter type to the Intel NIC | ||
##Change NAT to Internal Network | ##Change NAT to Internal Network | ||
##Under Network Name type, vboxnet0 | ##Under Network Name type, vboxnet0 | ||
#Click Ok | #Click Ok | ||
+ | |||
+ | ==Installing Kubuntu 10.04== | ||
+ | #In the power settings for the host OS disable the screen saver and set it to not go to sleep. | ||
+ | #Insert your Kubuntu 10.04 install disk or download an 32-bit .iso image of Kubuntu 10.04 | ||
+ | #Start the virtual machine and Click next at the First Run Wizard | ||
+ | #Choose the drive that your disk is in under Media Source | ||
+ | or | ||
+ | #Click the folder icon to the left of the media source drop-down menu and browse to the .iso image you downloaded earlier | ||
+ | #Click Finish and let the Install disk start and click Install Kubuntu. | ||
+ | #When the installer comes up DO NOT click update this installer. | ||
+ | #Go through the installer choosing the options that best suit you. | ||
+ | #I had trouble with the installer finishing so i skipped the files at the end, it gives you the option to skip around 80% (im going to do more testing to figure out why) | ||
+ | #Reboot | ||
+ | #When kubuntu is loading and the screen turns teal you have to hit esc once and then let it go until the login comes up. | ||
+ | #Bring up a terminal and enter: | ||
+ | ##sudo apt-get update | ||
+ | ##sudo apt-get dist-upgrade <--takes a while, go eat something. | ||
+ | ##sudo apt-get install dkms | ||
+ | ##sudo apt-get install build-essential | ||
+ | ##sudo apt-get remove plymouth-theme-kubuntu-logo | ||
+ | #Reboot | ||
+ | #Under the Devices menu at the top click Install Guest Additions | ||
+ | #Open a terminal window and enter: | ||
+ | ##cd /media/VBOXADDITIONS_4.0.2_69518/ (the numbers may differ for you, just check the name of the cd that was mounted) | ||
+ | ##sudo ./VBoxLinuxAdditions.run | ||
+ | #Open the system settings window, click on the advanced tab then on desktop search and uncheck Enable Nepomuk Semantic Desktop. (this will make it less slugish at boot) | ||
+ | #Now is a good time to take a snapshot by going to the Machine menu at the top and clicking Take Snapshot, as you should have a fully functioning OS. | ||
==Installing LinuxMCE== | ==Installing LinuxMCE== | ||
#Start your VBox and boot the DVD | #Start your VBox and boot the DVD |
Revision as of 20:43, 8 February 2011
This article is a stub and requires expansion |
THIS IS STILL WORK IN PROGRESS. WHAT YOU SEE HERE WILL GET YOU STARTED BUT WILL NOT COMPLETE IT JUST YET, PLEASE HELP FIX THIS PAGE WITH YOUR OWN INPUT
Contents
Advantages of running LMCE in a Virtual Machine
Virtualization is a good way to take LinuxMCE for a test drive before spending any money on new hardware, or running a virtual core to serve multiple media directors without dedicating a new machine. USB and serial devices are accessible to a virtual machine so USB-UIRT and other popular devices should be usable (note pci cards cannot be use in a virtual machine as of yet). Another advantage is the ability to save working LinuxMCE setups (snapshots) which you can revert to in case you break your LMCE install.
Virtualisation is also useful from the point of view of running the MDs themselves; for instance, you may have a "normal" desktop in a given room that you don't want to dedicate to LMCE (and you don't want to buy extra hardware). A VirtualBox MD allows you to run an MD in a window on the desktop machine.
Instructions for Core Installation
Different types of install
DVD Install
LinuxMCE 0810 DVD (2010/03/16) installs relatively hassle free in a virtualbox. Some erratic behavior with the wizard and media director in the virtual machine but all features seem to working to spec. Confirmed boot of virtual diskless MDs and real diskless MDs.
CD Install
LinuxMCE 0810 cd install seems to have some problems with AV Wizard.
Download and Install VirtualBox
(updated for Virtual Box 4.0.2)
- First grab the latest VirtualBox from here VirtualBox download page Right click and save as
- Install VirtualBox on your machine
- If you are a Linux user make sure that
- your username is added to vboxusers (installed should do that automatically)
- Log off and back in.
Create your new VBox
- Start VirtualBox.
- Click New
- Click Next
- Name it whatever you want and choose Linux 2.6
- Click Next
- Give your machine at least 1024
- Click Next
- Make sure Boot Hard Disk is checked, and choose Create new hard disk and Click Next
- Click Next
- Check Fixed-size and Click Next
- Allocate at least 50GB of space and Click Next
- Click Finish to Create your HD. This may take a while. Go grab a Beer! (20GB took 6 min)
- Click Next to use your new virtual drive
- Click Finish
Setup your Virtual Machine
- Select your VM and Click on General on the right or settings up above.
- Click System
- Check CD/DVD-ROM in the boot order.
- Click Display
- Give as much memory as you can for video. I did all 128MB.
- Note: Do NOT check Enable 3D Acceleration before you have installed the OS as it can cause the OS to not boot.
- Give as much memory as you can for video. I did all 128MB.
- Click Audio
- Check Enable Audio and choose ALSA Driver
- Click Network (still testing how these settings work on the network)
- Changed Adapter type to the Intel NIC
- Change NAT to Internal Network
- Under Network Name type, vboxnet0
- Click Ok
Installing Kubuntu 10.04
- In the power settings for the host OS disable the screen saver and set it to not go to sleep.
- Insert your Kubuntu 10.04 install disk or download an 32-bit .iso image of Kubuntu 10.04
- Start the virtual machine and Click next at the First Run Wizard
- Choose the drive that your disk is in under Media Source
or
- Click the folder icon to the left of the media source drop-down menu and browse to the .iso image you downloaded earlier
- Click Finish and let the Install disk start and click Install Kubuntu.
- When the installer comes up DO NOT click update this installer.
- Go through the installer choosing the options that best suit you.
- I had trouble with the installer finishing so i skipped the files at the end, it gives you the option to skip around 80% (im going to do more testing to figure out why)
- Reboot
- When kubuntu is loading and the screen turns teal you have to hit esc once and then let it go until the login comes up.
- Bring up a terminal and enter:
- sudo apt-get update
- sudo apt-get dist-upgrade <--takes a while, go eat something.
- sudo apt-get install dkms
- sudo apt-get install build-essential
- sudo apt-get remove plymouth-theme-kubuntu-logo
- Reboot
- Under the Devices menu at the top click Install Guest Additions
- Open a terminal window and enter:
- cd /media/VBOXADDITIONS_4.0.2_69518/ (the numbers may differ for you, just check the name of the cd that was mounted)
- sudo ./VBoxLinuxAdditions.run
- Open the system settings window, click on the advanced tab then on desktop search and uncheck Enable Nepomuk Semantic Desktop. (this will make it less slugish at boot)
- Now is a good time to take a snapshot by going to the Machine menu at the top and clicking Take Snapshot, as you should have a fully functioning OS.
Installing LinuxMCE
- Start your VBox and boot the DVD
- Follow the instructions. Sit back and have another beer :)
Configure LinuxMCE
- Step 1. Choose, vga and 800x600'. (as of this writing, they were the only modes i could get to work).
- Step 2. Static images (I only tested that since i wasn't having luck with other resolutions. Please report if you get others working).
- Step 3. Click Ok.
- Step 5. Analog Stereo.
- Step 6. Adjust the volume if you want. Click ok.
- Step 9. Click I Agree (Yes i can count but it skips steps 7 & 8 due to it not being available)
- Now we wait for Sara!
- Once she appears, click Next
- Tell her you don't want to use a remote
- Enter in your name and click next
- Click Okay
- Click Next
- Click Next (unless it didn't select the right country)
- Enter your zip and hit next. If it doesn't find it, just hit skip and hit next.
- Select your rooms and click next.
- It now detected itself as a file server. Click on it to use it and select where it is.
- Continue without setting up light,alarm and voip setup.
- Choose MythTV
- Click DOne
- Click on Media Player
- Select where you are and choose to not control my TV
- No receiver
- Click Next
- Click Done
- Click Done
- Click Next
- Start using the system. That was easy wasn't it? :) :) You might have to wait until it's finished downloading all the crap it needs to download.
Instructions for MD Installation
There is a simple howto for a VirtualBox MD installation here.
Troubleshooting UI2
If you are getting "failed to initialize OpenGl" when choosing UI2 for the orbiter, try the following It seems that the libglx.so.195.36.15 somehow does not give OpenGl in virtualbox a quick work around:
Replace /usr/lib/xorg/modules/extensions/libglx.so with the one you can download here [1]
At this point you will only have Software rendering which is very slow and laggy, to get better performance do the following
rm /usr/lib/libGL.so.1 ln -s /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.1
After this reboot the machine and it should be fairly smooth
Special thanks to commsbyte for figuring this out
Example Scenario's
Various scenario's and example situations. I will work out this situation on the wiki, I will update the below situations with links.
- Host Linux/Windows -> Linuxmce Core in VM
- Host Linux/Windows -> Linuxmce Core and MD in VM
- Host Linux/Windows -> Linuxmce Core in VM, serving network
- Host Linux/Windows -> Linuxmce MD in VM connected to Core