[Pkg-xen-devel] tap:aio support Xen Debian lenny

Andrey basketboy at bk.ru
Thu Jan 29 07:59:33 UTC 2009


Hello,


I installed Xen 3.2.1 on Debian Lenny from packages. Then created image 
files with 'xen-create-image --size=2Gb --swap=128Mb --dhcp --dir=/xen 
--hostname=test'. Now I'm trying to run Debian in PV mode using the 
following configuration file:

kernel = "/boot/vmlinuz-2.6.26-1-xen-686"
ramdisk = "/boot/initrd.img-2.6.26-1-xen-686"
memory = 128
name = "test"
vif = [ '' ]
dhcp = "dhcp"

disk = ['tap:aio:/xen/domains/test/disk.img,xvda1,w', 
'tap:aio:/xen/domains/test/swap.img,xvda2,w']

root = "/dev/xvda1 ro"
extras = 'console=xvc0'

And get the running process to hang on disk initalization stage:


Started domain test
[    0.004000]       .init : 0xc038d000 - 0xc03be000   ( 196 kB)
[    0.004000]       .data : 0xc02ccd00 - 0xc03858a0   ( 738 kB)
[    0.004000]       .text : 0xc0100000 - 0xc02ccd00   (1843 kB)

[ 0.004000] Checking if this processor honours the WP bit even in 
supervisor mode...Ok. [ 0.664057] Calibrating delay using timer specific 
routine.. 6008.09 BogoMIPS (lpj=12016199)

[    0.664095] Security Framework initialized
[    0.664107] SELinux:  Disabled at boot.
[    0.664113] Capability LSM initialized
[    0.664126] Mount-cache hash table entries: 512
[    0.664236] Initializing cgroup subsys ns
[    0.664245] Initializing cgroup subsys cpuacct
[    0.664250] Initializing cgroup subsys devices
[    0.664275] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.664283] CPU: L2 cache: 6144K
[    0.664296] Checking 'hlt' instruction... OK.
[    0.664655] SMP alternatives: switching to UP code
[    0.679036] Freeing SMP alternatives: 16k freed
[    0.679124] Brought up 1 CPUs
[    0.681279] net_namespace: 660 bytes
[    0.681429] NET: Registered protocol family 16
[    0.682443] Brought up 1 CPUs
[    0.682457] PCI: Fatal: No config space access function found
[    0.682462] PCI: setting up Xen PCI frontend stub
[    0.683020] ACPI: Interpreter disabled.
[    0.683027] Linux Plug and Play Support v0.97 (c) Adam Belay
[    0.683056] pnp: PnP ACPI: disabled
[    0.683256] suspend: event channel 7
[    0.683751] xen_mem: Initialising balloon driver.
[    0.685129] PCI: System does not support PCI
[    0.685135] PCI: System does not support PCI
[    0.685528] NET: Registered protocol family 2

[ 0.685597] IP route cache hash table entries: 2048 (order: 1, 8192 
bytes) [ 0.685747] TCP established hash table entries: 8192 (order: 4, 
65536 bytes)

[    0.685778] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.685807] TCP: Hash tables configured (established 8192 bind 8192)
[    0.685813] TCP reno registered
[    0.685860] NET: Registered protocol family 1
[    0.685944] checking if image is initramfs... it is
[    0.697821] Freeing initrd memory: 8612k freed

[ 0.697994] platform rtc_cmos: registered platform RTC device (no PNP 
device found)

[    0.698254] audit: initializing netlink socket (disabled)
[    0.698270] type=2000 audit(1230294161.711:1): initialized
[    0.698396] VFS: Disk quotas dquot_6.5.1
[    0.698420] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.698445] msgmni has been set to 272

[ 0.698523] Block layer SCSI generic (bsg) driver version 0.4 loaded 
(major 253)

[    0.698532] io scheduler noop registered
[    0.698536] io scheduler anticipatory registered
[    0.698540] io scheduler deadline registered
[    0.698550] io scheduler cfq registered (default)

[ 0.700553] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ 
sharing enabled

[    0.701775] brd: module loaded
[    0.701828] Xen virtual console successfully installed as hvc0
[    0.701862] Event-channel device installed.
[    0.710259] netfront: Initialising virtual ethernet driver.
[    0.710962] PNP: No PS/2 controller found. Probing ports directly.
[    0.711784] i8042.c: No controller found.
[    0.711867] mice: PS/2 mouse device common for all mice
[    0.712016] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.712031] No iBFT detected.
[    0.712031] TCP cubic registered
[    0.712031] NET: Registered protocol family 17
[    0.712031] Using IPI No-Shortcut mode
[    0.712164] registered taskstats version 1

[ 5.812197] XENBUS: Waiting for devices to initialise: 295s...290s...285s...

Also I created a few HVM domUs with FreeBSD and Windows and everything 
was fine with tap:aio driver. xend.log does not contain any error messages.

When I change tap:aio to file: PV domU is loaded fine. But I want to load


Where is the problem? I guess something is wrong with blktap driver in 
dom0 kernel?

Also I've noticed in syslog.log error messages about blktapctrl:

Dec 26 12:45:49 vps-main BLKTAPCTRL[24550]: Found driver: [raw image (aio)]
Dec 26 12:45:49 vps-main BLKTAPCTRL[24550]: Found driver: [raw image (sync)]

Dec 26 12:45:49 vps-main BLKTAPCTRL[24550]: Found driver: [vmware image 
(vmdk)] Dec 26 12:45:49 vps-main BLKTAPCTRL[24550]: Found driver: 
[ramdisk image (ram)]

Dec 26 12:45:49 vps-main BLKTAPCTRL[24550]: Found driver: [qcow disk (qcow)]

Dec 26 12:45:49 vps-main BLKTAPCTRL[24550]: couldn't find device number 
for 'blktap0'

Dec 26 12:45:49 vps-main BLKTAPCTRL[24550]: Unable to start blktapctrl


I sucesfully load xenblktap manually with modprobe, restart xend but 
with any luck about tap:aio hanging in domU. xm block-attach is also not 
working.

Can anyone help please to solve this issue? Is tap:aio supported on 
Debian Lenny?

With regards, Andrey



More information about the Pkg-xen-devel mailing list