xen的domainU启动失败

发布于 2022-10-15 10:20:29 字数 19651 浏览 51 评论 0

操作系统是redhat5.2,xen是3.x版本
我今天采用复制domain0的方式安装了一个domainU,启动的时候出现了如下错误,怎么回事呢?

[root@dns69 boot]# xm console dhcp-1
Linux version 2.6.18-92.el5xen (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:45:57 EDT 2008
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000010800000 (usable)
0MB HIGHMEM available.
264MB LOWMEM available.
NX (Execute Disable) protection: active
ACPI in unprivileged domain disabled
Built 1 zonelists.  Total pages: 67584
Kernel command line:  root=/dev/xvda1 ro
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c073b000 soft=c071b000
PID hash table entries: 2048 (order: 11, 8192 bytes)
Xen reported: 3200.106 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Software IO TLB disabled
vmalloc area: d1000000-f4ffe000, maxmem 2d7fe000
Memory: 249600k/270336k available (2098k kernel code, 12244k reserved, 867k data, 176k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 8004.48 BogoMIPS (lpj=16008960)
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: 512
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 13k freed
Brought up 1 CPUs
checking if image is initramfs... it is
Freeing initrd memory: 4952k freed
Grant table initialized
NET: Registered protocol family 16
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread C06E9AA0 could not acquire Mutex [2] [20060707]
No dock devices found.
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread C06E9AA0 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: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1302595746.581:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 95BAC6CB8E096352
- 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
Xen virtual console successfully installed as xvc0
Linux version 2.6.18-92.el5xen (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:45:57 EDT 2008
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000010800000 (usable)
0MB HIGHMEM available.
264MB LOWMEM available.
NX (Execute Disable) protection: active
ACPI in unprivileged domain disabled
Built 1 zonelists.  Total pages: 67584
Kernel command line:  root=/dev/xvda1 ro
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c073b000 soft=c071b000
PID hash table entries: 2048 (order: 11, 8192 bytes)
Xen reported: 3200.106 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Software IO TLB disabled
vmalloc area: d1000000-f4ffe000, maxmem 2d7fe000
Memory: 249600k/270336k available (2098k kernel code, 12244k reserved, 867k data, 176k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 8004.48 BogoMIPS (lpj=16008960)
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: 512
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 1024K
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 13k freed
Brought up 1 CPUs
checking if image is initramfs... it is
Freeing initrd memory: 4952k freed
Grant table initialized
NET: Registered protocol family 16
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread C06E9AA0 could not acquire Mutex [2] [20060707]
No dock devices found.
ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread C06E9AA0 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: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1302595746.581:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key 95BAC6CB8E096352
- 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
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
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
Using IPI No-Shortcut mode
XENBUS: Device with no driver: device/vbd/51713
XENBUS: Device with no driver: device/vbd/51714
XENBUS: Device with no driver: device/vif/0
Freeing unused kernel memory: 176k freed
Write protecting the kernel read-only data: 379k
Red Hat nash version 5.1.19.6 starting
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug.
Creating block device nodes.
Loading xenblk.ko module
Registering block device major 202
Loading ehci-hcd.ko module
Loading ohci-hcd.ko module
Loading uhci-hcd.ko module
USB Universal Host Controller Interface driver v3.0
Loading jbd.ko module
Loading ext3.ko module
Loading xennet.ko module
netfront: Initialising virtual ethernet driver.
netfront: device eth0 has flipping receive path.
Scanning and configuring dmraid supported devices
Creating root device.
Mounting root filesystem.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Setting up other filesystems.
Setting up new root fs
no fstab.sys, mounting internal defaults
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
4gb seg fixup, process init (pid 1), cs:ip 73:001ee3b0
4gb seg fixup, process init (pid 1), cs:ip 73:00264729
4gb seg fixup, process init (pid 1), cs:ip 73:001f132c
4gb seg fixup, process init (pid 1), cs:ip 73:001f133a
4gb seg fixup, process init (pid 1), cs:ip 73:001f132c
4gb seg fixup, process init (pid 1), cs:ip 73:001f133a
4gb seg fixup, process init (pid 1), cs:ip 73:001a9a8b
4gb seg fixup, process init (pid 1), cs:ip 73:001a9a74
4gb seg fixup, process init (pid 1), cs:ip 73:001f75d5
4gb seg fixup, process init (pid 1), cs:ip 73:001a9a74
INIT: version 2.86 booting
printk: 587466 messages suppressed.
4gb seg fixup, process rc.sysinit (pid 244), cs:ip 73:001f132c
                Welcome to Red Hat Enterprise Linux Server
                Press 'I' to enter interactive startup.
/sbin/hwclock: error while loading shared libraries: libaudit.so.0: cannot open shared object file: Permission denied
Setting clock  (utc): Tue Apr 12 16:09:21 CST 2011 [  OK  ]
Starting udev: [  OK  ]
Loading default keymap (us): [  OK  ]
Setting hostname dhcp-1:  [  OK  ]
No devices found
Setting up Logical Volume Management:   No volume groups found
[  OK  ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/xvda1
/dev/xvda1: clean, 89486/640000 files, 1242926/1280000 blocks
[  OK  ]
Remounting root filesystem in read-write mode:  [  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling local filesystem quotas:  [  OK  ]
/sbin/pam_console_apply: error while loading shared libraries: libpam.so.0: cannot open shared object file: Permission denied
Enabling /etc/fstab swaps:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Applying Intel CPU microcode update: /sbin/microcode_ctl: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
[FAILED]
Checking for hardware changes [  OK  ]
Applying ip6tables firewall rules: ip6tables-restore: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied
[FAILED]
Applying iptables firewall rules: iptables-restore: error while loading shared libraries: libdl.so.2: cannot open shared object file: Permission denied
[FAILED]
Bringing up loopback interface:  ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied
ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied
Device lo does not seem to be present, delaying initialization.
[FAILED]
Bringing up interface eth0:  ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied
ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied
ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied
ip: error while loading shared libraries: libresolv.so.2: cannot open shared object file: Permission denied
xennet device eth0 does not seem to be present, delaying initialization.
[FAILED]
Starting auditd: auditd: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
[FAILED]
Starting restorecond: [  OK  ]
Starting system logger: syslogd: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
[FAILED]
Starting kernel logger: klogd: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
[FAILED]
Starting irqbalance: irqbalance: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: Permission denied
[FAILED]
Starting mcstransd: mcstransd: error while loading shared libraries: libselinux.so.1: cannot open shared object file: Permission denied
[FAILED]
Starting portmap: portmap: error while loading shared libraries: libnsl.so.1: cannot open shared object file: Permission denied
[FAILED]
Starting setroubleshootd: exception when creating syslog handler: (2, 'No such file or directory')
[  OK  ]
Starting NFS statd: rpc.statd: error while loading shared libraries: libnsl.so.1: cannot open shared object file: Permission denied
[FAILED]
Starting RPC idmapd: rpc.idmapd: error while loading shared libraries: libevent-1.1a.so.1: cannot open shared object file: Permission denied
[FAILED]
Starting system message bus: dbus-daemon: error while loading shared libraries: libexpat.so.0: cannot open shared object file: Permission denied
[FAILED]
Starting Bluetooth services:/usr/sbin/hcid: error while loading shared libraries: libdbus-1.so.3: cannot open shared object file: Permission denied
/usr/sbin/sdpd: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: Permission denied
rfcomm: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: Permission denied

Mounting other filesystems:  [  OK  ]
Starting PC/SC smart card daemon (pcscd): pcscd: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: Permission denied
[FAILED]
Starting hidd: /usr/bin/hidd: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: Permission denied
[FAILED]
Starting autofs:  Loading autofs4: [  OK  ]
Starting automount: [  OK  ]
[  OK  ]
Starting hpiod: ./hpiod: error while loading shared libraries: libnetsnmp.so.10: cannot open shared object file: Permission denied
[FAILED]
Starting hpssd: /usr/bin/env: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
[FAILED]
Starting sshd: [  OK  ]
Starting xinetd: [  OK  ]
Starting console mouse services: gpm: error while loading shared libraries: libm.so.6: cannot open shared object file: Permission denied
[FAILED]
Starting crond: [  OK  ]
Starting xfs: xfs: error while loading shared libraries: libFS.so.6: cannot open shared object file: Permission denied
[FAILED]
Starting anacron: [  OK  ]
Starting atd: [  OK  ]
Starting yum-updatesd: [  OK  ]
Starting Avahi daemon... /usr/sbin/avahi-daemon: error while loading shared libraries: libavahi-common.so.3: cannot open shared object file: Permission denied
[FAILED]
Starting HAL daemon: [FAILED]
Starting smartd: /usr/sbin/smartd: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
[FAILED]
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
/sbin/agetty: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
INIT: Id "co" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
[root@dns69 boot]# xm destroy dhcp-1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

善良天后 2022-10-22 10:20:29

貌似是半虚拟的kernel问题,dom0的kernel在domU有问题,具体可能性很多

不行就换全虚拟吧

变身佩奇 2022-10-22 10:20:29

我在系统中用yum groupinstall virtualization之后用xen的kernel启动,进入系统,在domainU的配置文件中kernel=“/boot/vmlinuz-2.6.18-92.el5xen”。会是这里的问题吗?

空宴 2022-10-22 10:20:29

恩,这就是半虚拟,简单的办法就是换全虚拟

骷髅 2022-10-22 10:20:29

为什么会这样啊?半虚拟化就很有可能启动不了吗?我已经搞了一天了,都搞晕了。
能说清楚点吗兄弟?

绝不服输 2022-10-22 10:20:29

简单来说,如果你用 redhat 半虚拟 suse9,就会有那问题,因为 suse9 默认的文件系统是 reiserfs,redhat 的内核不支持。我的建议是你重装一个虚拟机,用 virt-manager,装的时候主要选择 hvm(全虚拟),就不用有我说的类似问题了

成熟的代价 2022-10-22 10:20:29

libc.so.6 的问题吧!好像遇到过,更新一下。

乙白 2022-10-22 10:20:29

在启动的过程中竟然有那么多的 permission deny,为什么会这样呢?

长伴 2022-10-22 10:20:29

我用的系统是 rhel5.2,guest 也是 5.2。
我觉得复制 domain0 的文件没有问题,mkinitrd 也没有问题,并且 domainU 的配置文件应该也没有问题,不然不能启动到那个地方。

回梦 2022-10-22 10:20:29

问题解决了,将guest里边的selinux禁用就可以了。
vim etc/sysconfig/selinux,将selinux设置为disable就可以了。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文