[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] Dom U stuck at boot time- centos.5-2 domU image on RHEL5 dom0!


  • To: "'Fajar A. Nugraha'" <fajar@xxxxxxxxx>, "'Xen Users'" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Ata E Husain Bohra" <aehusain@xxxxxxxxxxx>
  • Date: Mon, 20 Apr 2009 14:20:48 -0700
  • Cc:
  • Delivery-date: Mon, 20 Apr 2009 11:23:36 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcnBf/TeSPl1Qu68QiqEZP3Y+kIaUAAdWjZA

Dear Fajar, 

I tried your suggestion, but there are more interesting observations. If I
edit my config file to include extra ="3 xencons=tty", the domU still hangs
and this time the debug messages are:
-------------------------------------------------
Using config file "./centos.5-2.xen3.cfg".
Started domain centos.5-2
Bootdata ok (command line is  root=/dev/sda1 ro 3 xencons=tty)
Linux version 2.6.18-128.1.6.el5xen (mockbuild@xxxxxxxxxxxxxxxxxxxxxxxxxxxx)
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Tue Mar 24 12:28:27
EDT 2009
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000010800000 (usable)
No mptable found.
Built 1 zonelists.  Total pages: 67584
Kernel command line:  root=/dev/sda1 ro 3 xencons=tty
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 16384 bytes)
Xen reported: 2613.388 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Software IO TLB disabled
Memory: 242476k/270336k available (2447k kernel code, 19356k reserved, 1366k
data, 180k init)
Calibrating delay using timer specific routine.. 6536.19 BogoMIPS
(lpj=13072393)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
(SMP-)alternatives turned off
Brought up 1 CPUs
checking if image is initramfs... it is
Grant table initialized
NET: Registered protocol family 16
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1F7A0 could not
acquire Mutex [2] [20060707]
No dock devices found.
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1F7A0 could not
acquire Mutex [2] [20060707]
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
TCP established hash table entries: 16384 (order: 6, 262144 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1240248153.098:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 369DB9F7335D033D
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
WARNING: Failed to register Xen virtual console driver as 'tty1'
Event-channel device installed.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
XENBUS: Device with no driver: device/vbd/2049
XENBUS: Device with no driver: device/vbd/2050
XENBUS: Device with no driver: device/vif/0
Write protecting the kernel read-only data: 467k
Registering block device major 8
USB Universal Host Controller Interface driver v3.0
SCSI subsystem initialized
register_blkdev: cannot get major 8 for sd
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised:
dm-devel@xxxxxxxxxx
device-mapper: dm-raid45: initialized v0.2429
netfront: Initialising virtual ethernet driver.
netfront: device eth0 has flipping receive path.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
md: stopping all md devices.
System halted.
[root@steelbug centos]# mount -o loop centos.5-2.img /tmp/
[root@steelbug centos]# vi /tmp/etc/inittab 
[root@steelbug centos]# 
[root@steelbug centos]# umount /tmp/
[root@steelbug centos]# xm create -c centos.5-2.xen3.cfg vmid=1
Using config file "./centos.5-2.xen3.cfg".
Started domain centos.5-2
Bootdata ok (command line is  root=/dev/sda1 ro 3 xencons=tty)
Linux version 2.6.18-128.1.6.el5xen (mockbuild@xxxxxxxxxxxxxxxxxxxxxxxxxxxx)
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Tue Mar 24 12:28:27
EDT 2009
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000010800000 (usable)
No mptable found.
Built 1 zonelists.  Total pages: 67584
Kernel command line:  root=/dev/sda1 ro 3 xencons=tty
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 16384 bytes)
Xen reported: 2613.388 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Software IO TLB disabled
Memory: 242476k/270336k available (2447k kernel code, 19356k reserved, 1366k
data, 180k init)
Calibrating delay using timer specific routine.. 6536.22 BogoMIPS
(lpj=13072456)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
(SMP-)alternatives turned off
Brought up 1 CPUs
checking if image is initramfs... it is
Grant table initialized
NET: Registered protocol family 16
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1F7A0 could not
acquire Mutex [2] [20060707]
No dock devices found.
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 1F7A0 could not
acquire Mutex [2] [20060707]
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
TCP established hash table entries: 16384 (order: 6, 262144 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1240248370.103:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 369DB9F7335D033D
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
WARNING: Failed to register Xen virtual console driver as 'tty1'
Event-channel device installed.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
XENBUS: Device with no driver: device/vbd/2049
XENBUS: Device with no driver: device/vbd/2050
XENBUS: Device with no driver: device/vif/0
Write protecting the kernel read-only data: 467k
Registering block device major 8
USB Universal Host Controller Interface driver v3.0
SCSI subsystem initialized
register_blkdev: cannot get major 8 for sd
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised:
dm-devel@xxxxxxxxxx
device-mapper: dm-raid45: initialized v0.2429
netfront: Initialising virtual ethernet driver.
netfront: device eth0 has flipping receive path.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
------------------------------------------------------

Then I tried to google more and found a web link which was about centos (but
worked for ubuntu too), 

http://www.howtoforge.com/create-centos5.2-domu-on-ubuntu-hardy-dom0 

It instructs to edit the initab (event.d/tty1 in ubuntu) to make runlevel1
thread to respwan with argument as "console" than "tty1". I also had to
remove 
"extra" argument from the xen config file. With these two changes I am able
to get to the login prompt. 

Please share if there is a reason for this behavior.

Thanks!
Ata 

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Fajar A. Nugraha
Sent: Sunday, April 19, 2009 11:19 PM
To: Xen Users
Subject: Re: [Xen-users] Dom U stuck at boot time- centos.5-2 domU image on
RHEL5 dom0!

On Mon, Apr 20, 2009 at 11:08 AM, Ata E Husain Bohra
<aehusain@xxxxxxxxxxx> wrote:
> Dear All,
>
> I am facing an issue while the startup of a domU centos5-2 image obtained
> from jailtime.org on RHEL dom0 system.
> Initially there were problems locating the root file system and then I did
a
> mkinitrd with xennet and xenblk option and changed the ramdisk in xen
config
> file. With this addition I was able to get rid of the kernel panic error,
> but now the system freezes after initializing service 'sshd', below is the
> log at the boot time:

> Starting sshd: [  OK  ]

My guess is domU is already started. You just didn't see the login screen.

>
> My xen configuration file is as below:
> kernel = "/boot/vmlinuz-2.6.18-128.1.6.el5xen"
> ramdisk = "../initrd-2.6.18-128.1.6.el5xen.img"
> memory = 256
> name = "centos.5-2"
> vif = [ 'bridge=xenbr0' ]
> dhcp = "off"
> disk = ['file:/root/images/centos/centos.5-2.img,sda1,w']
> root = "/dev/sda1 ro"
>
> I have tried to google solution for this problem, but no luck till this
> moment. Please suggest me what can be done to boot up by domU kernel.

There are some alternatives to fix it. My perefered method would be to
setup domU correctly to display login screen an allow root to login
from xvc0 (which is where the console is. See the boot log). It
requires some modifications to several files.

Other people like to simply add
extra ="3 xencons=tty"
to domU config line.

See the list archive:
http://www.nabble.com/xm-console-hanging-td22906416.html

Regards,

Fajar

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.