[opensuse-virtual] help launching a Centos 5.5 Xen PV guest on an OpenSuse 11.2 Dom0 host ?
i've Opensuse 11.2 Xen Dom0, lsb_release -dr Description: openSUSE 11.2 (x86_64) Release: 11.2 uname -a Linux server 2.6.34-42-xen #1 SMP 2010-06-01 15:17:00 +0200 x86_64 x86_64 x86_64 GNU/Linux rpm -qa | grep -i xen xen-libs-4.0.0_21087_01-38.1.x86_64 kernel-xen-devel-2.6.34-42.1.x86_64 xen-tools-4.0.0_21087_01-38.1.x86_64 kernel-xen-2.6.34-42.1.x86_64 xen-4.0.0_21087_01-38.1.x86_64 I build & run numerous OpenSuse DomUs -- no issues. I need to netinstall a Centos 5.5 PV'd DomU Guest on this host. Using the procedure & config below, it starts to boot -- then hangs, with not much useful debugging info ... at least, not to my eye, where/how I'm looking. If someone could once-over the following, and make any suggestions/hints as to what's up, it'd be appreciated! Here's the current step-by-step: lvcreate -n vm_boot -L 160M /dev/VG0 lvcreate -n vm_swap -L 512M /dev/VG0 lvcreate -n vm_root -L 8G /dev/VG0 mkdir -p /home/xen/centos55/xenboot/ setenv DL "http://mirrors.kernel.org/centos/5.5" cd /home/xen/centos55 wget $DL/isos/x86_64/CentOS-5.5-x86_64-netinstall.iso cd ./xenboot/ wget $DL/os/x86_64/images/xen/initrd.img wget $DL/os/x86_64/images/xen/vmlinuz vi /home/xen/centos_install.cfg --------------------------------------------- name = 'centos' builder = 'linux' kernel = "/home/xen/centos55/xenboot/vmlinuz" ramdisk = "/home/xen/centos55/xenboot/initrd.img" disk = [ 'phy:/dev/VG0/vm_boot,xvda,w', 'phy:/dev/VG0/vm_swap,xvdb,w', 'phy:/dev/VG0/vm_root,xvdc,w', 'file:/home/xen/centos55/CentOS-5.5-x86_64-netinstall.iso,hdc:cdrom,r', ] boot = 'd' vif = [ 'mac=00:16:3E:01:06:00, bridge=brA, vifname=vif.A' ] vfb = [ 'type=vnc, vncdisplay=106, vnclisten=127.0.0.1' ] extra = 'textmode=1 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles bootproto=static ip=192.168.1.155 gateway=192.168.1.1 nameserver=192.168.1.1 method=http://mirrors.kernel.org/centos/5.5/os/x86_64' maxmem = 1024 memory = 1024 vcpus = 4 cpu_cap = 100 cpu_weight = 256 localtime = 0 netif = 'yes' on_shutdown = 'destroy' on_reboot = 'restart' on_crash = 'destroy' --------------------------------------------- @ xm create -c /home/xen/centos_install.cfg starts ok, but then hangs, --------------------------------------------- Using config file "/home/xen/centos_install.cfg". Started domain centos (id=5) Bootdata ok (command line is textmode=1 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles bootproto=static ip=192.168.1.155 gateway=192.168.1.1 nameserver=192.168.1.1 method=http://mirrors.kernel.org/centos/5.5/os/x86_64) Linux version 2.6.18-194.el5xen (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 15:34:40 EDT 2010 ... XENBUS: Device with no driver: device/vif/1 XENBUS: Device with no driver: device/vif/2 XENBUS: Device with no driver: device/vif/3 XENBUS: Device with no driver: device/console/0 Initalizing network drop monitor service Write protecting the kernel read-only data: 483k ( ... HANGS HERE ...) --------------------------------------------- and, tail -f /var/logl/xen/* --------------------------------------------- ... [2010-06-02 19:46:17 4832] DEBUG (DevController:653) hotplugStatusCallback /local/domain/0/backend/vbd/5/51744/hotplug-status. [2010-06-02 19:46:17 4832] DEBUG (DevController:667) hotplugStatusCallback 1. [2010-06-02 19:46:17 4832] DEBUG (DevController:144) Waiting for 5632. [2010-06-02 19:46:17 4832] DEBUG (DevController:653) hotplugStatusCallback /local/domain/0/backend/vbd/5/5632/hotplug-status. [2010-06-02 19:46:17 4832] DEBUG (DevController:667) hotplugStatusCallback 1. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices irq. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vfb. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices pci. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vusb. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vtpm. [2010-06-02 19:46:18 4832] INFO (XendDomain:1207) Domain centos (5) unpaused. ( ... HANGS HERE ...) --------------------------------------------- -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
0bo0 wrote:
i've Opensuse 11.2 Xen Dom0,
lsb_release -dr Description: openSUSE 11.2 (x86_64) Release: 11.2
uname -a Linux server 2.6.34-42-xen #1 SMP 2010-06-01 15:17:00 +0200 x86_64 x86_64 x86_64 GNU/Linux
rpm -qa | grep -i xen xen-libs-4.0.0_21087_01-38.1.x86_64 kernel-xen-devel-2.6.34-42.1.x86_64 xen-tools-4.0.0_21087_01-38.1.x86_64 kernel-xen-2.6.34-42.1.x86_64 xen-4.0.0_21087_01-38.1.x86_64
I build & run numerous OpenSuse DomUs -- no issues.
I need to netinstall a Centos 5.5 PV'd DomU Guest on this host.
Using the procedure & config below, it starts to boot -- then hangs, with not much useful debugging info ... at least, not to my eye, where/how I'm looking.
If someone could once-over the following, and make any suggestions/hints as to what's up, it'd be appreciated!
Here's the current step-by-step:
lvcreate -n vm_boot -L 160M /dev/VG0 lvcreate -n vm_swap -L 512M /dev/VG0 lvcreate -n vm_root -L 8G /dev/VG0
mkdir -p /home/xen/centos55/xenboot/
setenv DL "http://mirrors.kernel.org/centos/5.5" cd /home/xen/centos55 wget $DL/isos/x86_64/CentOS-5.5-x86_64-netinstall.iso cd ./xenboot/ wget $DL/os/x86_64/images/xen/initrd.img wget $DL/os/x86_64/images/xen/vmlinuz
vi /home/xen/centos_install.cfg --------------------------------------------- name = 'centos' builder = 'linux' kernel = "/home/xen/centos55/xenboot/vmlinuz" ramdisk = "/home/xen/centos55/xenboot/initrd.img" disk = [ 'phy:/dev/VG0/vm_boot,xvda,w', 'phy:/dev/VG0/vm_swap,xvdb,w', 'phy:/dev/VG0/vm_root,xvdc,w',
'file:/home/xen/centos55/CentOS-5.5-x86_64-netinstall.iso,hdc:cdrom,r', ] boot = 'd' vif = [ 'mac=00:16:3E:01:06:00, bridge=brA, vifname=vif.A' ] vfb = [ 'type=vnc, vncdisplay=106, vnclisten=127.0.0.1' ] extra = 'textmode=1 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles bootproto=static ip=192.168.1.155 gateway=192.168.1.1 nameserver=192.168.1.1 method=http://mirrors.kernel.org/centos/5.5/os/x86_64'
maxmem = 1024 memory = 1024 vcpus = 4 cpu_cap = 100 cpu_weight = 256 localtime = 0 netif = 'yes'
Hmm, I haven't seen the netif option used before. IIUC, it enables the domU to act a network backend - aka driver domain. Does the domU boot progress if this setting is removed?
on_shutdown = 'destroy' on_reboot = 'restart' on_crash = 'destroy' ---------------------------------------------
@
xm create -c /home/xen/centos_install.cfg
starts ok, but then hangs,
--------------------------------------------- Using config file "/home/xen/centos_install.cfg". Started domain centos (id=5) Bootdata ok (command line is textmode=1 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles bootproto=static ip=192.168.1.155 gateway=192.168.1.1 nameserver=192.168.1.1 method=http://mirrors.kernel.org/centos/5.5/os/x86_64) Linux version 2.6.18-194.el5xen (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 15:34:40 EDT 2010 ... XENBUS: Device with no driver: device/vif/1 XENBUS: Device with no driver: device/vif/2 XENBUS: Device with no driver: device/vif/3 XENBUS: Device with no driver: device/console/0
A pv driver issue in the boot image?
Initalizing network drop monitor service Write protecting the kernel read-only data: 483k
( ... HANGS HERE ...) ---------------------------------------------
Not much in the logs. Does 'xm dmesg' or /var/log/messages in host contain anything enlightening? Jim
and,
tail -f /var/logl/xen/*
--------------------------------------------- ... [2010-06-02 19:46:17 4832] DEBUG (DevController:653) hotplugStatusCallback /local/domain/0/backend/vbd/5/51744/hotplug-status. [2010-06-02 19:46:17 4832] DEBUG (DevController:667) hotplugStatusCallback 1. [2010-06-02 19:46:17 4832] DEBUG (DevController:144) Waiting for 5632. [2010-06-02 19:46:17 4832] DEBUG (DevController:653) hotplugStatusCallback /local/domain/0/backend/vbd/5/5632/hotplug-status. [2010-06-02 19:46:17 4832] DEBUG (DevController:667) hotplugStatusCallback 1. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices irq. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vfb. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices pci. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vusb. [2010-06-02 19:46:18 4832] DEBUG (DevController:139) Waiting for devices vtpm. [2010-06-02 19:46:18 4832] INFO (XendDomain:1207) Domain centos (5) unpaused.
( ... HANGS HERE ...) ---------------------------------------------
-- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
On Wed, Jun 2, 2010 at 9:58 PM, Jim Fehlig <jfehlig@novell.com> wrote:
Hmm, I haven't seen the netif option used before. IIUC, it enables the domU to act a network backend - aka driver domain.
i'd added it to my opensuse guests' configs a long while back to solve "some problem" -- honestly, too long ago to tell you why ... other than it still works. for opensuse guests, anyway.
Does the domU boot progress if this setting is removed?
nope. still hangs at: ... Initalizing network drop monitor service Write protecting the kernel read-only data: 483k
XENBUS: Device with no driver: device/console/0
A pv driver issue in the boot image?
Possible. I know next to nothing about Centos' images. The boot img is a netinstall disk. Perhaps a bit "short" on it's capabilities ... aria2c is dl'ing the full DVD to test as I type here ...
Not much in the logs. Does 'xm dmesg' or /var/log/messages in host contain anything enlightening?
unclear. take a look: tail -f /var/log/messages ------------------------------------------------------- ... ... Jun 2 22:10:31 server logger: /etc/xen/scripts/block: Writing backend/vbd/9/51744/physical-device fd:18 to xenstore. Jun 2 22:10:31 server kernel: [14586.162087] (cdrom_add_media_watch() file=/usr/src/packages/BUILD/kernel-xen-2.6.34/linux-2.6.34/drivers/xen/blkback/cdrom.c, line=108) nodename:backend/vbd/9/51744 Jun 2 22:10:31 server kernel: [14586.174821] (cdrom_is_type() file=/usr/src/packages/BUILD/kernel-xen-2.6.34/linux-2.6.34/drivers/xen/blkback/cdrom.c, line=95) type:0 Jun 2 22:10:31 server logger: /etc/xen/scripts/block: Writing backend/vbd/9/51744/hotplug-status connected to xenstore. Jun 2 22:10:32 server logger: /etc/xen/scripts/block: Writing backend/vbd/9/5632/node /dev/loop0 to xenstore. Jun 2 22:10:32 server logger: /etc/xen/scripts/block: Writing backend/vbd/9/5632/physical-device 7:0 to xenstore. Jun 2 22:10:32 server kernel: [14587.117890] (cdrom_add_media_watch() file=/usr/src/packages/BUILD/kernel-xen-2.6.34/linux-2.6.34/drivers/xen/blkback/cdrom.c, line=108) nodename:backend/vbd/9/5632 Jun 2 22:10:32 server kernel: [14587.131459] (cdrom_is_type() file=/usr/src/packages/BUILD/kernel-xen-2.6.34/linux-2.6.34/drivers/xen/blkback/cdrom.c, line=95) type:1 Jun 2 22:10:32 server kernel: [14587.138519] (cdrom_add_media_watch() file=/usr/src/packages/BUILD/kernel-xen-2.6.34/linux-2.6.34/drivers/xen/blkback/cdrom.c, line=110) is a cdrom Jun 2 22:10:32 server logger: /etc/xen/scripts/block: Writing backend/vbd/9/5632/hotplug-status connected to xenstore. Jun 2 22:10:32 server kernel: [14587.150294] (cdrom_add_media_watch() file=/usr/src/packages/BUILD/kernel-xen-2.6.34/linux-2.6.34/drivers/xen/blkback/cdrom.c, line=112) xenstore wrote OK Jun 2 22:10:32 server kernel: [14587.157834] (cdrom_is_type() file=/usr/src/packages/BUILD/kernel-xen-2.6.34/linux-2.6.34/drivers/xen/blkback/cdrom.c, line=95) type:1 Jun 2 22:10:41 server kernel: [14596.275638] blkback: ring-ref 2312, event-channel 21, protocol 1 (x86_64-abi) Jun 2 22:10:41 server kernel: [14596.397827] blkback: ring-ref 2313, event-channel 22, protocol 1 (x86_64-abi) Jun 2 22:10:41 server kernel: [14596.517850] blkback: ring-ref 2314, event-channel 23, protocol 1 (x86_64-abi) Jun 2 22:10:41 server kernel: [14596.636992] blkback: ring-ref 2315, event-channel 24, protocol 1 (x86_64-abi) ( ... HANGS HERE ... ) ------------------------------------------------------- and, xm dmesg ------------------------------------------------------- (XEN) Xen version 4.0.0_21087_01-38.1 (abuild@) (gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) ) Fri Apr 2 22:30:04 UTC 2010 (XEN) Latest ChangeSet: 21087 (XEN) Command line: loglvl=all loglvl_guest=all apic_verbosity=debug dom0_mem=1024M vga=gfx-1280x1024x32 console_timestamps console=vga,com1 com1=57600,8n1 iommu=1 dom0_max_vcpus=4 dom0_vcpus_pin=true sched=credit cpuidle=1 cpufreq=xen clocksource=acpi numa=on (XEN) Video information: ... (XEN) [2010-06-03 01:07:46] allocated vector 31 for irq 21 (XEN) [2010-06-03 01:07:47] PCI add device 00:14.2 (XEN) [2010-06-03 01:07:47] PCI add device 04:00.0 (XEN) [2010-06-03 01:07:48] PCI add device 01:05.0 (XEN) [2010-06-03 01:09:00] cpupool_add_domain(dom=1,pool=0) n_dom 2 (XEN) [2010-06-03 01:09:20] mm.c:799:d1 Non-privileged (1) attempt to map I/O space 000000f0 (XEN) [2010-06-03 01:31:34] cpupool_rm_domain(dom=1,pool=0) n_dom 1 (XEN) [2010-06-03 01:32:45] cpupool_add_domain(dom=2,pool=0) n_dom 2 (XEN) [2010-06-03 01:33:38] mm.c:799:d2 Non-privileged (2) attempt to map I/O space 000000f0 (XEN) [2010-06-03 01:59:34] cpupool_rm_domain(dom=2,pool=0) n_dom 1 (XEN) [2010-06-03 02:33:34] cpupool_add_domain(dom=3,pool=0) n_dom 2 (XEN) [2010-06-03 02:35:38] cpupool_rm_domain(dom=3,pool=0) n_dom 1 (XEN) [2010-06-03 02:44:59] cpupool_add_domain(dom=4,pool=0) n_dom 2 (XEN) [2010-06-03 02:46:00] cpupool_rm_domain(dom=4,pool=0) n_dom 1 (XEN) [2010-06-03 02:46:14] cpupool_add_domain(dom=5,pool=0) n_dom 2 (XEN) [2010-06-03 02:50:37] cpupool_rm_domain(dom=5,pool=0) n_dom 1 (XEN) [2010-06-03 03:46:56] cpupool_add_domain(dom=6,pool=0) n_dom 2 (XEN) [2010-06-03 03:53:09] cpupool_rm_domain(dom=6,pool=0) n_dom 1 (XEN) [2010-06-03 04:27:59] cpupool_add_domain(dom=7,pool=0) n_dom 2 (XEN) [2010-06-03 04:29:24] cpupool_rm_domain(dom=7,pool=0) n_dom 1 (XEN) [2010-06-03 05:04:51] cpupool_add_domain(dom=8,pool=0) n_dom 2 (XEN) [2010-06-03 05:10:18] cpupool_rm_domain(dom=8,pool=0) n_dom 1 (XEN) [2010-06-03 05:10:27] cpupool_add_domain(dom=9,pool=0) n_dom 2 root@server /root > ------------------------------------------------------- not sure if those last few lines are suspicious, or not. rather surprising how *little* info there is, or at least that i've found, on non-Opensuse Guests on Opensuse Host :-/ hope to get this one working ! p.s. Unrelated, but worth mentioning -- at some point in the last few weeks' (maybe longer) of system/kernel/xen upgrades, service "xend" stopped launching on boot. a bit of digging about led me to an apparently NEW requirement, the need for: lsmod | grep evt evtchn 38288 4 for whatever reason, not getting auto-added to initrd @ kernel upgrades/ adding that module to /etc/sysconfig/kernel cures the problem. -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
i've gotten much closer to the solution. turns out that" (1) Centos' "vmlinuz" & "initrd.img" provide full & equivalent functionality to the C5.5 netinstall ISO. *NO* iso->cdrom mount is required, (2) even if it were, for PV, mounting hdc:cdrom is incorrect; that's for HVM making changes, the following gets me to the Centos installer in a VNC console ... ------------------------------------------------- name = 'centos' builder = 'linux' kernel = "/home/xen/centos55/xenboot/vmlinuz" ramdisk = "/home/xen/centos55/xenboot/initrd.img" disk = [ 'phy:/dev/VG0/vm_boot,xvda,w', 'phy:/dev/VG0/vm_swap,xvdb,w', 'phy:/dev/VG0/vm_root,xvdc,w', ] vif = [ 'mac=00:16:3E:01:06:00, bridge=brA, vifname=vif.A'] vfb = [ 'type=vnc, vncdisplay=106, vnclisten=192.168.1.2' ] extra = 'textmode=0 xencons=xvc0 elevator=noop lang=en_US.UTF-8 keyboard=us timezone=America/Los_Angeles ip=192.168.1.106 netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.1 noipv6' maxmem = 1024 memory = 1024 vcpus = 4 cpu_cap = 100 cpu_weight = 256 localtime = 0 on_shutdown = 'destroy' on_reboot = 'restart' on_crash = 'destroy' ------------------------------------------------- the installer queries for device (eth0), method (http), and source url/dir (mirrors.kernel.org, centos/5.5/os/x86_64/), then begins downloading. when i try to get that additional info onto the "extra=" line, with any of, url=http://mirrors.kernel.org/centos/5.5/os/x86_64/' method=http://mirrors.kernel.org/centos/5.5/os/x86_64' device=eth0 the info's simply ignored -- no launch error -- and the installer, again, interactively queries for the same info, then proceeds. i've searched for hints for that Centos "extra=" line, so far to no avail ... at least not without using an additional 'kickstart' config file. any idea what works? -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
got it. extra= requires "... ksdevice=eth0 method=http://mirrors.kernel.org/centos/5.5/os/x86_64 ..." -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
0bo0 wrote:
got it.
extra= requires "... ksdevice=eth0 method=http://mirrors.kernel.org/centos/5.5/os/x86_64 ..."
Nice perseverance :-). Glad to hear you got it sorted out. -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
participants (2)
-
0bo0
-
Jim Fehlig