Difference between revisions of "Installing LinuxMCE on Virtual Machine via KVM"

From LinuxMCE
Jump to: navigation, search
m
m
Line 51: Line 51:
 
   sudo apt-get upgrade
 
   sudo apt-get upgrade
  
 +
Step 3) Add some management tools:
  
Step 3) As I am not that handy on the commandline, install the Kubuntu Desktop:
+
sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb
 +
sudo dpkg i web webmin_1.480_all.deb
  
  sudo apt-get install kubuntu-desktop 
+
Step 3) Download the latest kernel from The Linux Kernel Archives [[http://www.kernel.org/]] and unpack it.
 
+
(you can take some coffee now)
+
 
+
Step 4) Download the latest kernel from The Linux Kernel Archives [[http://www.kernel.org/]] and unpack it.
+
  
 
  sudo /usr/src/
 
  sudo /usr/src/
Line 64: Line 62:
 
  tar -jxvf linux-2.6.30.1.tar.bz2
 
  tar -jxvf linux-2.6.30.1.tar.bz2
  
Step 5) Build the new kernel as explained in "How to assign devices with VT-d in KVM" [[http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM]]
+
Step 4) Build the new kernel as explained in "How to assign devices with VT-d in KVM" [[http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM]]
  
 
   
 
   

Revision as of 12:46, 12 July 2009

KVM: To badly go where (almost) no man has gone before

In this overview I will try to follow the installation path to get LCME 8.10 into a virtual machine which uses PCI(-E) devices from the host. This can only be done with specific hardware/firmware which uses VT-d, a virtualization PCI Passthrough technique embedded in the bios.

So I will state my machine details first:

  • Motherboard: ASUS P5E VM DO with bios 10.1
  • CPU: Q6600
  • 6 Gb DDR-2 Memory
  • 1 onboard GbE Nic
  • 1 PCI-E GbE Nic
  • 1 Hauppauge PVR-150 (for the moment)


han@obelix:~$ lspci                                                             
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)    
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)                 
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)                        
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)                  
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)              
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)            
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)            
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)            
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 02)
01:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
02:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06)
03:01.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
03:02.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 70)

Step 1) Install Ubuntu 9.04 server AMD 64 (should be easy enough if you are able to get LMCE up and running :-) )

Step 2) Make the system current:

 sudo apt-get update
 sudo apt-get upgrade

Step 3) Add some management tools:

sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb
sudo dpkg i web webmin_1.480_all.deb

Step 3) Download the latest kernel from The Linux Kernel Archives [[1]] and unpack it.

sudo /usr/src/
sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.1.tar.bz2
tar -jxvf linux-2.6.30.1.tar.bz2

Step 4) Build the new kernel as explained in "How to assign devices with VT-d in KVM" [[2]]