User:Chriss

From LinuxMCE
Revision as of 09:01, 3 August 2009 by Chriss (Talk | contribs) (LMCE 0810 virtualized on Ubuntu 9.04 and KVM)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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

<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

Creating_a_Media_Plug-in

http://forum.linuxmce.org/index.php?topic=3433.60

ideas

  • improve media tagging in webadmin
  • picture media player
  • media transcoding plugin