Xen 3.3 initramfs DomU - Mount Error
03.04.2009
23:49:30 Uhr4721 Aufrufe
8 Antworten
23:49:30 Uhr
8 Antworten
Noch nicht bewertet
Erstellt wurde das Image mit dem Parameter = xen-create-image --hostname=xen1.example.com --size=4Gb --swap=256Mb --ip=87.106.XXX.XXX --memory=256Mb --arch=amd64 --role=udev --force --ide
start der DomU mit "xm create /etc/xen1.example.com ist erfolgreich somit gehe ich in die console mit "xm console xen1.example.com"
Die DomU hat jedoch einen Fehler beim Mouten des Images ( Module werden erfolgreich geladen! )
dies ist die Ausgabe meiner Xen Console:
kann mir jemand bei diesem Problem helfen ?
Config Files sehen so aus:
Die Xen Config:
zu sehen ist, dass wir route-networking verwenden da wir sonst in ein (anderer Thread von uns) bekanntes Mac Spoofing fallen da unser Provider Managed Switche verwendet die es nicht gestatten bridged-networking, wie bsp. Hetzner zu verwenden!
so nun kommen wir wieder auf die Frage zurück, wie wir den von uns oben genannten "Mount" Fehler beheben können ?!
Mit freundlichen Grüßen
NySoft Team
Administration
Ralph Schneider
Die DomU hat jedoch einen Fehler beim Mouten des Images ( Module werden erfolgreich geladen! )
01.
[ 1.176993] md: raid4 personality registered for level 4 02.
[ 1.203637] md: raid10 personality registered for level 10 03.
Done. 04.
Begin: Running /scripts/init-premount ... 05.
Done. 06.
Begin: Mounting root file system... ... 07.
Begin: Running /scripts/local-top ... 08.
Done. 09.
Begin: Waiting for root file system... ... 10.
Done. 11.
Begin: Running /scripts/local-premount ... 12.
Begin: Waiting for resume device... ... 13.
Done. 14.
Done. 15.
[ 7.504849] kjournald starting. Commit interval 5 seconds 16.
[ 7.504862] EXT3-fs: mounted filesystem with ordered data mode. 17.
Begin: Running /scripts/local-bottom ... 18.
Done. 19.
Done. 20.
Begin: Running /scripts/init-bottom ... 21.
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory 22.
Done. 23.
mount: Mounting /sys on /root/sys failed: No such file or directory 24.
mount: Mounting /proc on /root/proc failed: No such file or directory 25.
Target filesystem doesn't have /sbin/init 26.
27.
28.
BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu12) Built-in shell (ash) 29.
Enter 'help' for a list of built-in commands.dies ist die Ausgabe meiner Xen Console:
kann mir jemand bei diesem Problem helfen ?
Config Files sehen so aus:
01.
02.
# Configuration file for the Xen instance xen1.example.com, created 03.
# by xen-tools 3.8 on Fri Apr 3 23:40:12 2009. 04.
# 05.
06.
# 07.
# Kernel + memory size 08.
# 09.
kernel = '/boot/vmlinuz-2.6.24-23-xen' 10.
ramdisk = '/boot/initrd.img-2.6.24-23-xen' 11.
memory = '256' 12.
13.
# 14.
# Disk device(s). 15.
# 16.
root = '/dev/hda2 ro' 17.
disk = [ 18.
'file:/home/xen/domains/xen1.example.com/swap.img,hda1,w', 19.
'file:/home/xen/domains/xen1.example.com/disk.img,hda2,w', 20.
] 21.
22.
23.
# 24.
# Hostname 25.
# 26.
name = 'xen1.example.com' 27.
28.
# 29.
# Networking 30.
# 31.
vif = [ 'ip=87.106.XXX.XXX,mac=00:16:3E:16:02:D1' ] 32.
33.
# 34.
# Behaviour 35.
# 36.
on_poweroff = 'destroy' 37.
on_reboot = 'restart' 38.
on_crash = 'restart' 39.
40.
extra = '2 console=xvc0'Die Xen Config:
01.
# -*- sh -*- 02.
03.
# 04.
# Xend configuration file. 05.
# 06.
07.
# This example configuration is appropriate for an installation that 08.
# utilizes a bridged network configuration. Access to xend via http 09.
# is disabled. 10.
11.
# Commented out entries show the default for that entry, unless otherwise 12.
# specified. 13.
14.
#(logfile /var/log/xen/xend.log) 15.
#(loglevel DEBUG) 16.
17.
18.
# The Xen-API server configuration. 19.
# 20.
# This value configures the ports, interfaces, and access controls for the 21.
# Xen-API server. Each entry in the list starts with either unix, a port 22.
# number, or an address:port pair. If this is "unix", then a UDP socket is 23.
# opened, and this entry applies to that. If it is a port, then Xend will 24.
# listen on all interfaces on that TCP port, and if it is an address:port 25.
# pair, then Xend will listen on the specified port, using the interface with 26.
# the specified address. 27.
# 28.
# The subsequent string configures the user-based access control for the 29.
# listener in question. This can be one of "none" or "pam", indicating either 30.
# that users should be allowed access unconditionally, or that the local 31.
# Pluggable Authentication Modules configuration should be used. If this 32.
# string is missing or empty, then "pam" is used. 33.
# 34.
# The final string gives the host-based access control for that listener. If 35.
# this is missing or empty, then all connections are accepted. Otherwise, 36.
# this should be a space-separated sequence of regular expressions; any host 37.
# with a fully-qualified domain name or an IP address that matches one of 38.
# these regular expressions will be accepted. 39.
# 40.
# Example: listen on TCP port 9363 on all interfaces, accepting connections 41.
# only from machines in example.com or localhost, and allow access through 42.
# the unix domain socket unconditionally: 43.
# 44.
# (xen-api-server ((9363 pam '^localhost$ example\\.com$') 45.
# (unix none))) 46.
# 47.
# Optionally, the TCP Xen-API server can use SSL by specifying the private 48.
# key and certificate location: 49.
# 50.
# (9367 pam '' /etc/xen/xen-api.key /etc/xen/xen-api.crt) 51.
# 52.
# Default: 53.
# (xen-api-server ((unix))) 54.
55.
56.
#(xend-http-server no) 57.
#(xend-unix-server no) 58.
#(xend-tcp-xmlrpc-server no) 59.
#(xend-unix-xmlrpc-server yes) 60.
#(xend-relocation-server no) 61.
(xend-relocation-server yes) 62.
#(xend-relocation-ssl-server no) 63.
64.
#(xend-unix-path /var/lib/xend/xend-socket) 65.
66.
67.
# Address and port xend should use for the legacy TCP XMLRPC interface, 68.
# if xend-tcp-xmlrpc-server is set. 69.
#(xend-tcp-xmlrpc-server-address 'localhost') 70.
#(xend-tcp-xmlrpc-server-port 8006) 71.
72.
# SSL key and certificate to use for the legacy TCP XMLRPC interface. 73.
# Setting these will mean that this port serves only SSL connections as 74.
# opposed to plaintext ones. 75.
#(xend-tcp-xmlrpc-server-ssl-key-file /etc/xen/xmlrpc.key) 76.
#(xend-tcp-xmlrpc-server-ssl-cert-file /etc/xen/xmlrpc.crt) 77.
78.
79.
# Port xend should use for the HTTP interface, if xend-http-server is set. 80.
#(xend-port 8000) 81.
82.
# Port xend should use for the relocation interface, if xend-relocation-server 83.
# is set. 84.
#(xend-relocation-port 8002) 85.
86.
# Port xend should use for the ssl relocation interface, if 87.
# xend-relocation-ssl-server is set. 88.
#(xend-relocation-ssl-port 8003) 89.
90.
# SSL key and certificate to use for the ssl relocation interface, if 91.
# xend-relocation-ssl-server is set. 92.
#(xend-relocation-server-ssl-key-file /etc/xen/xmlrpc.key) 93.
#(xend-relocation-server-ssl-cert-file /etc/xen/xmlrpc.crt) 94.
95.
# Whether to use ssl as default when relocating. 96.
#(xend-relocation-ssl no) 97.
98.
# Address xend should listen on for HTTP connections, if xend-http-server is 99.
# set. 100.
# Specifying 'localhost' prevents remote connections. 101.
# Specifying the empty string '' (the default) allows all connections. 102.
#(xend-address '') 103.
#(xend-address localhost) 104.
105.
# Address xend should listen on for relocation-socket connections, if 106.
# xend-relocation-server is set. 107.
# Meaning and default as for xend-address above. 108.
#(xend-relocation-address '') 109.
110.
# The hosts allowed to talk to the relocation port. If this is empty (the 111.
# default), then all connections are allowed (assuming that the connection 112.
# arrives on a port and interface on which we are listening; see 113.
# xend-relocation-port and xend-relocation-address above). Otherwise, this 114.
# should be a space-separated sequence of regular expressions. Any host with 115.
# a fully-qualified domain name or an IP address that matches one of these 116.
# regular expressions will be accepted. 117.
# 118.
# For example: 119.
# (xend-relocation-hosts-allow '^localhost$ ^.*\\.example\\.org$') 120.
# 121.
#(xend-relocation-hosts-allow '') 122.
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$') 123.
124.
# The limit (in kilobytes) on the size of the console buffer 125.
#(console-limit 1024) 126.
127.
## 128.
# To bridge network traffic, like this: 129.
# 130.
# dom0: ----------------- bridge -> real eth0 -> the network 131.
# | 132.
# domU: fake eth0 -> vifN.0 -+ 133.
# 134.
# use 135.
# 136.
# (network-script network-bridge) 137.
# 138.
# Your default ethernet device is used as the outgoing interface, by default. 139.
# To use a different one (e.g. eth1) use 140.
# 141.
# (network-script 'network-bridge netdev=eth1') 142.
# 143.
# The bridge is named xenbr0, by default. To rename the bridge, use 144.
# 145.
# (network-script 'network-bridge bridge=<name>') 146.
# 147.
# It is possible to use the network-bridge script in more complicated 148.
# scenarios, such as having two outgoing interfaces, with two bridges, and 149.
# two fake interfaces per guest domain. To do things like this, write 150.
# yourself a wrapper script, and call network-bridge from it, as appropriate. 151.
# 152.
#(network-script network-bridge) 153.
154.
# The script used to control virtual interfaces. This can be overridden on a 155.
# per-vif basis when creating a domain or a configuring a new vif. The 156.
# vif-bridge script is designed for use with the network-bridge script, or 157.
# similar configurations. 158.
# 159.
# If you have overridden the bridge name using 160.
# (network-script 'network-bridge bridge=<name>') then you may wish to do the 161.
# same here. The bridge name can also be set when creating a domain or 162.
# configuring a new vif, but a value specified here would act as a default. 163.
# 164.
# If you are using only one bridge, the vif-bridge script will discover that, 165.
# so there is no need to specify it explicitly. 166.
# 167.
#(vif-script vif-bridge) 168.
169.
170.
## Use the following if network traffic is routed, as an alternative to the 171.
# settings for bridged networking given above. 172.
(network-script network-route) 173.
(vif-script vif-route) 174.
175.
176.
## Use the following if network traffic is routed with NAT, as an alternative 177.
# to the settings for bridged networking given above. 178.
#(network-script network-nat) 179.
#(vif-script vif-nat) 180.
181.
# dom0-min-mem is the lowest permissible memory level (in MB) for dom0. 182.
# This is a minimum both for auto-ballooning (as enabled by 183.
# enable-dom0-ballooning below) and for xm mem-set when applied to dom0. 184.
(dom0-min-mem 196) 185.
186.
# Whether to enable auto-ballooning of dom0 to allow domUs to be created. 187.
# If enable-dom0-ballooning = no, dom0 will never balloon out. 188.
(enable-dom0-ballooning yes) 189.
190.
# In SMP system, dom0 will use dom0-cpus # of CPUS 191.
# If dom0-cpus = 0, dom0 will take all cpus available 192.
(dom0-cpus 0) 193.
194.
# Whether to enable core-dumps when domains crash. 195.
#(enable-dump no) 196.
197.
# The tool used for initiating virtual TPM migration 198.
#(external-migration-tool '') 199.
200.
# The interface for VNC servers to listen on. Defaults 201.
# to 127.0.0.1 To restore old 'listen everywhere' behaviour 202.
# set this to 0.0.0.0 203.
#(vnc-listen '127.0.0.1') 204.
205.
# The default password for VNC console on HVM domain. 206.
# Empty string is no authentication. 207.
(vncpasswd '') 208.
209.
# The VNC server can be told to negotiate a TLS session 210.
# to encryption all traffic, and provide x509 cert to 211.
# clients enalbing them to verify server identity. The 212.
# GTK-VNC widget, virt-viewer, virt-manager and VeNCrypt 213.
# all support the VNC extension for TLS used in QEMU. The 214.
# TightVNC/RealVNC/UltraVNC clients do not. 215.
# 216.
# To enable this create x509 certificates / keys in the 217.
# directory /etc/xen/vnc 218.
# 219.
# ca-cert.pem - The CA certificate 220.
# server-cert.pem - The Server certificate signed by the CA 221.
# server-key.pem - The server private key 222.
# 223.
# and then uncomment this next line 224.
# (vnc-tls 1) 225.
226.
# The certificate dir can be pointed elsewhere.. 227.
# 228.
# (vnc-x509-cert-dir /etc/xen/vnc) 229.
230.
# The server can be told to request & validate an x509 231.
# certificate from the client. Only clients with a cert 232.
# signed by the trusted CA will be able to connect. This 233.
# is more secure the password auth alone. Passwd auth can 234.
# used at the same time if desired. To enable client cert 235.
# checking uncomment this: 236.
# 237.
# (vnc-x509-verify 1) 238.
239.
# The default keymap to use for the VM's virtual keyboard 240.
# when not specififed in VM's configuration 241.
#(keymap 'en-us') 242.
243.
# Script to run when the label of a resource has changed. 244.
#(resource-label-change-script '') 245.
246.
# Rotation count of qemu-dm log file. 247.
#(qemu-dm-logrotate-count 10) 248.
249.
# Path where persistent domain configuration is stored. 250.
# Default is /var/lib/xend/domains/ 251.
#(xend-domains-path /var/lib/xend/domains)zu sehen ist, dass wir route-networking verwenden da wir sonst in ein (anderer Thread von uns) bekanntes Mac Spoofing fallen da unser Provider Managed Switche verwendet die es nicht gestatten bridged-networking, wie bsp. Hetzner zu verwenden!
so nun kommen wir wieder auf die Frage zurück, wie wir den von uns oben genannten "Mount" Fehler beheben können ?!
Mit freundlichen Grüßen
NySoft Team
Administration
Ralph Schneider
Den Titel ist ein bisschen verwirrend. Also initramfs startet so wie es auch sein muss. Das Problem ist aber deine root device (Partition).
Dein disk.img,hda2 scheint leer zu sein, hasst du da auch was installiert? So wie z.B.:
sudo mount -o loop /home/xen/domains/xen1.example.com/disk.img,hda2 /mnt
sudo apt-get install debootstrap
sudo debootstrap --arch i386 sarge /mnt http://debian.tu-bs.de/debian/
Dein disk.img,hda2 scheint leer zu sein, hasst du da auch was installiert? So wie z.B.:
sudo mount -o loop /home/xen/domains/xen1.example.com/disk.img,hda2 /mnt
sudo apt-get install debootstrap
sudo debootstrap --arch i386 sarge /mnt http://debian.tu-bs.de/debian/
NySoft schreibt am 04.04.2009 um 21:40:37 Uhr
so hmm also ich hab da 2 varianten, da ich mir auch gedacht habe das ich mit
nur das file erstelle und es auf ein gewissen filesysss formatiere mit
zb:
Script 1:
Script 2 :
in meinem letzen script verwende ich nicht
xen-create image sollte doch so wie ich das nach der consolen ausgabe verstehe das image im ersten schritt erzeugen dannach das filesystem. dritter schritt wäre dann (steht auch in der ausgabe) debootrap die config files hierfür stehn ja oben.. oder fehlt etwas?
01.
dd 01.
mkfs.ext3 Script 1:
01.
read -p "Hostname :" hostname 02.
read -p "Size ? (Mb ; Gb ) :" root 03.
read -p "Swap-Size ? (Mb ; Gb) :" swap 04.
read -p "IP-Address ? :" ip 05.
read -p "Subnetmask ? :" subnet 06.
read -p "Gateway ) :" gw 07.
read -p "RAM Size ? (Mb) :" ram 08.
read -p "Architecture : " arch 09.
read -p "Distribution : " dist 10.
xen-create-image --hostname=$hostname --ip=$ip --netmask=$subnet --gateway=$gw --force --size=$root --swap=$swap --memory=$ram --arch=$arch --role=udev --ide --passwd --role=force --dist=$dist --initrd=/boot/initrd.img-2.6.24-23-xen --kernel=/boot/vmlinuz-2.6.24-23-xen 11.
xm create /etc/xen/${hostname}.cfg 12.
xm list 13.
echo "finished working"Script 2 :
01.
#!/bin/sh 02.
03.
echo "no special character!" 04.
read -p "Filename :" inputline 05.
mkdir /home/xen/domains > /dev/null 06.
mkdir /home/xen/domains/$inputline > /dev/null 07.
cd /home/xen/domains/$inputline 08.
#read -p "Path to Root Partition " root_path 09.
#read -p "Path to Swap Partition " swap_path 10.
read -p "Root Partition Size (Mb) :" root_img 11.
read -p "Swap Partition Size (Mb) :" swap_img 12.
read -p "Architecture ? alpha amd64 arm armel hppa hurd-i386 i386 ia64 mips mipsel powerpc s390 sparc ? :" arch 13.
read -p "Filesystem ? ext2 ext3 msdos fat xfs bfs cramfs ? :" filesys 14.
read -p "Lenny Sarge or Etch ? :" dist 15.
read -p "Count ? :" nmbr 16.
#echo $dist 17.
#echo $filesys 18.
#echo $arch 19.
#echo $cd 20.
#echo $inputline 21.
#echo $root_img 22.
#echo $swap_img 23.
#echo $root_path 24.
#echo $swap_path 25.
echo "create domain folder" 26.
dd if=/dev/zero of=/home/xen/domains/$inputline/$inputline.img seek=${root_img}M count=$nmbr 27.
dd if=/dev/zero of=/home/xen/domains/$inputline/${inputline}_swap.img seek=${swap_img}M count=$nmbr 28.
mkswap /home/xen/domains/$inputline/${inputline}_swap.img 29.
mke2fs /home/xen/domains/$inputline/$inputline.img 30.
mkdir /mnt/$inputline 31.
mount -o loop /home/xen/domains/$inputline/$inputline.img /mnt/$inputline 32.
debootstrap --arch $arch $dist /mnt/$inputline http://ftp.de.debian.org/debian 33.
umount /mnt/$inputline 34.
########################################################################################## 35.
echo "finished working"in meinem letzen script verwende ich nicht
01.
mkfs.ext3 sondern 01.
mke2fs xen-create image sollte doch so wie ich das nach der consolen ausgabe verstehe das image im ersten schritt erzeugen dannach das filesystem. dritter schritt wäre dann (steht auch in der ausgabe) debootrap die config files hierfür stehn ja oben.. oder fehlt etwas?
dd wird viel Ressourcen nehmen und länger dauern. Nimm besser qemu-img create -f raw image.img 10G . zu mindestens auf der ext4 Partition dauert es 1s.
hasst du schon versucht den image nachher zu mounten um zu prüfen ob es alles da ist.
So wie es aussieht, initrd versucht den root zu mounten, dann kernel sagt es wurde eine Partition mit ext3 gemountet. Da du nur swap und root hattest es war schon die richtige Partition. Dann sagt es, dass es sämtlichen Ordners nicht gefunden worden, inklusive /sbin/init. Also heisst es die Partition ist leer.
Oder wolltest was anderes in deinem letzten Post sagen?
hasst du schon versucht den image nachher zu mounten um zu prüfen ob es alles da ist.
So wie es aussieht, initrd versucht den root zu mounten, dann kernel sagt es wurde eine Partition mit ext3 gemountet. Da du nur swap und root hattest es war schon die richtige Partition. Dann sagt es, dass es sämtlichen Ordners nicht gefunden worden, inklusive /sbin/init. Also heisst es die Partition ist leer.
Oder wolltest was anderes in deinem letzten Post sagen?
NySoft schreibt am 04.04.2009 um 22:35:42 Uhr
ich habe ja 2 scripte und beide führen zum erwünschten ergebniss nur dass ich bei einem die DomU config anlegen muss bzw einfach anpassen muss...damit die DomU starten kann..
meine frage dazu währe warum mein debootstrap nicht richtig installiert.. da ich keinerlei fehler durch echos festellen konnte...mag sein das ich falsch liege für cracks unter uns jedoch möchte ich darauß auch lernen...
zu deiner frage konkret: ja ich habe die partition schon mit diesem befehl gemountet sollte auch durch letzteres script geschehen...
Mit freundlichen Grüßen
Administration NySoft
Ralph Schneider
meine frage dazu währe warum mein debootstrap nicht richtig installiert.. da ich keinerlei fehler durch echos festellen konnte...mag sein das ich falsch liege für cracks unter uns jedoch möchte ich darauß auch lernen...
zu deiner frage konkret: ja ich habe die partition schon mit diesem befehl gemountet sollte auch durch letzteres script geschehen...
Mit freundlichen Grüßen
Administration NySoft
Ralph Schneider
NySoft schreibt am 05.04.2009 um 16:37:44 Uhr
also ich habe mir mal deinen post durch den kopf gehen lassen. da du meintest das es eventuell doch am script liegen könnte, habe ich das "mounten" von hand gemacht und das debootrap auch von hand ausgeführt, dannach habe ich das file mit einem "umount" wieder freigegeben und mir die config nochmals angeschaut bevor ich sie starte. Config war ja soweit okay, nun kommen wir mal zu meinem output der console ^^ :
Dieser ist nicht sonderlich gut
Ich habe ein:
vorrangelegt um es wie gesagt von hand auszuführen. mein output dannach sieht so aus:
ich verstehe nicht ob es nun an der amd64 version liegt, sodass keine treiber geladen werden oder ob es (eher die vermutung) daran liegt, dass:
einfach keine kernel module geladen werden bei einer frischen installation. da wir definitv die amd64 variante verwenden wollen, würde ich mich freuen wenn die diskussion sich auf das 64bit thema konzentriert.
alternativen für debian amd64 währen noch Ubuntu 8.04 LTS x64 oder ein eventuelles gentoo. letzteres würden wir jedoch aus dem verwaltungsaufwand nicht bevorzugen, jedoch würde es das performanteste system von allen sein...dies sei dahingestellt.
Dieser ist nicht sonderlich gut
Ich habe ein:
01.
debootsrap --arch amd64 etch /mnt/vs1/ http://debian.tu-bs.de/debian/vorrangelegt um es wie gesagt von hand auszuführen. mein output dannach sieht so aus:
01.
I: Configuring module-init-tools... 02.
I: Configuring libgdbm3... 03.
I: Configuring libtasn1-3... 04.
I: Configuring libpopt0... 05.
I: Configuring libusb-0.1-4... 06.
I: Configuring libgpg-error0... 07.
I: Configuring update-inetd... 08.
I: Configuring libssl0.9.8... 09.
I: Configuring vim-common... 10.
I: Configuring dmidecode... 11.
I: Configuring adduser... 12.
I: Configuring traceroute... 13.
I: Configuring manpages... 14.
I: Configuring ed... 15.
I: Configuring liblzo1... 16.
I: Configuring wget... 17.
I: Configuring groff-base... 18.
I: Configuring libnewt0.52... 19.
I: Configuring libdb4.2... 20.
I: Configuring libdb4.4... 21.
I: Configuring net-tools... 22.
I: Configuring libsasl2-2... 23.
I: Configuring bsdmainutils... 24.
I: Configuring libsigc++-2.0-0c2a... 25.
I: Configuring libncursesw5... 26.
I: Configuring info... 27.
I: Configuring iputils-ping... 28.
I: Configuring libbz2-1.0... 29.
I: Configuring cron... 30.
I: Configuring libsasl2... 31.
I: Configuring nano... 32.
I: Configuring dhcp3-common... 33.
I: Configuring libconsole... 34.
I: Configuring iptables... 35.
I: Configuring cpio... 36.
I: Configuring vim-tiny... 37.
I: Configuring readline-common... 38.
I: Configuring libwrap0... 39.
I: Configuring netcat... 40.
I: Configuring tcpd... 41.
I: Configuring laptop-detect... 42.
I: Configuring man-db... 43.
I: Configuring libgcrypt11... 44.
I: Configuring whiptail... 45.
I: Configuring ifupdown... 46.
I: Configuring dhcp3-client... 47.
I: Configuring openbsd-inetd... 48.
I: Configuring libreadline5... 49.
I: Configuring logrotate... 50.
I: Configuring libopencdk8... 51.
I: Configuring libgnutls13... 52.
I: Configuring libldap2... 53.
I: Configuring netbase... 54.
I: Configuring gnupg... 55.
I: Configuring debian-archive-keyring... 56.
I: Configuring apt... 57.
I: Configuring aptitude... 58.
I: Configuring apt-utils... 59.
I: Configuring klogd... 60.
I: Configuring tasksel-data... 61.
I: Configuring sysklogd... 62.
I: Configuring tasksel... 63.
I: Base system installed successfully. 64.
root@s15315430:/home/scripts# umount /mnt/vs1/ 65.
root@s15315430:/home/scripts# 66.
root@s15315430:/home/scripts# cat /etc/xen/xen1. 67.
xen1.cfg xen1.example.com.cfg 68.
root@s15315430:/home/scripts# cat /etc/xen/xen1.example.com.cfg 69.
70.
# Configuration file for the Xen instance xen1.example.com, created 71.
# by xen-tools 3.8 on Fri Apr 3 23:40:12 2009. 72.
# 73.
74.
# 75.
# Kernel + memory size 76.
# 77.
kernel = '/boot/vmlinuz-2.6.24-23-xen' 78.
ramdisk = '/boot/initrd.img-2.6.24-23-xen' 79.
memory = '256' 80.
81.
# 82.
# Disk device(s). 83.
# 84.
root = '/dev/hda2 ro' 85.
disk = [ 86.
'file:/home/xen/domains/xen1.example.com/swap.img,hda1,w', 87.
'file:/home/xen/domains/xen1.example.com/disk.img,hda2,w', 88.
] 89.
90.
91.
# 92.
# Hostname 93.
# 94.
name = 'xen1.example.com' 95.
96.
# 97.
# Networking 98.
# 99.
vif = [ 'ip=87.106.XXX.XXX,mac=00:16:3E:16:02:D1' ] 100.
101.
# 102.
# Behaviour 103.
# 104.
on_poweroff = 'destroy' 105.
on_reboot = 'restart' 106.
on_crash = 'restart' 107.
108.
extra = '2 console=xvc0' 109.
110.
111.
root@s15315430:/home/scripts# xm create /etc/xen/xen1.example.com.cfg 112.
Using config file "/etc/xen/xen1.example.com.cfg". 113.
Error: Domain 'xen1.example.com' already exists with ID '28' 114.
root@s15315430:/home/scripts# xm list 115.
Name ID Mem VCPUs State Time(s) 116.
Domain-0 0 3598 4 r----- 9952.1 117.
xen1.example.com 28 256 1 -b---- 1127.9 118.
root@s15315430:/home/scripts# xm shutdown xen1.example.com 119.
root@s15315430:/home/scripts# xm list 120.
Name ID Mem VCPUs State Time(s) 121.
Domain-0 0 3598 4 r----- 9953.3 122.
root@s15315430:/home/scripts# 123.
root@s15315430:/home/scripts# xm create /etc/xen/xen1.example.com.cfg 124.
Using config file "/etc/xen/xen1.example.com.cfg". 125.
Started domain xen1.example.com 126.
root@s15315430:/home/scripts# xm console xen1.example.com 127.
[ 0.087981] SMP alternatives: switching to UP code 128.
[ 0.088434] Freeing SMP alternatives: 23k freed 129.
[ 0.088557] Early unpacking initramfs... done 130.
[ 0.103385] Brought up 1 CPUs 131.
[ 0.103915] net_namespace: 120 bytes 132.
[ 0.103921] failed to set up cpufreq notifier 133.
[ 0.123817] Time: 165:165:165 Date: 165/165/65 134.
[ 0.123847] NET: Registered protocol family 16 135.
[ 0.124897] Brought up 1 CPUs 136.
[ 0.125253] PCI: Fatal: No config space access function found 137.
[ 0.125258] PCI: setting up Xen PCI frontend stub 138.
[ 0.125716] ACPI: Interpreter disabled. 139.
[ 0.125721] Linux Plug and Play Support v0.97 (c) Adam Belay 140.
[ 0.125744] pnp: PnP ACPI: disabled 141.
[ 0.125923] xen_mem: Initialising balloon driver. 142.
[ 0.127394] Setting mem allocation to 262144 kiB 143.
[ 0.127546] PCI: System does not support PCI 144.
[ 0.127549] PCI: System does not support PCI 145.
[ 0.130542] NET: Registered protocol family 8 146.
[ 0.130545] NET: Registered protocol family 20 147.
[ 0.130601] AppArmor: AppArmor Filesystem Enabled 148.
[ 0.130923] NET: Registered protocol family 2 149.
[ 0.134491] Time: xen clocksource has been installed. 150.
[ 0.166469] IP route cache hash table entries: 4096 (order: 3, 32768 bytes) 151.
[ 0.166655] TCP established hash table entries: 16384 (order: 6, 262144 bytes) 152.
[ 0.166739] TCP bind hash table entries: 16384 (order: 6, 262144 bytes) 153.
[ 0.166824] TCP: Hash tables configured (established 16384 bind 16384) 154.
[ 0.166827] TCP reno registered 155.
[ 0.178458] checking if image is initramfs... it is 156.
[ 0.194540] Freeing initrd memory: 20996k freed 157.
[ 0.202118] audit: initializing netlink socket (disabled) 158.
[ 0.202132] audit(1238941030.014:1): initialized 159.
[ 0.202289] VFS: Disk quotas dquot_6.5.1 160.
[ 0.202309] Dquot-cache hash table entries: 512 (order 0, 4096 bytes) 161.
[ 0.202410] io scheduler noop registered 162.
[ 0.202413] io scheduler anticipatory registered 163.
[ 0.202415] io scheduler deadline registered 164.
[ 0.202421] io scheduler cfq registered (default) 165.
[ 0.202591] Xen virtual console successfully installed as xvc0 166.
[ 0.202628] Event-channel device installed. 167.
[ 0.208021] Successfully initialized TPM backend driver. 168.
[ 0.211854] netfront: Initialising virtual ethernet driver. 169.
[ 0.234158] xen-vbd: registered block device major 3 170.
[ 0.234177] blkfront: hda1: barriers enabled 171.
[ 0.234926] blkfront: hda2: barriers enabled 172.
[ 0.237286] rtc: IRQ 8 is not free. 173.
[ 0.237348] Linux agpgart interface v0.102 174.
[ 0.237789] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize 175.
[ 0.237847] input: Macintosh mouse button emulation as /devices/virtual/input/input0 176.
[ 0.237938] PNP: No PS/2 controller found. Probing ports directly. 177.
[ 0.238786] i8042.c: No controller found. 178.
[ 0.250239] mice: PS/2 mouse device common for all mice 179.
[ 0.250270] cpuidle: using governor ladder 180.
[ 0.250343] NET: Registered protocol family 1 181.
[ 0.250387] registered taskstats version 1 182.
[ 0.250396] XENBUS: Device with no driver: device/console/0 183.
[ 0.250411] Magic number: 1:252:3141 184.
[ 0.250508] /build/buildd/linux-2.6.24/debian/build/custom-source-xen/drivers/rtc/hctosys.c: unable to open rtc device (rtc0) 185.
[ 0.250519] Freeing unused kernel memory: 220k freed 186.
Loading, please wait... 187.
Begin: Loading essential drivers... ... 188.
[ 0.529044] SCSI subsystem initialized 189.
[ 0.558585] 3ware Storage Controller device driver for Linux v1.26.02.002. 190.
[ 0.565365] 3ware 9000 Storage Controller device driver for Linux v2.26.02.010. 191.
[ 0.586340] md: raid1 personality registered for level 1 192.
[ 0.593713] Driver 'sd' needs updating - please use bus_type methods 193.
[ 0.603352] fuse init (API version 7.9) 194.
[ 0.638813] thermal: Unknown symbol acpi_processor_set_thermal_limit 195.
[ 0.654497] md: linear personality registered for level -1 196.
[ 0.660674] md: multipath personality registered for level -4 197.
[ 0.666836] md: raid0 personality registered for level 0 198.
[ 0.678311] xor: automatically using best checksumming function: generic_sse 199.
[ 0.698186] generic_sse: 6028.000 MB/sec 200.
[ 0.698189] xor: using function: generic_sse (6028.000 MB/sec) 201.
[ 0.698810] async_tx: api initialized (async) 202.
[ 0.766234] raid6: int64x1 2210 MB/s 203.
[ 0.834321] raid6: int64x2 2751 MB/s 204.
[ 0.902397] raid6: int64x4 2757 MB/s 205.
[ 0.970480] raid6: int64x8 2204 MB/s 206.
[ 1.038486] raid6: sse2x1 2819 MB/s 207.
[ 1.106508] raid6: sse2x2 4539 MB/s 208.
[ 1.174513] raid6: sse2x4 5003 MB/s 209.
[ 1.174516] raid6: using algorithm sse2x4 (5003 MB/s) 210.
[ 1.174520] md: raid6 personality registered for level 6 211.
[ 1.174522] md: raid5 personality registered for level 5 212.
[ 1.174524] md: raid4 personality registered for level 4 213.
[ 1.201360] md: raid10 personality registered for level 10 214.
Done. 215.
Begin: Running /scripts/init-premount ... 216.
Done. 217.
Begin: Mounting root file system... ... 218.
Begin: Running /scripts/local-top ... 219.
Done. 220.
Begin: Waiting for root file system... ... 221.
Done. 222.
Begin: Running /scripts/local-premount ... 223.
Begin: Waiting for resume device... ... 224.
Done. 225.
Done. 226.
[ 7.511724] kjournald starting. Commit interval 5 seconds 227.
[ 7.511738] EXT3-fs: mounted filesystem with ordered data mode. 228.
Begin: Running /scripts/local-bottom ... 229.
Done. 230.
Done. 231.
Begin: Running /scripts/init-bottom ... 232.
Done. 233.
INIT: version 2.86 booting 234.
* Mount point '/dev/shm' does not exist. Skipping mount. 235.
Activating swap...done. 236.
[ 7.801369] EXT3 FS on hda2, internal journal 237.
Setting the system clock.. 238.
Cannot access the Hardware Clock via any known method. 239.
Use the --debug option to see the details of our search for an access method. 240.
Cleaning up ifupdown.... 241.
Loading kernel modules...FATAL: Could not load /lib/modules/2.6.24-23-xen/modules.dep: No such file or directory 242.
Loading device-mapper support. 243.
Checking file systems...fsck 1.40-WIP (14-Nov-2006) 244.
WARNING: Your /etc/fstab does not contain the fsck passno 245.
field. I will kludge around things for you, but you 246.
should fix your /etc/fstab file as soon as you can. 247.
248.
done. 249.
Setting kernel variables...done. 250.
Mounting local filesystems...done. 251.
Activating swapfile swap...done. 252.
Setting up networking.... 253.
Configuring network interfaces...done. 254.
INIT: Entering runlevel: 2 255.
Starting system log daemon: syslogd. 256.
Starting kernel log daemon: klogd. 257.
* Not starting internet superserver: no services enabled. 258.
Starting periodic command scheduler: crond.ich verstehe nicht ob es nun an der amd64 version liegt, sodass keine treiber geladen werden oder ob es (eher die vermutung) daran liegt, dass:
01.
* Mount point '/dev/shm' does not exist. Skipping mount. 02.
Activating swap...done. 03.
[ 7.801369] EXT3 FS on hda2, internal journal 04.
Setting the system clock.. 05.
Cannot access the Hardware Clock via any known method. 06.
Use the --debug option to see the details of our search for an access method. 07.
Cleaning up ifupdown.... 08.
Loading kernel modules...FATAL: Could not load /lib/modules/2.6.24-23-xen/modules.dep: No such file or directoryeinfach keine kernel module geladen werden bei einer frischen installation. da wir definitv die amd64 variante verwenden wollen, würde ich mich freuen wenn die diskussion sich auf das 64bit thema konzentriert.
alternativen für debian amd64 währen noch Ubuntu 8.04 LTS x64 oder ein eventuelles gentoo. letzteres würden wir jedoch aus dem verwaltungsaufwand nicht bevorzugen, jedoch würde es das performanteste system von allen sein...dies sei dahingestellt.
Jetzt sieht besser aus ;) .Also, initramfs hasst eigene Kernelmodule und die rootfs eigene. Nach der "INIT: version 2.86 booting" kann Kernel nicht mehr auf die Module aus der initramfs zugreifen, und sucht die im /lib/modules/2.6.24-23-xen/. Den hasst du natürlich nicht, weil debootstrap installier kein Kernel. Du kannst es da installieren oder dort hin kopieren.
Es ist absolut egal welche Distro du hasst.
Es ist absolut egal welche Distro du hasst.
NySoft schreibt am 05.04.2009 um 20:25:33 Uhr
also du meinst ich solle, aus meiner Dom0 den /lib/modules/2.6.24-23-xen in meine DomU ins gleichnamige Verzeichniss kopieren...um somit die Modoule auf der DomU zur Verfügung zu stellen?
wenn das so ist könnte ich es ja bei einer Script mäßigen Installation einfach mit reinbringen.
könntest du es bitte nochmals etwas präziser in der Schreibweise wiedergeben, da ich deinen Gedankengängen nicht ganz folgen konnte.
wenn das so ist könnte ich es ja bei einer Script mäßigen Installation einfach mit reinbringen.
könntest du es bitte nochmals etwas präziser in der Schreibweise wiedergeben, da ich deinen Gedankengängen nicht ganz folgen konnte.







75823schreibt am 04.04.2009 um 08:04:53 Uhr75823schreibt am 04.04.2009 um 22:10:09 Uhr75823schreibt am 05.04.2009 um 17:33:53 Uhr75823schreibt am 05.04.2009 um 22:19:24 Uhr