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

Re: [Xen-users] boot DomU using Dom0 Kernel? -- Sisu



Hi,

It seems Xen is conflict with the RT-Patch. When I configured the
domain using pygrub, it cannot boot as well.

Has anyone else tried using them together?

I changed the kernel into 3.3.6 without rt-patch. This time using
bootloader="pygrub" can boot the domU OK. But the corresponding
configuration gives me the error like this:
kernel="/boot/vmlinuz-3.3.6"

error is:

[xisisu@null-001cc0b1994f VM]$ sudo xl create -c vm2.run
Parsing config file vm2.run
Daemon running with PID 4907
                            Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 3.3.6 (xisisu@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc
version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Mon May 14
17:29:53 CDT 2012
Command line: ro root=/dev/mapper/vg_null001cc0b1994f-lv_root
rd_NO_LUKS rd_LVM_LV=vg_null001cc0b1994f/lv_swap LANG=en_US.UTF-8
rd_LVM_LV=vg_null001cc0b1994f/lv_root rd_NO_MD
SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto  KEYBOARDTYPE=pc
KEYTABLE=us rd_NO_DM
ACPI in unprivileged domain disabled
Released 0 pages of unused memory
Set 0 page(s) to 1-1 mapping
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 00000000000a0000 (usable)
 Xen: 00000000000a0000 - 0000000000100000 (reserved)
 Xen: 0000000000100000 - 0000000020800000 (usable)
Notice: NX (Execute Disable) protection missing in CPU!
DMI not present or invalid.
No AGP bridge found
last_pfn = 0x20800 max_arch_pfn = 0x400000000
init_memory_mapping: 0000000000000000-0000000020800000
crashkernel: memory value expected
No NUMA configuration found
Faking a node at 0000000000000000-0000000020800000
Initmem setup node 0 0000000000000000-0000000020800000
  NODE_DATA [000000001ffd9000 - 000000001fffffff]
Zone PFN ranges:
  DMA      0x00000010 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   empty
Movable zone start PFN for each node
Early memory PFN ranges
    0: 0x00000010 -> 0x000000a0
    0: 0x00000100 -> 0x00020800
SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
SMP: Allowing 1 CPUs, 0 hotplug CPUs
No local APIC present
APIC: disable apic facility
APIC: switched to apic NOOP
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
Allocating PCI resources starting at 20800000 (gap: 20800000:df800000)
Booting paravirtualized kernel on Xen
Xen version: 4.1.2 (preserve-AD)
setup_percpu: NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 27 pages/cpu @ffff88001fc00000 s81856 r8192 d20544 u2097152
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 131183
Policy zone: DMA32
Kernel command line: ro root=/dev/mapper/vg_null001cc0b1994f-lv_root
rd_NO_LUKS rd_LVM_LV=vg_null001cc0b1994f/lv_swap LANG=en_US.UTF-8
rd_LVM_LV=vg_null001cc0b1994f/lv_root rd_NO_MD
SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto  KEYBOARDTYPE=pc
KEYTABLE=us rd_NO_DM
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
Memory: 496888k/532480k available (5310k kernel code, 448k absent,
35144k reserved, 5876k data, 1488k init)
Hierarchical RCU implementation.
NR_IRQS:262400 nr_irqs:256 16
Console: colour dummy device 80x25
console [tty0] enabled
console [hvc0] enabled
allocated 2621440 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
installing Xen timer for CPU 0
Detected 3378.250 MHz processor.
Calibrating delay loop (skipped), value calculated using timer
frequency.. 6756.50 BogoMIPS (lpj=3378250)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
Initializing cgroup subsys perf_event
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
Freeing SMP alternatives: 20k freed
ftrace: allocating 21105 entries in 83 pages
cpu 0 spinlock event irq 17
Performance Events: unsupported p6 CPU model 44 no PMU driver,
software events only.
NMI watchdog disabled (cpu0): hardware events not enabled
Brought up 1 CPUs
devtmpfs: initialized
Grant tables using version 2 layout.
Grant table initialized
print_constraints: dummy:
NET: Registered protocol family 16
PCI: setting up Xen PCI frontend stub
bio: create slab <bio-0> at 0
ACPI: Interpreter disabled.
xen/balloon: Initialising balloon driver.
xen-balloon: Initialising balloon driver.
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
Switching to clocksource xen
pnp: PnP ACPI: disabled
NET: Registered protocol family 2
IP route cache hash table entries: 8192 (order: 4, 65536 bytes)
TCP established hash table entries: 32768 (order: 7, 524288 bytes)
TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 32768 bind 32768)
TCP reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
platform rtc_cmos: registered platform RTC device (no PNP device found)
audit: initializing netlink socket (disabled)
type=2000 audit(1337752664.443:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 970
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
Event-channel device installed.
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
brd: module loaded
loop: module loaded
Fixed MDIO Bus: probed
Initialising Xen virtual ethernet driver.
blkfront: xvda: barrier: enabled
 xvda: xvda1 xvda2
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
i8042: PNP: No PS/2 controller found. Probing ports directly.
i8042: No controller found
mousedev: PS/2 mouse device common for all mice
rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
rtc_cmos: probe of rtc_cmos failed with error -38
EFI Variables Facility v0.08 2004-May-17
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Initializing network drop monitor service
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "mapper/vg_null001cc0b1994f-lv_root" or
unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
ca00        10485761 xvda  driver: vbd
  ca01          512000 xvda1 00000000-0000-0000-0000-000000000000
  ca02         9972736 xvda2 00000000-0000-0000-0000-000000000000
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper/0 Not tainted 3.3.6 #1
Call Trace:
 [<ffffffff81520a5b>] panic+0xbd/0x1da
 [<ffffffff81520bb9>] ? printk+0x41/0x48
 [<ffffffff81b032c4>] mount_block_root+0x1db/0x28f
 [<ffffffff81b033ce>] mount_root+0x56/0x5a
 [<ffffffff81b03542>] prepare_namespace+0x170/0x1a9
 [<ffffffff81b02848>] kernel_init+0x299/0x2af
 [<ffffffff8152cea4>] kernel_thread_helper+0x4/0x10
 [<ffffffff815239fc>] ? retint_restore_args+0x5/0x6
 [<ffffffff8152cea0>] ? gs_change+0x13/0x13



any idea?

Thanks in advance!

Best!

Yours,
Sisu

On Wed, May 23, 2012 at 12:27 AM, Sisu Xi <xisisu@xxxxxxxxx> wrote:
> Hi, all:
>
> I installed Xen 4.1.2 compiled from source, Dom0 is CentOS 6.2, using
> Linux kernel 3.4.0 compiled from source, after the rt-patch.
>
> Now I want to boot DomU using the patched Dom0 Kernel, my
> configuration file looks like:
> name="vm1"
> vcpus=1
> cpus="1"
> memory=512
> disk=['file:/home/xisisu/Desktop/VM/vm1.img,xvda,w']
> vif=['bridge=eth0']
> kernel="/boot/vmlinuz-3.4.0-rt7"
> extra="ro root=/dev/mapper/vg_null001cc0b1994f-lv_root rd_NO_LUKS
> rd_LVM_LV=vg_null001cc0b1994f/lv_swap LANG=en_US.UTF-8
> rd_LVM_LV=vg_null001cc0b1994f/lv_root rd_NO_MD
> SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto ÂKEYBOARDTYPE=pc
> KEYTABLE=us rd_NO_DM"
> on_reboot='restart'
> on_crash='restart'
>
> The item in menu.lst looks like:
> title CentOS (3.4.0-rt7)
> Â Â Â Âroot (hd0,0)
> Â Â Â Âkernel /vmlinuz-3.4.0-rt7 ro
> root=/dev/mapper/vg_null001cc0b1994f-lv_root rd_NO_LUKS
> rd_LVM_LV=vg_null001cc0b1994f/lv_swap LANG=en_US.UTF-8
> rd_LVM_LV=vg_null001cc0b1994f/lv_root rd_NO_MD quiet
> SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto ÂKEYBOARDTYPE=pc
> KEYTABLE=us rd_NO_DM
> Â Â Â Âinitrd /initramfs-3.4.0-rt7.img
>
> title Credit Xen 4.1.2, CentOS (3.4.0)
> Â Â Â Âroot (hd0,0)
> Â Â Â Âkernel /xen.gz dom0_mem=2048M dom0_max_vcpus=1 dom0_vcpus_pin 
> sched=credit
> Â Â Â Âmodule /vmlinuz-3.4.0-rt7 ro
> root=/dev/mapper/vg_null001cc0b1994f-lv_root rd_NO_LUKS
> rd_LVM_LV=vg_null001cc0b1994f/lv_swap LANG=en_US.UTF-8
> rd_LVM_LV=vg_null001cc0b1994f/lv_root rd_NO_MD
> SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto ÂKEYBOARDTYPE=pc
> KEYTABLE=us rd_NO_DM
> Â Â Â Âmodule /initramfs-3.4.0-rt7.img
>
> However, when I boot DomU in this way, it would halt. the output is:
> [xisisu@null-001cc0b1994f VM]$ sudo xl create -c vm2.run
> Parsing config file vm2.run
> Daemon running with PID 4030
> Â Â Â Â Â Â Â Â Â Â Â Â Â ÂInitializing cgroup subsys cpuset
> Initializing cgroup subsys cpu
> Linux version 3.4.0-rt7 (xisisu@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc
> version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #2 SMP PREEMPT RT Wed
> May 23 00:03:32 CDT 2012
> Command line: ro root=/dev/mapper/vg_null001cc0b1994f-lv_root
> rd_NO_LUKS rd_LVM_LV=vg_null001cc0b1994f/lv_swap LANG=en_US.UTF-8
> rd_LVM_LV=vg_null001cc0b1994f/lv_root rd_NO_MD
> SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto ÂKEYBOARDTYPE=pc
> KEYTABLE=us rd_NO_DM
> ACPI in unprivileged domain disabled
> Released 0 pages of unused memory
> Set 0 page(s) to 1-1 mapping
> BIOS-provided physical RAM map:
> ÂXen: 0000000000000000 - 00000000000a0000 (usable)
> ÂXen: 00000000000a0000 - 0000000000100000 (reserved)
> ÂXen: 0000000000100000 - 0000000020800000 (usable)
> Notice: NX (Execute Disable) protection missing in CPU!
> DMI not present or invalid.
> No AGP bridge found
> last_pfn = 0x20800 max_arch_pfn = 0x400000000
> init_memory_mapping: 0000000000000000-0000000020800000
> crashkernel: memory value expected
> No NUMA configuration found
> Faking a node at 0000000000000000-0000000020800000
> Initmem setup node 0 0000000000000000-0000000020800000
> ÂNODE_DATA [000000001ffda000 - 000000001fffffff]
> Zone PFN ranges:
> ÂDMA Â Â Â0x00000010 -> 0x00001000
> ÂDMA32 Â Â0x00001000 -> 0x00100000
> ÂNormal  empty
> Movable zone start PFN for each node
> Early memory PFN ranges
> Â Â0: 0x00000010 -> 0x000000a0
> Â Â0: 0x00000100 -> 0x00020800
> SMP: Allowing 1 CPUs, 0 hotplug CPUs
> No local APIC present
> APIC: disable apic facility
> APIC: switched to apic NOOP
> Allocating PCI resources starting at 20800000 (gap: 20800000:df800000)
> Booting paravirtualized kernel on Xen
> Xen version: 4.1.2 (preserve-AD)
> setup_percpu: NR_CPUS:4096 nr_cpumask_bits:4096 nr_cpu_ids:1 nr_node_ids:1
> PERCPU: Embedded 27 pages/cpu @ffff88001fc00000 s78592 r8192 d23808 u2097152
> Built 1 zonelists in Node order, mobility grouping on. ÂTotal pages: 131186
> Policy zone: DMA32
> Kernel command line: ro root=/dev/mapper/vg_null001cc0b1994f-lv_root
> rd_NO_LUKS rd_LVM_LV=vg_null001cc0b1994f/lv_swap LANG=en_US.UTF-8
> rd_LVM_LV=vg_null001cc0b1994f/lv_root rd_NO_MD
> SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto ÂKEYBOARDTYPE=pc
> KEYTABLE=us rd_NO_DM
> PID hash table entries: 4096 (order: 3, 32768 bytes)
> Checking aperture...
> No AGP bridge found
> Memory: 496060k/532480k available (5188k kernel code, 448k absent,
> 35972k reserved, 6042k data, 1496k init)
> Preemptible hierarchical RCU implementation.
> NR_IRQS:262400 nr_irqs:256 16
> Console: colour dummy device 80x25
> console [tty0] enabled
> console [hvc0] enabled
> allocated 10485760 bytes of page_cgroup
> please try 'cgroup_disable=memory' option if you don't want memory cgroups
> installing Xen timer for CPU 0
> Detected 3378.256 MHz processor.
> Calibrating delay loop (skipped), value calculated using timer
> frequency.. 6756.51 BogoMIPS (lpj=3378256)
> pid_max: default: 32768 minimum: 301
> Security Framework initialized
> SELinux: ÂInitializing.
> Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
> Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
> Mount-cache hash table entries: 256
> Initializing cgroup subsys cpuacct
> Initializing cgroup subsys memory
> Initializing cgroup subsys devices
> Initializing cgroup subsys freezer
> Initializing cgroup subsys net_cls
> Initializing cgroup subsys blkio
> Initializing cgroup subsys perf_event
> CPU: Physical Processor ID: 0
> CPU: Processor Core ID: 0
> SMP alternatives: switching to UP code
> Freeing SMP alternatives: 16k freed
> ftrace: allocating 20439 entries in 80 pages
> cpu 0 spinlock event irq 17
> Performance Events: unsupported p6 CPU model 44 no PMU driver,
> software events only.
> NMI watchdog: disabled (cpu0): hardware events not enabled
> Brought up 1 CPUs
> devtmpfs: initialized
> Grant tables using version 2 layout.
> Grant table initialized
> dummy:
> NET: Registered protocol family 16
> PCI: setting up Xen PCI frontend stub
> bio: create slab <bio-0> at 0
> ACPI: Interpreter disabled.
> xen/balloon: Initialising balloon driver.
> xen-balloon: Initialising balloon driver.
> vgaarb: loaded
> SCSI subsystem initialized
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> 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
> Switching to clocksource xen
> pnp: PnP ACPI: disabled
> NET: Registered protocol family 2
> IP route cache hash table entries: 8192
>
>
> and stops here.
>
>
>
> The xl info gives:
> host          : null-001cc0b1994f.seas.wustl.edu
> release        Â: 3.4.0-rt7
> version        Â: #2 SMP PREEMPT RT Wed May 23 00:03:32 CDT 2012
> machine        Â: x86_64
> nr_cpus        Â: 12
> nr_nodes        : 1
> cores_per_socket    : 6
> threads_per_core    : 2
> cpu_mhz        Â: 3378
> hw_caps        Â:
> bfebfbff:2c000800:00000000:00003f40:029ae3bf:00000000:00000001:00000000
> virt_caps       Â: hvm hvm_directio
> total_memory      : 12277
> free_memory      Â: 9550
> free_cpus       Â: 0
> xen_major       Â: 4
> xen_minor       Â: 1
> xen_extra       Â: .2
> 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
> xen_commandline    Â: dom0_mem=2048M dom0_max_vcpus=1
> dom0_vcpus_pin sched=credit
> cc_compiler      Â: gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
> cc_compile_by     Â: xisisu
> cc_compile_domain   Â: seas.wustl.edu
> cc_compile_date    Â: Tue May 22 16:39:08 CDT 2012
> xend_config_format   : 4
>
>
>
>
>
>
> Could anyone help with this?
>
> Thanks in advance.
>
> Best!
>
> Yours,
> Sisu

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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