Problema de red con Xen

Imagen de RazaMetaL

Forums: 

Hola,

Tengo un pequeño problema con dos DomU que corren Debian Lenny. El Dom0 es un Centos 5.3 y todo funcionaba bien hasta antes de un apagón :(


rpm -qa | grep xen
kernel-xen-2.6.18-194.3.1.el5
xen-3.0.3-105.el5_5.5
xen-libs-3.0.3-105.el5_5.5
xen-devel-3.0.3-105.el5_5.5
kernel-xen-devel-2.6.18-194.3.1.el5
xenwatch-0.5.3-3.el5


uname -r
2.6.18-194.3.1.el5xen

El lio es que los DomU no levantan la red, estos son los parámentros que tiene cada DomU:

cat /etc/xen/auto/backup
bootloader = "/usr/bin/pygrub"
memory = 4096
extra="clocksource=jiffies"
name = "backup"
vif = [ "mac=00:16:3e:43:3d:e3,bridge=xenbr0" ]
disk = [ 'phy:/dev/VolGroup00/backup,xvda,w', 'phy:/dev/cdrom,xvdb:/dev/cdrom,r' ]


ifconfig
eth0 Link encap:Ethernet HWaddr 78:E7:D1:8E:06:32
inet addr:172.18.3.2 Bcast:172.18.3.255 Mask:255.255.255.0
inet6 addr: fe80::7ae7:d1ff:fe8e:632/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4619 errors:0 dropped:0 overruns:0 frame:0
TX packets:641 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:463128 (452.2 KiB) TX bytes:100202 (97.8 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)

peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:4742 errors:0 dropped:0 overruns:0 frame:0
TX packets:640 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:498714 (487.0 KiB) TX bytes:102912 (100.5 KiB)
Interrupt:16 Memory:f4000000-f4012800

vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:650 errors:0 dropped:0 overruns:0 frame:0
TX packets:4627 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:102700 (100.2 KiB) TX bytes:463656 (452.7 KiB)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:6004 (5.8 KiB)

xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:2966 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300164 (293.1 KiB) TX bytes:0 (0.0 b)

Esto es lo que veo cuando inicio el domU:

xm create backup
Using config file "/etc/xen/backup".
Started domain backup


xm console backup
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.26-2-xen-686 (Debian 2.6.26-19lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Wed Nov 4 23:23:33 UTC 2009
[ 0.000000] Reserving virtual address space above 0xf5800000
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 0000000100800000 (usable)
[ 0.000000] 3376MB HIGHMEM available.
[ 0.000000] 728MB LOWMEM available.
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0 -> 4096
[ 0.000000] Normal 4096 -> 186368
[ 0.000000] HighMem 186368 -> 1050624
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0 -> 1050624
[ 0.000000] ACPI in unprivileged domain disabled
[ 0.000000] Allocating PCI resources starting at 10100000 (gap: 10000000:00400000)
[ 0.000000] PERCPU: Allocating 28552 bytes of per cpu data
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1042416
[ 0.000000] Kernel command line: console=hvc0 root=/dev/xvda1 ro
[ 0.000000] Enabling fast FPU save and restore... done.
[ 0.000000] Enabling unmasked SIMD FPU exception support... done.
[ 0.000000] Initializing CPU#0
[ 0.000000] PID hash table entries: 4096 (order: 12, 16384 bytes)
[ 0.000000] Xen reported: 2666.760 MHz processor.
[ 0.004000] Console: colour dummy device 80x25
[ 0.004000] console [hvc0] enabled
[ 0.004000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.004000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.004000] Software IO TLB disabled
[ 0.004000] Memory: 4136448k/4202496k available (1845k kernel code, 56956k reserved, 740k data, 196k init, 3457024k highmem)
[ 0.004000] virtual kernel memory layout:
[ 0.004000] fixmap : 0xf5555000 - 0xf57ff000 (2728 kB)
[ 0.004000] pkmap : 0xf5000000 - 0xf5200000 (2048 kB)
[ 0.004000] vmalloc : 0xee000000 - 0xf4ffe000 ( 111 MB)
[ 0.004000] lowmem : 0xc0000000 - 0xed800000 ( 728 MB)
[ 0.004000] .init : 0xc038f000 - 0xc03c0000 ( 196 kB)
[ 0.004000] .data : 0xc02cd517 - 0xc03868a0 ( 740 kB)
[ 0.004000] .text : 0xc0100000 - 0xc02cd517 (1845 kB)
[ 0.004000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[ 0.916061] Calibrating delay using timer specific routine.. 5335.54 BogoMIPS (lpj=10671086)
[ 0.916082] Security Framework initialized
[ 0.916086] SELinux: Disabled at boot.
[ 0.916089] Capability LSM initialized
[ 0.916097] Mount-cache hash table entries: 512
[ 0.916173] Initializing cgroup subsys ns
[ 0.916177] Initializing cgroup subsys cpuacct
[ 0.916179] Initializing cgroup subsys devices
[ 0.916196] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.916201] CPU: L2 cache: 256K
[ 0.916202] CPU: L3 cache: 8192K
[ 0.916210] Checking 'hlt' instruction... OK.
[ 0.916424] SMP alternatives: switching to UP code
[ 0.924829] Freeing SMP alternatives: 16k freed
[ 0.924890] Brought up 1 CPUs
[ 0.926103] net_namespace: 660 bytes
[ 0.926205] NET: Registered protocol family 16
[ 0.927074] Brought up 1 CPUs
[ 0.927382] PCI: Fatal: No config space access function found
[ 0.927385] PCI: setting up Xen PCI frontend stub
[ 0.927738] ACPI: Interpreter disabled.
[ 0.927742] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.927759] pnp: PnP ACPI: disabled
[ 0.927982] suspend: event channel 7
[ 0.928374] xen_mem: Initialising balloon driver.
[ 0.929347] PCI: System does not support PCI
[ 0.929349] PCI: System does not support PCI
[ 0.929590] NET: Registered protocol family 2
[ 0.929633] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.929742] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.929924] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.930024] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.930027] TCP reno registered
[ 0.930060] NET: Registered protocol family 1
[ 0.930115] checking if image is initramfs... it is
[ 0.943073] Freeing initrd memory: 14344k freed
[ 0.943179] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.943353] audit: initializing netlink socket (disabled)
[ 0.943360] type=2000 audit(1285966004.936:1): initialized
[ 0.943524] highmem bounce pool size: 64 pages
[ 0.943559] VFS: Disk quotas dquot_6.5.1
[ 0.943573] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.943585] msgmni has been set to 1484
[ 0.943638] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.943641] io scheduler noop registered
[ 0.943643] io scheduler anticipatory registered
[ 0.943644] io scheduler deadline registered
[ 0.943649] io scheduler cfq registered (default)
[ 0.944984] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[ 0.945769] brd: module loaded
[ 0.945805] Xen virtual console successfully installed as hvc0
[ 0.945825] Event-channel device installed.
[ 0.954261] netfront: Initialising virtual ethernet driver.
[ 0.955386] PNP: No PS/2 controller found. Probing ports directly.
[ 0.956195] i8042.c: No controller found.
[ 0.956236] mice: PS/2 mouse device common for all mice
[ 0.956318] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.956402] No iBFT detected.
[ 0.956659] TCP cubic registered
[ 0.956662] NET: Registered protocol family 17
[ 0.956665] Using IPI No-Shortcut mode
[ 0.956738] registered taskstats version 1
[ 0.956779] xen-vbd: registered block device major 202
[ 0.957069] xvda: xvda1 xvda2
[ 0.966377] BUG: unable to handle kernel NULL pointer dereference at 00000000
[ 0.966381] IP: [] backend_changed+0x17d/0x1e2
[ 0.966388] *pdpt = 0000000000000000
[ 0.966390] Oops: 0000 [#1] SMP
[ 0.966393] Modules linked in:
[ 0.966394]
[ 0.966396] Pid: 19, comm: xenwatch Not tainted (2.6.26-2-xen-686 #1)
[ 0.966399] EIP: 0061:[] EFLAGS: 00010246 CPU: 0
[ 0.966401] EIP is at backend_changed+0x17d/0x1e2
[ 0.966403] EAX: ed47be00 EBX: ed47be00 ECX: c024a55f EDX: 00000000
[ 0.966405] ESI: ecf0c000 EDI: ed47be00 EBP: 00000000 ESP: ed4a7f80
[ 0.966407] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: e021
[ 0.966409] Process xenwatch (pid: 19, ti=ed4a6000 task=ed49c900 task.ti=ed4a6000)
[ 0.966411] Stack: c0240bc4 00000000 eceece40 c03367ed ed47be00 eceecb00 c036f7e4 00000000
[ 0.966417] c0242d00 eceecb80 ed47be10 eceecb80 c0241740 00000000 c0241de0 c0241f15
[ 0.966424] 00000000 ed49c900 c012ec98 ed4a7fcc ed4a7fcc 00000000 c012ebd5 c012eb9d
[ 0.966430] Call Trace:
[ 0.966431] [] xenbus_read_driver_state+0x1c/0x2f
[ 0.966436] [] otherend_changed+0x63/0x67
[ 0.966440] [] xenwatch_handle_callback+0x12/0x41
[ 0.966443] [] xenwatch_thread+0x0/0x14b
[ 0.966446] [] xenwatch_thread+0x135/0x14b
[ 0.966448] [] autoremove_wake_function+0x0/0x2d
[ 0.966452] [] kthread+0x38/0x5f
[ 0.966454] [] kthread+0x0/0x5f
[ 0.966456] [] kernel_thread_helper+0x7/0x10
[ 0.966460] =======================
[ 0.966461] Code: 03 05 c4 b1 35 c0 c6 40 01 00 80 38 00 74 05 e8 b2 25 ff ff 8b 46 04 e8 28 c9 f8 ff c7 86 dc 13 00 00 01 00 00 00 eb 60 8b 56 04 <8b> 02 c1 e0 14 0b 42 04 e8 5d 7e f4 ff 85 c0 89 c3 75 10 68 32
[ 0.966494] EIP: [] backend_changed+0x17d/0x1e2 SS:ESP e021:ed4a7f80
[ 0.966500] ---[ end trace 5a2f2eb303441bc7 ]---
[ 6.057904] XENBUS: Waiting for devices to initialise: 295s...290s...285s...280s...275s...270s...265s...260s...255s...250s...245s...240s...235s...230s...225s...220s...215s...210s...205s...200s...195s...190s...185s...180s...175s...170s...165s...160s...155s...150s...145s...140s...135s...130s...125s...120s...115s...110s...105s...100s...95s...90s...85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s...
[ 301.056532] XENBUS: Timeout connecting to device: device/vbd/51728 (local state 3, remote state 5)
[ 301.056538] XENBUS: Device not ready: device/vbd/51728
[ 301.056597] XENBUS: Timeout connecting to device: device/vif/0 (local state 1, remote state 2)
[ 301.056603] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 301.056676] Freeing unused kernel memory: 196k freed
Loading, please wait...
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.26-2-xen-686/kernel/drivers/acpi/fan.ko): No such device
WARNING: Error inserting processor (/lib/modules/2.6.26-2-xen-686/kernel/drivers/acpi/processor.ko): No such device
[ 301.191127] thermal: Unknown symbol acpi_processor_set_thermal_limit
FATAL: Error inserting thermal (/lib/modules/2.6.26-2-xen-686/kernel/drivers/acpi/thermal.ko): Unknown symbol in module, or unknown parameter (see dmesg)
done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 301.468777] kjournald starting. Commit interval 5 seconds
[ 301.468789] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd[ 302.450851] udevd version 125 started
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Setting the system clock.
Unable to set System Clock to: Fri Oct 1 20:51:47 UTC 2010 (warning).
Activating swap...[ 304.051631] Adding 1204864k swap on /dev/xvda2. Priority:-1 extents:1 across:1204864k
done.
Checking root file system...fsck 1.41.3 (12-Oct-2008)
/dev/xvda1: clean, 77486/78342432 files, 5452206/156985164 blocks
done.
[ 304.363055] EXT3 FS on xvda1, internal journal
Setting the system clock.
Unable to set System Clock to: Fri Oct 1 20:51:49 UTC 2010 (warning).
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
Failed to bring up eth0.
done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[ 307.130842] NET: Registered protocol family 10
[ 307.131162] lo: Disabled Privacy Extensions
.
Starting OpenBSD Secure Shell server: sshd.
Starting MTA: exim4.
Starting internet superserver: inetd.
Starting Samba daemons: nmbd smbd.
Starting periodic command scheduler: crond.
Starting web server: apache2.

Debian GNU/Linux 5.0 backup hvc0

backup login:

Luego de unos minutos el DomU inicia, pero no tengo ping hacia el dom0 ni hacia las demás maquinas que estan en la red:

backup:~# ip add
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
inet 172.18.3.254/24 brd 172.18.3.255 scope global eth0


backup:~# /etc/init.d/networking restart
Reconfiguring network interfaces...SIOCSIFFLAGS: Cannot assign requested address
SIOCSIFFLAGS: Cannot assign requested address
Failed to bring up eth0.
done.

Alguna idea de que puede estar sucediendo? :?

Hola, disculpa de pronto no

Imagen de nino1511

Hola, disculpa de pronto no sera que esta activo el Network Manager, ese programa siempre me da problemas con las redes en
Debian o en Ubuntu (gnome).

Saludos

Vamos Ecuador, si se puede

Gracias por contestar pero no

Imagen de RazaMetaL

Gracias por contestar pero no tengo network manager corriendo ni en el dom0 ni en el domU.

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

SOLUCIONADO

Imagen de RazaMetaL

Lo he solucionado actualizando el kernel del domU Debian a la version linux-image-2.6.32-5-xen-686. Esta versión esta por ahora en Debian Sid, aún no se la causa del fallo, presumo que algo tiene que ver el apagón o alguna actualización, en fin resumo los pasos seguidos para lograr la actualización y que todo funcione otra vez.

Mi domU se llama backup y usa un volúmen LVM ubicado en /dev/VolGroup00/backup.

Detenemos el domU con:

xm destroy backup

Montamos la particion del domU:

kpartx -a /dev/VolGroup00/backup
mkdir /mnt/debian
mount /dev/mapper/backup1 /mnt/debian

Hacemos un chroot en /mnt/debian:

chroot /mnt/debian

Agregamos en /etc/apt/sources.list :

deb http://ftp.us.debian.org/debian unstable main non-free contrib

Creamos el archivo /etc/apt/preferences que contendrá lo siguiente:

Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=unstable
Pin-Priority: 600

Actualizamos la lista de paquetes:

aptitude update

Instalamos el nuevo kernel para la rama unstable:

aptitude install linux-image-2.6.32-5-xen-686/unstable

Modificamos el archivo de configuración de grub /boot/grub/menu.lst para que contenga el nuevo kernel:


default=0
timeout=3
hiddenmenu
title debian
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-5-xen-686 ro root=/dev/xvda1
initrd /boot/initrd.img-2.6.32-5-xen-686

Salimos del chroot y desmontamos:

exit
cd /
umount /mnt/debian

Finalmente cargamos el domU con:

xm create backup

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

mi opinion es, mirando el

Imagen de Epe

mi opinion es, mirando el error que te da al arrancar, que te faltaban los modulos del kernel conque levantabas, estos están en /lib/modules/ y es un directorio para cada kernel.

por eso veo que lo arreglaste instalando un nuevo kernel, seguramente instalaste también los módulos de ese nuevo kernel por eso te funcionó.

Saludos
epe

EcuaLinux.com

+(593) 9 9924 6504

Servicios en Software Libre

Concuerdo con tu opinión, lo

Imagen de RazaMetaL

Concuerdo con tu opinión, lo que me preocupa es que hago si sucede otra vez :( y mas que todo saber porqué sucedió. Veo que en el dom0 tengo directorios lost+found aunque estos no ningún archivo adentro.

Los modulos del kernel se guardan en algún lugar en particular? como puedes ver estoy usando un kernel de debian instalado en el domU y no el kernel del dom0.

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});