Hello!

A kerdojel azert van, mert nem biztos, hogy a xen a ludas. :)

Volt egy virtualszerver, amin etch futott, xen-nel, rajta par domU. i386.
Ment is, de lett uj vas, lenny-s. Tegnap attettem az etch-es domU-kat ra.

Nem indulnak el, segfaultolnak. De mountolva nem is tudok belechrootolni
a domU-k rootjaba (Illegal instructions).

Ma reggel nezegettem: igen erdekes jelenseget figyeltem meg. 

Teljesen szuz rendszerrel kezdek:

lvcreate, mkfs.ext3, mount
lenny-s root-ot tar xf oda
utana:

# chroot /mnt/ahova/ /bin/bash
# exit
ez jo.
umount.

Na most:

===========================================================================
root@virtual:~# xm create -c /etc/xen/test.cfg

[...]
INIT: version 2.86 booting
[    2.677760] init[1]: segfault at 7fffb447a110 ip 7fffb447a110 sp 
7fffb4479f78 error 15
[    2.713726] init[1]: segfault at 0 ip 7f3e24211ff1 sp 7fffb4479618 error 6 
in 
libc-2.7.so[7f3e24195000+14a000]
[    2.714073] Kernel panic - not syncing: Attempted to kill init!
===========================================================================

Ez nem jo, de:
xm shu, ujra mount vissza az LV-t es:

# chroot /mnt/hd/ /bin/bash
[semmi]

lsof alapjan megnezem a pidet es:

# strace -p PID
[...]
rt_sigreturn(0xb)                       = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0xb)                       = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0xb)                       = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0xb)                       = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigreturn(0xb)                       = 0
[...]

Reprodukalhato.

A config:

===========================================================================
name = "x"
kernel  = '/boot/vmlinuz-2.6.26-2-xen-amd64'
ramdisk = '/boot/initrd.img-2.6.26-2-xen-amd64'

memory = 384
root = "/dev/sda1 ro"
disk = [ 'phy:/dev/new/xper,sda1,w', 'phy:/dev/new/xswap,sda2,w', 
'phy:/dev/newbu/xbu,sdc1,w' ]
vif = [ 'ip=10.0.0.7, mac=00:16:3e:aa:aa:07' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
extra='xencons=tty'
===========================================================================

A xen elrontja a lenny-s rootfs-t?
Valakinek van otlete?

# dpkg -l | grep xen
ii  libxenstore3.0                      3.2.1-2                  Xenstore 
communications library for Xen
ii  linux-image-2.6.26-2-xen-amd64      2.6.26-26lenny1          Linux 2.6.26 
image on AMD64, oldstyle Xen support
ii  linux-modules-2.6.26-2-xen-amd64    2.6.26-26lenny1          Linux 2.6.26 
modules on AMD64
ii  xen-hypervisor-3.2-1-amd64          3.2.1-2                  The Xen 
Hypervisor on AMD64
ii  xen-linux-system-2.6.26-2-xen-amd64 2.6.26-26lenny1          XEN system 
with Linux 2.6.26 image on AMD64
ii  xen-shell                           1.8-3                    Console based 
Xen administration utility
ii  xen-tools                           3.9-4+lenny1             Tools to 
manage Debian XEN virtual servers
ii  xen-utils-3.2-1                     3.2.1-2                  XEN 
administrative tools
ii  xen-utils-common                    3.2.0-2                  XEN 
administrative tools - common files
ii  xenstore-utils                      3.2.1-2                  Xenstore 
utilities for Xen


Ja, tegnap, miutan nem ment semmi, az egyetlen fontosat megcsinaltam.
Ugyan ugy, ahogy a fentit, csak azt sikerult... :)

Mit nem veszek eszre? 4 domU megy a vason, tuti, hogy valami banalis dolog.

TIA!

-- 
Udv:
Erdelyi Gabor
_________________________________________________
linux lista      -      linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz