Hallo liebe Xen-Freunde,
vorgestern habe ich angefangen meinen VDR mit XEN etwas aufzubessern.
Mein Vorgehen:
- löschen der Videopartition und ersetzen mit einer LVM-Konfiguration
- Kopie der ct'VDR-5 Systempartition in ein lv des LVM
- Ubuntu Edgy Server auf die Systempartition installiert, zusammen mit den nötige Paketen um xen aus den Quellen bauen zu können
- Herunterladen der Sources von Xen 3.0.3
- Anpassen der Kernel an meine Bedürfnisse ( für den VDR-VServer habe ich einen eigenen Kernel gebaut, da die anderen kein PCI und auch keine Module benötigen)
- alles kompilieren und installieren lassen
- anpassen von Grub an den neuen Kernel (mit pcihide für die DVB-Karten)
*Daumengedrück*
- anlegen einer Konfigurationsdatei für den VServer (ebenfalls mit den Optionen für PCI)
- Starten des VServer
*Gefreut*
So glatt lief es bei mir auch nicht.
Wichtig für Ubuntu Edgy und Xen:
Den Symlink von /bin/sh nach /bin/dash ändern in /bin/bash
Nach ein paar Stunden der Aufnahme von 10 Kanälen hat sich der Server aufgehängt, weil er nicht mehr auf die Festplatte zugreifen konnte. Nach einem Neustart erhiehlt ich viele DMA Fehler in Zusammenhang mit /dev/hda, was aber nach kurzem Ausschalten des Rechners wieder weg war. Ob dies nun an Xen, meinem Kernel oder der Hardware lag ist mir bis jetzt noch schleierhaft.
Da es keine Konsole gibt, meckert der ct'VDR etwas herum, aber es funktioniert.
Der Server steht im Keller und hat keinen TV angeschlossen. Ich kann daher keine Aussagen über OSD oder ähnliches machen.
Viele Grüße
Schlumpf
lspci in dom0:
00:00.0 Host bridge: Intel Corporation 82875P/E7210 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82875P Processor to AGP Controller (rev 02)
00:03.0 PCI bridge: Intel Corporation 82875P/E7210 Processor to PCI to CSA Bridge (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
02:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller
03:00.0 Network controller: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card (rev 02)
03:01.0 Network controller: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card (rev 02)
03:05.0 Network controller: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card (rev 02)
03:06.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
03:07.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
03:08.0 Ethernet controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) integrated LAN Controller (rev 02)
Alles anzeigen
lspci in domVDR:
0000:03:00.0 Network controller: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card (rev 02)
0000:03:01.0 Network controller: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card (rev 02)
0000:03:05.0 Network controller: Techsan Electronics Co Ltd B2C2 FlexCopII DVB chip / Technisat SkyStar2 DVB card (rev 02)
0000:03:06.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
/boot/grub/menu.lst ( nur das wichtigste):
title Xen 3.0 / XenLinux 2.6
root (hd0,0)
kernel /xen.gz dom0_mem=256000
module /vmlinuz-2.6.16-xen0 root=/dev/hda2 ro console=tty0 pciback.hide=(03:00.0)(03:01.0)(03:05.0)(03:06.0)
# -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using 'xm create'.
# You use a separate script for each domain you want to create, or
# you can set the parameters for the domain on the xm command line.
#============================================================================
#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/vmlinuz-2.6-xenVDR"
# Optional ramdisk.
#ramdisk = "/boot/initrd.gz"
# The domain build function. Default is 'linux'.
#builder='linux'
# Initial memory allocation (in megabytes) for the new domain.
memory = 256
# A name for your domain. All domains must have different names.
name = "rigel"
# List of which CPUS this domain is allowed to use, default Xen picks
#cpus = "" # leave to Xen to pick
#cpus = "0" # all vcpus run on CPU0
#cpus = "0-3,5,^1" # run on cpus 0,2,3,5
# Number of Virtual CPUS to use, default is 1
#vcpus = 1
pci=['03:00.0','03:01.0','03:05.0','03:06.0']
#----------------------------------------------------------------------------
# Define network interfaces.
# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
vif = [ 'mac=AC:DE:48:00:02:01' ]
#vif = [ '' ]
#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.
#disk = []
disk = ['phy:vg0/rigel,hda1,w',
'phy:vg0/rigel-swap,hda2,w',
'phy:vg0/rigel-video,hda3,w' ]
#----------------------------------------------------------------------------
# Define to which TPM instance the user domain should communicate.
# The vtpm entry is of the form 'instance=INSTANCE,backend=DOM'
# where INSTANCE indicates the instance number of the TPM the VM
# should be talking to and DOM provides the domain where the backend
# is located.
# Note that no two virtual machines should try to connect to the same
# TPM instance. The handling of all TPM instances does require
# some management effort in so far that VM configration files (and thus
# a VM) should be associated with a TPM instance throughout the lifetime
# of the VM / VM configuration file. The instance number must be
# greater or equal to 1.
#vtpm = [ 'instance=1,backend=0' ]
#----------------------------------------------------------------------------
# Set the kernel command line for the new domain.
# You only need to define the IP parameters and hostname if the domain's
# IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
# You can use 'extra' to set the runlevel and custom environment
# variables used by custom rc scripts (e.g. VMID=, usr= ).
# Set if you want dhcp to allocate the IP address.
dhcp="dhcp"
# Set netmask.
#netmask="255.255.255.0"
# Set default gateway.
#gateway="10.0.0.254"
# Set the hostname.
#hostname= "vm%d" % vmid
hostname="rigel.sg9"
# Set root device.
root = "/dev/hda1 ro"
# Root device for nfs.
#root = "/dev/nfs"
# The nfs server.
#nfs_server = '169.254.1.0'
# Root directory on the nfs server.
#nfs_root = '/full/path/to/root/directory'
# Sets runlevel 4.
extra = "4"
Alles anzeigen