Xen - DomU does not find hda driver

General support questions including new installations
Post Reply
Standbye
Posts: 1
Joined: 2006/09/28 09:20:40
Contact:

Xen - DomU does not find hda driver

Post by Standbye » 2008/04/01 15:39:19

Hi ,

perhaps here someone can help me with my current problem.

Im running a Centos 5.0 installation an dom0 and want to have a centos5 ans domU

The Problem that accours is that it does not find the disks needed.

[code]
(XENBUS: Device with no driver: device/vbd/768)
[/code]
That one is the hda driver.

my domU config
[code]
ame = "wuerzburg"
uuid = "4225996f-51ee-bd70-385f-9c275a3cd411"
maxmem = 500
memory = 500
disk = [ "phy:/dev/md1,hda,w" ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
vcpus = 1
kernel = "/boot/vmlinuz-2.6.18-53.1.14.el5xen"
ramdisk = "/boot/initrd-2.6.18-53.1.14.el5xen.img"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
root = "/dev/hda2"
vif = [ 'ip=78.47.51.234,mac=00:1D:92:63:43:48' ]
serial = "pty"
[/code]

Debug output from xend.log
[code]
2008-04-01 16:38:10 xend 3039] INFO (image:136) buildDomain os=linux dom=46 vcpus=1
[2008-04-01 16:38:10 xend 3039] DEBUG (image:201) domid = 46
[2008-04-01 16:38:10 xend 3039] DEBUG (image:202) memsize = 500
[2008-04-01 16:38:10 xend 3039] DEBUG (image:203) image = /boot/vmlinuz-2.6.18-53.1.14.el5xen
[2008-04-01 16:38:10 xend 3039] DEBUG (image:204) store_evtchn = 1
[2008-04-01 16:38:10 xend 3039] DEBUG (image:205) console_evtchn = 2
[2008-04-01 16:38:10 xend 3039] DEBUG (image:206) cmdline = root=/dev/hda2
[2008-04-01 16:38:10 xend 3039] DEBUG (image:207) ramdisk = /boot/initrd-2.6.18-53.1.14.el5xen.img
[2008-04-01 16:38:10 xend 3039] DEBUG (image:208) vcpus = 1
[2008-04-01 16:38:10 xend 3039] DEBUG (image:209) features =
[2008-04-01 16:38:10 xend 3039] DEBUG (DevController:110) DevController: writing {'mac': '00:1D:92:63:43:48', 'handle': '0', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/46/0'} to /local/domain/46/device/vif/0.
[2008-04-01 16:38:10 xend 3039] DEBUG (DevController:112) DevController: writing {'domain': 'wuerzburg', 'handle': '0', 'script': '/etc/xen/scripts/vif-route', 'ip': '78.47.51.234', 'state': '1', 'frontend': '/local/domain/46/device/vif/0', 'mac': '00:1D:92:63:43:48', 'online': '1', 'frontend-id': '46'} to /local/domain/0/backend/vif/46/0.
[2008-04-01 16:38:10 xend 3039] DEBUG (blkif:24) exception looking up device number for hda: [Errno 2] No such file or directory: '/dev/hda'
[2008-04-01 16:38:10 xend 3039] DEBUG (DevController:110) DevController: writing {'virtual-device': '768', 'device-type': 'disk', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/46/768'} to /local/domain/46/device/vbd/768.
[2008-04-01 16:38:10 xend 3039] DEBUG (DevController:112) DevController: writing {'domain': 'wuerzburg', 'frontend': '/local/domain/46/device/vbd/768', 'dev': 'hda', 'state': '1', 'params': '/dev/md1', 'mode': 'w', 'online': '1', 'frontend-id': '46', 'type': 'phy'} to /local/domain/0/backend/vbd/46/768.
[2008-04-01 16:38:10 xend.XendDomainInfo 3039] DEBUG (XendDomainInfo:756) Storing VM details: {'shadow_memory': '0', 'uuid': '4225996f-51ee-bd70-385f-9c275a3cd411', 'on_reboot': 'restart', 'start_time': '1207060690.9', 'on_poweroff': 'destroy', 'name': 'wuerzburg', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '500', 'on_crash': 'restart', 'image': '(linux (kernel /boot/vmlinuz-2.6.18-53.1.14.el5xen) (ramdisk /boot/initrd-2.6.18-53.1.14.el5xen.img) (root /dev/hda2))', 'maxmem': '500'}
[2008-04-01 16:38:10 xend.XendDomainInfo 3039] DEBUG (XendDomainInfo:791) Storing domain details: {'console/ring-ref': '1635470', 'console/port': '2', 'name': 'wuerzburg', 'console/limit': '1048576', 'vm': '/vm/4225996f-51ee-bd70-385f-9c275a3cd411', 'domid': '46', 'cpu/0/availability': 'online', 'memory/target': '512000', 'store/ring-ref': '1635471', 'store/port': '1'}
[/code]

and finaly the complete xen console output
[code]
Bootdata ok (command line is root=/dev/hda2)
^MLinux version 2.6.18-53.1.14.el5xen (mockbuild@builder6.centos.org) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Wed Mar 5 12:08:17 EST 2008
^MBIOS-provided physical RAM map:
^M Xen: 0000000000000000 - 000000001fc00000 (usable)
^MNo mptable found.
^MBuilt 1 zonelists. Total pages: 130048
^MKernel command line: root=/dev/hda2
^MInitializing CPU#0
^MPID hash table entries: 2048 (order: 11, 16384 bytes)
^MXen reported: 2999.962 MHz processor.
^MConsole: colour dummy device 80x25
^MDentry cache hash table entries: 65536 (order: 7, 524288 bytes)
^MInode-cache hash table entries: 32768 (order: 6, 262144 bytes)
^MSoftware IO TLB disabled
^MMemory: 490364k/520192k available (2358k kernel code, 20992k reserved, 1325k data, 172k init)
^MCalibrating delay using timer specific routine.. 7501.15 BogoMIPS (lpj=15002312)
^MSecurity Framework v1.0.0 initialized
^MSELinux: Initializing.
^Mselinux_register_security: Registering secondary module capability
^MCapability LSM initialized as secondary
^MMount-cache hash table entries: 256
^MCPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
^MCPU: L2 Cache: 1024K (64 bytes/line)
^MCPU: Physical Processor ID: 0
^MCPU: Processor Core ID: 1
^M(SMP-)alternatives turned off
^MBrought up 1 CPUs
^Mchecking if image is initramfs... it is
^MGrant table initialized
^MNET: Registered protocol family 16
^MACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread CB37A0 could not acquire Mutex [2] [20060707]
^MACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread CB37A0 could not acquire Mutex [2] [20060707]
^MBrought up 1 CPUs
^MPCI: setting up Xen PCI frontend stub
^MACPI: Interpreter disabled.
^MLinux Plug and Play Support v0.97 (c) Adam Belay
^Mpnp: PnP ACPI: disabled
^Mxen_mem: Initialising balloon driver.
^Musbcore: registered new driver usbfs
^Musbcore: registered new driver hub
^MPCI: System does not support PCI
^MPCI: System does not support PCI
^MNetLabel: Initializing
^MNetLabel: domain hash size = 128
^MNetLabel: protocols = UNLABELED CIPSOv4
^MNetLabel: unlabeled traffic allowed by default
^MNET: Registered protocol family 2
^MIP route cache hash table entries: 4096 (order: 3, 32768 bytes)
^MTCP established hash table entries: 16384 (order: 6, 262144 bytes)
^MTCP bind hash table entries: 8192 (order: 5, 131072 bytes)
^MTCP: Hash tables configured (established 16384 bind 8192)
^MTCP reno registered
^Maudit: initializing netlink socket (disabled)
^Maudit(1207061281.996:1): initialized
^MVFS: Disk quotas dquot_6.5.1
^MDquot-cache hash table entries: 512 (order 0, 4096 bytes)
^MInitializing Cryptographic API
^Mksign: Installing public key data
^MLoading keyring
^M- Added public key F8170EB5CF71EF90
^M- User ID: CentOS (Kernel Module GPG key)
^Mio scheduler noop registered
^Mio scheduler anticipatory registered
^Mio scheduler deadline registered
^Mio scheduler cfq registered (default)
^Mpci_hotplug: PCI Hot Plug PCI Core version: 0.5
^Mrtc: IRQ 8 is not free.
^MNon-volatile memory driver v1.2
^MLinux agpgart interface v0.101 (c) Dave Jones
^MRAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
^MXen virtual console successfully installed as xvc0
^MBootdata ok (command line is root=/dev/hda2)
^MLinux version 2.6.18-53.1.14.el5xen (mockbuild@builder6.centos.org) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Wed Mar 5 12:08:17 EST 2008
^MBIOS-provided physical RAM map:
^M Xen: 0000000000000000 - 000000001fc00000 (usable)
^MNo mptable found.
^MBuilt 1 zonelists. Total pages: 130048
^MKernel command line: root=/dev/hda2
^MInitializing CPU#0
^MPID hash table entries: 2048 (order: 11, 16384 bytes)
^MXen reported: 2999.962 MHz processor.
^MConsole: colour dummy device 80x25
^MDentry cache hash table entries: 65536 (order: 7, 524288 bytes)
^MInode-cache hash table entries: 32768 (order: 6, 262144 bytes)
^MSoftware IO TLB disabled
^MMemory: 490364k/520192k available (2358k kernel code, 20992k reserved, 1325k data, 172k init)
^MCalibrating delay using timer specific routine.. 7501.15 BogoMIPS (lpj=15002312)
^MSecurity Framework v1.0.0 initialized
^MSELinux: Initializing.
^Mselinux_register_security: Registering secondary module capability
^MCapability LSM initialized as secondary
^MMount-cache hash table entries: 256
^MCPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
^MCPU: L2 Cache: 1024K (64 bytes/line)
^MCPU: Physical Processor ID: 0
^MCPU: Processor Core ID: 1
^M(SMP-)alternatives turned off
^MBrought up 1 CPUs
^Mchecking if image is initramfs... it is
^MGrant table initialized
^MNET: Registered protocol family 16
^MACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread CB37A0 could not acquire Mutex [2] [20060707]
^MACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread CB37A0 could not acquire Mutex [2] [20060707]
^MBrought up 1 CPUs
^MPCI: setting up Xen PCI frontend stub
^MACPI: Interpreter disabled.
^MLinux Plug and Play Support v0.97 (c) Adam Belay
^Mpnp: PnP ACPI: disabled
^Mxen_mem: Initialising balloon driver.
^Musbcore: registered new driver usbfs
^Musbcore: registered new driver hub
^MPCI: System does not support PCI
^MPCI: System does not support PCI
^MNetLabel: Initializing
^MNetLabel: domain hash size = 128
^MNetLabel: protocols = UNLABELED CIPSOv4
^MNetLabel: unlabeled traffic allowed by default
^MNET: Registered protocol family 2
^MIP route cache hash table entries: 4096 (order: 3, 32768 bytes)
^MTCP established hash table entries: 16384 (order: 6, 262144 bytes)
^MTCP bind hash table entries: 8192 (order: 5, 131072 bytes)
^MTCP: Hash tables configured (established 16384 bind 8192)
^MTCP reno registered
^Maudit: initializing netlink socket (disabled)
^Maudit(1207061281.996:1): initialized
^MVFS: Disk quotas dquot_6.5.1
^MDquot-cache hash table entries: 512 (order 0, 4096 bytes)
^MInitializing Cryptographic API
^Mksign: Installing public key data
^MLoading keyring
^M- Added public key F8170EB5CF71EF90
^M- User ID: CentOS (Kernel Module GPG key)
^Mio scheduler noop registered
^Mio scheduler anticipatory registered
^Mio scheduler deadline registered
^Mio scheduler cfq registered (default)
^Mpci_hotplug: PCI Hot Plug PCI Core version: 0.5
^Mrtc: IRQ 8 is not free.
^MNon-volatile memory driver v1.2
^MLinux agpgart interface v0.101 (c) Dave Jones
^MRAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
^MXen virtual console successfully installed as xvc0
^MEvent-channel device installed.
^MUniform Multi-Platform E-IDE driver Revision: 7.00alpha2
^Mide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
^Mide-floppy driver 0.99.newide
^Musbcore: registered new driver hiddev
^Musbcore: registered new driver usbhid
^Mdrivers/usb/input/hid-core.c: v2.6:USB HID core driver
^MPNP: No PS/2 controller found. Probing ports directly.
^Mi8042.c: No controller found.
^Mmice: PS/2 mouse device common for all mice
^Mmd: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
^Mmd: bitmap version 4.39
^MTCP bic registered
^MInitializing IPsec netlink socket
^MNET: Registered protocol family 1
^MNET: Registered protocol family 17
^MXENBUS: Device with no driver: device/vbd/768
^MXENBUS: Device with no driver: device/vif/0
^MWrite protecting the kernel read-only data: 445k
^MRed Hat nash version 5.1.19.6 starting
ounting proc filesystem
ounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading uhci-hcd.ko module
USB Universal Host Controller Interface driver v3.0
^MLoading ohci-hcd.ko module
Loading ehci-hcd.ko module
Loading jbd.ko module
Loading ext3.ko module
Loading raid1.ko module
md: raid1 personality registered for level 1
^MLoading scsi_mod.ko module
SCSI subsystem initialized
^MLoading sd_mod.ko module
Loading libata.ko module
Loading ahci.ko module
Waiting for driver initialization.

Scanning and configuring dmraid supported devices
md: Autodetecting RAID arrays.
^Mmd: autorun ...
^Mmd: ... autorun DONE.
^MCreating root device.
ounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
[/code]

The thing to know is that /dev/m1 has serveral partitions in it
[code]
Device Boot Start End Blocks Id System
/dev/md1p1 * 1 25 200781 83 Linux
/dev/md1p2 26 1300 10241437+ 83 Linux
/dev/md1p3 1301 1937 5116702+ 83 Linux
/dev/md1p4 1938 3647 13735575 5 Extended
/dev/md1p5 1938 2329 3148708+ 82 Linux swap / Solaris
/dev/md1p6 2330 2590 2096451 83 Linux
/dev/md1p7 2591 3647 8490321 83 Linux
[/code]
md1p2 should be mountet as hda2 (the root partition)

It would be nice to get some hints what could cause that problem as im out of ideas.
thanks in advance
peter

cormander
Posts: 100
Joined: 2005/05/16 21:27:57
Location: Utah
Contact:

Xen - DomU does not find hda driver

Post by cormander » 2008/04/18 06:26:53

What is the output of "cat /etc/fstab" and "df" on the dom0 server?

jkfritcher
Posts: 1
Joined: 2008/04/21 01:28:47

Re: Xen - DomU does not find hda driver

Post by jkfritcher » 2008/04/21 01:31:35

Change the following line in your domU config...

disk = [ "phy:/dev/md1,hda,w" ]

to be like so...

disk = [ "phy:/dev/md1,xvda,w" ]

I ran into this problem recently as well and changing to xvda solved my disk problems.

Post Reply

Return to “CentOS 5 - General Support”