Difference between revisions of "User:Chriss"
From LinuxMCE
(→move pluto_media.MediaType_AttributeType) |
m (→LMCE 0810 virtualized on Ubuntu 9.04 and KVM) |
||
Line 27: | Line 27: | ||
== LMCE 0810 virtualized on Ubuntu 9.04 and KVM == | == LMCE 0810 virtualized on Ubuntu 9.04 and KVM == | ||
− | |||
− | |||
* inspired by http://forum.linuxmce.org/index.php?topic=8233.0 | * inspired by http://forum.linuxmce.org/index.php?topic=8233.0 | ||
Line 37: | Line 35: | ||
** download kubuntu 8.10 i386 desktop .iso | ** download kubuntu 8.10 i386 desktop .iso | ||
** create an image file (<tt>qemu-img create -f qcow lmce0810.img 25G</tt>) or use an empty and unmounted partition (that's what I'm doing in the following) | ** create an image file (<tt>qemu-img create -f qcow lmce0810.img 25G</tt>) or use an empty and unmounted partition (that's what I'm doing in the following) | ||
− | ** create a file (lmce0810.xml) with the | + | ** create a file (lmce0810.xml) with the definition of your KVM domain: |
− | <pre></pre> | + | <pre> |
+ | <domain type='kvm'> | ||
+ | <name>lmce0810</name> | ||
+ | <memory>2097152</memory> | ||
+ | <currentMemory>2097152</currentMemory> | ||
+ | <vcpu>1</vcpu> | ||
+ | <os> | ||
+ | <type arch='x86_64' machine='pc'>hvm</type> | ||
+ | <boot dev='cdrom'/> | ||
+ | </os> | ||
+ | <features> | ||
+ | <acpi/> | ||
+ | </features> | ||
+ | <clock offset='utc'/> | ||
+ | <on_poweroff>destroy</on_poweroff> | ||
+ | <on_reboot>restart</on_reboot> | ||
+ | <on_crash>destroy</on_crash> | ||
+ | <devices> | ||
+ | <emulator>/usr/bin/kvm</emulator> | ||
+ | <disk type='block' device='disk'> | ||
+ | <source dev='/dev/sda5'/> | ||
+ | <target dev='hda' bus='ide'/> | ||
+ | </disk> | ||
+ | <disk type='file' device='cdrom'> | ||
+ | <source file='/home/chris/kubuntu-8.10-desktop-i386.iso' /> | ||
+ | <target dev='hdc' bus='ide' /> | ||
+ | <readonly /> | ||
+ | </disk> | ||
+ | <interface type='bridge'> | ||
+ | <source bridge='brlmceext' /> | ||
+ | </interface> | ||
+ | <input type='mouse' bus='ps2'/> | ||
+ | <graphics type='vnc' port='5500' listen='192.168.177.24'/> | ||
+ | </devices> | ||
+ | </domain> | ||
+ | </pre> | ||
** on the shell: <tt>virsh --connect qemu:///system</tt> | ** on the shell: <tt>virsh --connect qemu:///system</tt> | ||
** in virsh: <tt>define lmce0810.xml</tt>, <tt>start lmce0810</tt> | ** in virsh: <tt>define lmce0810.xml</tt>, <tt>start lmce0810</tt> | ||
** connect via VNC and do the installation | ** connect via VNC and do the installation | ||
+ | * modify the definition of the KVM domain to not use the kubuntu installation CD and to have two ethernet connections: | ||
+ | <pre> | ||
+ | <domain type='kvm'> | ||
+ | <name>lmce0810</name> | ||
+ | <memory>2097152</memory> | ||
+ | <currentMemory>2097152</currentMemory> | ||
+ | <vcpu>1</vcpu> | ||
+ | <os> | ||
+ | <type arch='x86_64' machine='pc'>hvm</type> | ||
+ | <boot dev='hd'/> | ||
+ | </os> | ||
+ | <features> | ||
+ | <acpi/> | ||
+ | </features> | ||
+ | <clock offset='utc'/> | ||
+ | <on_poweroff>destroy</on_poweroff> | ||
+ | <on_reboot>restart</on_reboot> | ||
+ | <on_crash>destroy</on_crash> | ||
+ | <devices> | ||
+ | <emulator>/usr/bin/kvm</emulator> | ||
+ | <disk type='block' device='disk'> | ||
+ | <source dev='/dev/sda5'/> | ||
+ | <target dev='hda' bus='ide'/> | ||
+ | </disk> | ||
+ | <interface type='bridge'> | ||
+ | <source bridge='brlmceext' /> | ||
+ | </interface> | ||
+ | <interface type='bridge'> | ||
+ | <source bridge='brlmceint' /> | ||
+ | </interface> | ||
+ | <input type='mouse' bus='ps2'/> | ||
+ | <graphics type='vnc' port='5500' listen='192.168.177.24'/> | ||
+ | </devices> | ||
+ | </domain></pre> | ||
+ | * in virsh: <tt>undefine lmce0810</tt>, <tt>define lmce0810.xml</tt>, <tt>start lmce0810</tt> | ||
+ | * connect again via VNC and follow the LMCE0810-Alpha2 installation steps | ||
+ | |||
+ | ===Conclusion=== | ||
+ | After all this seemed to work. After finishing the LMCE installation, both AVWizard and the configuration wizard started and I was able to configure the system. One thing I noted was that not all videos from the wizard were played but this might also be a problem with my VNC setup. However, finally the system setup was done and the system came up showing orbiter (UI1). | ||
+ | |||
+ | Next steps will be to | ||
+ | * map physical devices into the domain (tuner cards, usb devices, serial ports) | ||
+ | * setup FreeNAS and connect it to LMCE's internal network in another KVM domain | ||
+ | * try to attach MDs and stuff to the internal network and see if that works | ||
+ | |||
+ | I will keep documenting my efforts here. | ||
== Links to keep in mind == | == Links to keep in mind == |
Latest revision as of 10:01, 3 August 2009
Contents
Setup
Core
MDs
Notes to myself
Don't care about the following stuff and beware to use anything if you don't know exactley what you are doing...
proper image support for UpdateMedia
http://svn.linuxmce.org/trac.cgi/ticket/217
Updates to pluto_media.MediaType_AttributeType
- Added by pos on 2009-07-31:
INSERT INTO `MediaType_AttributeType` (`EK_MediaType`, `FK_AttributeType`, `Identifier`, `CombineAsOne`, `MediaSortOption`) VALUES (7, 16, 0, 0, NULL), (7, 29, 0, 0, NULL), (7, 37, 0, 0, NULL), (7, 47, 0, 0, NULL), (7, 48, 0, 0, NULL);
move pluto_media.MediaType_AttributeType
ALTER TABLE `pluto_media`.MediaType_AttributeType RENAME `pluto_main`.`MediaType_AttributeType`; ALTER TABLE `pluto_main`.`MediaType_AttributeType` CHANGE `EK_MediaType` `FK_MediaType` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `pluto_main`.`MediaType_AttributeType` CHANGE `FK_AttributeType` `EK_AttributeType` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `pluto_main`.`MediaType_AttributeType` DROP INDEX `FK_AttributeType` , ADD INDEX `EK_AttributeType` ( `EK_AttributeType` ); CREATE VIEW `pluto_media`.`MediaType_AttributeType` AS SELECT `FK_MediaType` AS 'EK_MediaType', `EK_AttributeType` AS 'FK_AttributeType', `Identifier`, `CombineAsOne`, `MediaSortOption` FROM `pluto_main`.`MediaType_AttributeType`;
LMCE 0810 virtualized on Ubuntu 9.04 and KVM
- inspired by http://forum.linuxmce.org/index.php?topic=8233.0
- installed Ubuntu 9.04 alternate amd64, basic text system
- downloaded kernel 2.6.30.4 from kernel.org, build according to https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
- install kvm and stuff: https://help.ubuntu.com/community/KVM/Installation
- install kubuntu 8.10
- download kubuntu 8.10 i386 desktop .iso
- create an image file (qemu-img create -f qcow lmce0810.img 25G) or use an empty and unmounted partition (that's what I'm doing in the following)
- create a file (lmce0810.xml) with the definition of your KVM domain:
<domain type='kvm'> <name>lmce0810</name> <memory>2097152</memory> <currentMemory>2097152</currentMemory> <vcpu>1</vcpu> <os> <type arch='x86_64' machine='pc'>hvm</type> <boot dev='cdrom'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <disk type='block' device='disk'> <source dev='/dev/sda5'/> <target dev='hda' bus='ide'/> </disk> <disk type='file' device='cdrom'> <source file='/home/chris/kubuntu-8.10-desktop-i386.iso' /> <target dev='hdc' bus='ide' /> <readonly /> </disk> <interface type='bridge'> <source bridge='brlmceext' /> </interface> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5500' listen='192.168.177.24'/> </devices> </domain>
- on the shell: virsh --connect qemu:///system
- in virsh: define lmce0810.xml, start lmce0810
- connect via VNC and do the installation
- modify the definition of the KVM domain to not use the kubuntu installation CD and to have two ethernet connections:
<domain type='kvm'> <name>lmce0810</name> <memory>2097152</memory> <currentMemory>2097152</currentMemory> <vcpu>1</vcpu> <os> <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <disk type='block' device='disk'> <source dev='/dev/sda5'/> <target dev='hda' bus='ide'/> </disk> <interface type='bridge'> <source bridge='brlmceext' /> </interface> <interface type='bridge'> <source bridge='brlmceint' /> </interface> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5500' listen='192.168.177.24'/> </devices> </domain>
- in virsh: undefine lmce0810, define lmce0810.xml, start lmce0810
- connect again via VNC and follow the LMCE0810-Alpha2 installation steps
Conclusion
After all this seemed to work. After finishing the LMCE installation, both AVWizard and the configuration wizard started and I was able to configure the system. One thing I noted was that not all videos from the wizard were played but this might also be a problem with my VNC setup. However, finally the system setup was done and the system came up showing orbiter (UI1).
Next steps will be to
- map physical devices into the domain (tuner cards, usb devices, serial ports)
- setup FreeNAS and connect it to LMCE's internal network in another KVM domain
- try to attach MDs and stuff to the internal network and see if that works
I will keep documenting my efforts here.
Links to keep in mind
http://forum.linuxmce.org/index.php?topic=3433.60
ideas
- improve media tagging in webadmin
- picture media player
- media transcoding plugin