WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: AW: [Xen-users] DomU freezes during boot

To: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Subject: Re: AW: [Xen-users] DomU freezes during boot
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Mon, 30 Mar 2009 21:12:25 -0700 (PDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 30 Mar 2009 21:13:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238472745; bh=jmsRXcFe8to3nsmEj7YxBPr82S8tGiGrDhhP++kYMZ0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=UWzmraO2s5UVBiv05ZcFdh6lkDOFCERk1lOeOHDjTEDU6AZB1Tn4PdqRrmwJqG+VZCxFXR6aQzl7KRhiWaUOXJCy5y7qjSfKxZPEfxkaLA9BjrRGJ+FxinZUY4f0j2YdOp/Zztjinvpnhi+jxHCaOPne0AohvYD8m7x32gnpqa8=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=blELhGSSnfKGmlQgDR3fc64hr0QdOLRPXxyx0gssrcdQF5+E9ScoPIFTdOtKHXOC/KMoNmQ0fj8nRuO+YPF4AsLEAfxMohcXchQt9TbPJMZ+xKt11KCwCC+gp2CZ2IvxCeILjQe2UW7mQcJHZUQcb+U4Z/vGI16EyZEwht36sAY=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49D159F0.5040009@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bderzhavets@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
List works pretty slow.

Actually , you try to install CentOS 5.2 PV DomU at CentOS 5.2 Dom0.
I would guess you upgraded Hypervisor via http://gitco.de prepared rpms.

It's due to :-
# xm info
. . . . .
cc_compile_domain      : labor.lan
. . . . .

Sasha's Gunter domain for xen builds
Hence,  you should have virt-install handy and missing virt-manger
without gitco's support.
I suspect, that xen-tools & rinse install has not created proper image.

   Following bellow is RH's approved standard installation procedure :-

Insert your CentOS 5 DVD in the drive. Run "df -h" to find out what mount point is.  Suppose, it is /dev/hde

# dd if=/dev/hde of=/etc/xen/disks/CentOS5.iso
# dd if=/dev/zero of=/etc/xen/images/CentOS5.img  bs=1024k count=12000
# mkdir  -p /mnt/tmp
# mount -o loop,ro   /etc/xen/disks/CentOS5.iso    /mnt/tmp

Edit /etc/exports and add the line:-
/mnt/tmp
Restart Service "nfsd"

# virt-install -n CentOS5PV -r 1024  -p  -f /etc/xen/images/CentOS5.img \
      -l   nfs:IP-Dom0:/mnt/tmp

or

1.To install your CentOS 5 DomU , at the command prompt type: virt-install.

2.When asked to install a fully virtualized guest, type: no.
3.Type CentOS5PV for your virtual machine name.
4.Type 1000 for your RAM allocation.
5.Type /etc/xen/images/CentOS5.img for your disk (guest image).
6.Type 12000 for the size of your disk (guest image).
7.Type yes to enable graphics support.
8.Type nfs:<IP address of Dom0>:/mnt/tmp for your install location.
The installation begins. Proceed as normal with the installation

Instead of image file , you can use " -f  /dev/sda(X)"  or
5.Type /dev/sda(X)  for your disk (guest image).

When virt-install completed.
# xm list

Domain-0    8000   . . . .  .
CentO5PV   1024   . . . . .

# xm start CentOS5PV
Check
# netstat -a | grep 590
In  case of grapical install (by default)
# vncviewer localhost:0
will connect you to DomU, otherwise
# xm console CentOS5PV
will provide text console

Information above has been moderated at LXER about 1.5 years ago.
View:-

  http://lxer.com/module/newswire/view/95262/index.html

Personally , i performed 20-25 such kind of virt-installs ( after gitco's
 Hypervisor upgrade) with no problems.
Should you have any problems with virt-install, please , let me know.

Boris.

--- On Mon, 3/30/09, Andrew Kilham <andrew@xxxxxxxxxxxxxx> wrote:
From: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Subject: Re: AW: [Xen-users] DomU freezes during boot
To: bderzhavets@xxxxxxxxx
Cc: "Carsten Schiers" <carsten@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Date: Monday, March 30, 2009, 7:46 PM

Hi,

Here is 'xm info':

[root@localhost ~]# xm info
host                   : localhost.localdomain
release                : 2.6.18-92.1.22.el5xen
version                : #1 SMP Tue Dec 16 12:26:32 EST 2008
machine                : x86_64
nr_cpus                : 4
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 1
cpu_mhz                : 2833
hw_caps                : bfebfbff:20100800:00000000:00000140:0408e3fd:00000000:00000001:00000000
virt_caps              : hvm
total_memory           : 8190
free_memory            : 128
node_to_cpu            : node0:0-3
node_to_memory         : node0:128
xen_major              : 3
xen_minor              : 3
xen_extra              : .0
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
cc_compile_by          : root
cc_compile_domain      : labor.lan
cc_compile_date        : Tue Sep  9 20:18:14 CEST 2008
xend_config_format     : 4

And here is test4.cfg:

[root@localhost ~]# cat /etc/xen/test4.cfg
#
# Configuration file for the Xen instance test4, created
# by xen-tools 4.1 on Tue Mar 31 02:30:20 2009.
#

#
#  Kernel + memory size
#
kernel      = '/boot/vmlinuz-2.6.18-92.1.22.el5xen'
#ramdisk     = '/boot/initrd.img-2.6.18-92.1.22.el5xen'
ramdisk = '/boot/initrd-2.6.18-92.1.22.el5xen-xenblk.img'

memory      = '512'

#
#  Disk device(s).
#
root        = '/dev/sda2 ro'
disk        = [
                  'file:/vm/domains/test4/disk.img,sda2,w',
                  'file:/vm/domains/test4/swap.img,sda1,w',
              ]





extra = '1'
#extra = 'xencons=tty'

#
#  Physical volumes
#



#
#  Hostname
#
name        = 'test4'

#
#  Networking
#
vif         = [ 'ip=10.0.0.84,mac=00:16:3E:98:19:66' ]

#
#  Behaviour
#

on_reboot   = 'restart'
on_crash    = 'restart'

Cheers,

Andrew



Boris Derzhavets wrote:
Could you post
1. test4.cfg
2. xm info (at Dom0)

--- On Mon, 3/30/09, Andrew Kilham <andrew@xxxxxxxxxxxxxx> wrote:
From: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Subject: Re: AW: [Xen-users] DomU freezes during boot
To: "Carsten Schiers" <carsten@xxxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Monday, March 30, 2009, 8:30 AM

Hi,

I have put that line in to the config file but now it freezes even before it starts to boot the OS. Here is the complete output after running xm create with "extra = 'xencons=tty'" in my config file:

[root@localhost vm]# xm create -c test4.cfg
Using config file "/etc/xen/test4.cfg".
Started domain test4
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/2050
XENBUS: Device with no driver: device/vbd/2049
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
Write protecting the kernel read-only data: 461k
Registering block device major 8
USB Universal Host Controller Interface driver v3.0
SCSI subsystem initialized
register_blkdev: cannot get major 8 for sd
Fusion MPT base driver 3.04.05
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.05
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.
However, an update: I just tried booting it in to different run-levels using the 'extra' command in the config file, and it will boot in to run-level 1 but nothing higher. Still nothing in the log files or anything though.

Cheers,

Andrew


Carsten Schiers wrote:
Hi,

Xen virtual console successfully installed as xvc0
Try to boot with extre='xencons=tty' in config file or xencons=tty in
kernel line when using pygrub.

BR,
Carsten.

----- Originalnachricht -----
Von: Andrew Kilham <andrew@xxxxxxxxxxxxxx>
Gesendet: Mon, 30.3.2009 14:03
An: xen-users@xxxxxxxxxxxxxxxxxxx
Betreff: [Xen-users] DomU freezes during boot

Hi,

I am trying to boot a freshly installed DomU (using xen-tools and rinse)
of CentOS 5 64bit. It starts booting the operating system but it freezes
every time after starting SSH:

INIT: version 2.86 booting
Welcome to CentOS release 5.2 (Final)
Press 'I' to enter interactive startup.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access
method.
Setting clock : Mon Mar 30 15:59:11 EDT 2009 [ OK ]
Starting udev: [ OK ]
Setting hostname test4: [ OK ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sda2
/dev/sda2: clean, 17060/655360 files, 174903/1310720 blocks
[ OK ]
Remounting root filesystem in read-write mode: [ OK ]
Mounting local filesystems: [ OK ]
Enabling /etc/fstab swaps: [ OK ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Mounting other filesystems: [ OK ]
Starting sshd: [ OK ]

Nothing comes up, it just stops there. I have tried mounting the HDD 
image of the domU on my host to access the log files but there does not
appear to be anything of use. This is the dmesg log file on the domU:

Bootdata ok (command line is root=/dev/sda2 ro )
Linux version 2.6.18-92.1.22.el5xen (mockbuild@xxxxxxxxxxxxxxxxxxxx)
(gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Dec 16
12:26:32 EST 2008
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000020800000 (usable)
On node 0 totalpages: 133120
DMA zone: 133120 pages, LIFO batch:31
No mptable found.
Built 1 zonelists. Total pages: 133120
Kernel command line: root=/dev/sda2 ro
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Xen reported: 2833.530 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Software IO TLB disabled
Memory: 500992k/532480k available
(2418k kernel code, 22768k reserved,
1353k data, 176k init)
Calibrating delay using timer specific routine.. 7087.48 BogoMIPS
(lpj=14174967)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
, L1 D cache: 32K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
(SMP-)alternatives turned off
Brought up 1 CPUs
sizeof(vma)=168 bytes
sizeof(page)=56 bytes
sizeof(inode)=560 bytes
sizeof(dentry)=216 bytes
sizeof(ext3inode)=760 bytes
sizeof(buffer_head)=96 bytes
sizeof(skbuff)=240 bytes
checking if image is initramfs... it is
Grant table initialized
NET: Registered protocol family 16
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 127A0 could
not acquire Mutex [2]
[20060707]
No dock devices found.
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread 127A0 could
not acquire Mutex [2] [20060707]
Brought up 1 CPUs
PCI: Fatal: No PCI config space access function found
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: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576
bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1238443140.218:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 6D65AF37871D9CBE
- User ID: CentOS (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
Xen virtual console successfully installed as xvc0
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
Probing IDE interface ide0...
Probing IDE interface ide1...
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
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/2050
XENBUS: Device with no driver:
device/vbd/2049
XENBUS: Device with no driver: device/vif/0
XENBUS: Device with no driver: device/console/0
Write protecting the kernel read-only data: 461k
Registering block device major 8
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
SCSI subsystem initialized
register_blkdev: cannot get major 8 for sd
Fusion MPT base driver 3.04.05
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SAS Host driver 3.04.05
libata version 3.00 loaded.
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.
input: PC Speaker as /class/input/input0
Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is unknown type 15
(usb?)
Failed to obtain physical IRQ 6
floppy0: no floppy controllers
found
lp: driver loaded but no devices found
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised:
dm-devel@xxxxxxxxxx
EXT3 FS on sda2, internal journal
Adding 131064k swap on /dev/sda1. Priority:-1 extents:1 across:131064k
I can't recognise any serious errors in there. Could someone please help me?

Cheers,

Andrew



_______________________________________________
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



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.11.31/2029 - Release Date: 03/29/09 16:56:00

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




No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.11.31/2029 - Release Date: 03/29/09 16:56:00

_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>