在 CentOS7 主机上安装 CentOS7 客户机时出现内核崩溃

在 CentOS7 主机上安装 CentOS7 客户机时出现内核崩溃

我正在尝试在 CentOS 7 KVM 主机上安装 CentOS 7 客户机,但一直出现内核恐慌,而且似乎每次都发生在完全相同的位置。我甚至尝试安装 CentOS 6 客户机,但同样出现内核恐慌。

主机上已经有 5 个客户机(全部为 CentOS 6)在运行,尽管它们都是从另一台主机移过来的。我已经用最新更新更新了主机,只安装了标准存储库和软件包,但仍然没有成功。

希望有人能够知道我做错了什么或者是什么导致了内核恐慌。

处理器是英特尔酷睿 i3-4130,主板是技嘉 Z97P-D3,16GB RAM。

安装脚本:


$IMGNAME=server
$KICKSTART=kickstart.cfg
$DISKSIZE=40

virt-install \
--name $IMGNAME \
--ram 1024 \
--cpu host \
--vcpus 1 \
--network bridge:bridge0 \
--nographics \
--os-type=linux \
--location $IMGFILE \
--os-variant=rhel7 \
--initrd-inject=../kickstarts/$KICKSTART \
--extra-args="ks=file:/$KICKSTART text utf8 console=ttyS0,115200 modprobe.blacklist=cnic,bnx2i" \
--disk path=/data/kvm/images/$IMGNAME.img,size=$DISKSIZE,bus=virtio --force \
--noreboot

kickstart 文件:


install
lang en_US.UTF-8
keyboard is-latin1
timezone Europe/Stockholm
auth --useshadow --enablemd5
selinux --disabled
firewall --disabled
services --enabled=NetworkManager,sshd
eula --agreed
network --onboot=on --bootproto=dhcp
reboot
firstboot --disable

bootloader --location=mbr
zerombr
clearpart --all --initlabel
part swap --asprimary --fstype="swap" --size=1024
part /boot --fstype xfs --size=500
part pv.01 --size=1 --grow
volgroup rootvg01 pv.01
logvol / --fstype xfs --name=lv01 --vgname=rootvg01 --size=1 --grow

rootpw change

repo --name=base --baseurl=http://mirror.cogentco.com/pub/linux/centos/7/os/x86_64/
url --url="http://mirror.cogentco.com/pub/linux/centos/7/os/x86_64/"

%packages --nobase --ignoremissing
@core
%end

这是安装的输出:


Welcome to CentOS Linux 7 (Core) dracut-033-161.el7 (Initramfs)!

[    2.736860] systemd[1]: No hostname configured.
[    2.737246] systemd[1]: Set hostname to .
[    2.737665] systemd[1]: Initializing machine ID from KVM UUID.
[    2.749598] systemd[1]: Starting -.slice.
[  OK  ] Created slice -.slice.
[    2.750675] systemd[1]: Created slice -.slice.
[    2.751215] systemd[1]: Starting System Slice.
[  OK  ] Created slice System Slice.
[    2.752258] systemd[1]: Created slice System Slice.
[    2.752680] systemd[1]: Starting Slices.
[  OK  ] Reached target Slices.
[    2.753631] systemd[1]: Reached target Slices.
[    2.754078] systemd[1]: Starting Timers.
[  OK  ] Reached target Timers.
[    2.754931] systemd[1]: Reached target Timers.
[    2.755392] systemd[1]: Starting Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[    2.756459] systemd[1]: Reached target Encrypted Volumes.
[    2.756919] systemd[1]: Starting Journal Socket.
[  OK  ] Listening on Journal Socket.
[    2.757951] systemd[1]: Listening on Journal Socket.
[    2.758533] systemd[1]: Starting dracut cmdline hook...
         Starting dracut cmdline hook...
[    2.759759] systemd[1]: Started Load Kernel Modules.
[    2.760270] systemd[1]: Starting Setup Virtual Console...
         Starting Setup Virtual Console...
[    2.761474] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[  OK  ] Started Journal Service.
[    2.764043] systemd[1]: Started Journal Service.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Reached target Sockets.
         [    2.772027] systemd-journald[75]: Vacuuming done, freed 0 bytes
Starting Create list of required static device nodes...rrent kernel...
         Starting Apply Kernel Variables...
         Starting Device-Mapper Multipath Device Controller...
[  OK  ] Reached target Swap.
[  OK  ] Reached target Local File Systems.
[    2.789576] device-mapper: uevent: version 1.0.3
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started Apply Kernel Variables.
[    2.793545] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: [email protected]
[  OK  ] Started Create list of required static device nodes ...current kernel.
         Starting Create static device nodes in /dev...
[    2.804180] device-mapper: multipath: version 1.6.0 loaded
[  OK  ] Started Create static device nodes in /dev.
[  OK  ] Started Device-Mapper Multipath Device Controller.
[    2.841315] BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
[    3.012027] usb 1-1: new full-speed USB device number 2 using uhci_hcd
[    3.163353] usb 1-1: New USB device found, idVendor=0627, idProduct=0001
[    3.163885] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=5
[    3.164473] usb 1-1: Product: QEMU USB Tablet
[    3.164899] usb 1-1: Manufacturer: QEMU
[    3.165211] usb 1-1: SerialNumber: 42
[    3.175931] input: QEMU QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-1/1-1:1.0/input/input2
[    3.176893] hid-generic 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU QEMU USB Tablet] on usb-0000:00:01.2-1/input0
[  OK  ] Started dracut cmdline hook.
         Starting dracut pre-udev hook...
[    3.234818] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.237856] Loading iSCSI transport class v2.0-870.
[    3.240677] iscsi: registered transport (tcp)
[    3.265235] FDC 0 is a S82078B
[    3.268180] No iBFT detected.
[    3.269771] md: raid0 personality registered for level 0
[    3.272109] md: raid1 personality registered for level 1
[    3.273878] async_tx: api initialized (async)
[    3.274822] xor: measuring software checksum speed
[    3.285006]    prefetch64-sse: 17100.000 MB/sec
[    3.295006]    generic_sse: 15864.000 MB/sec
[    3.295353] xor: using function: prefetch64-sse (17100.000 MB/sec)
[    3.314012] raid6: sse2x1   10269 MB/s
[    3.331009] raid6: sse2x2   12937 MB/s
[    3.348012] raid6: sse2x4   15062 MB/s
[    3.349017] invalid opcode: 0000 [#1] SMP 
[    3.349348] Modules linked in: raid6_pq(+) async_xor xor async_tx raid1 raid0 iscsi_ibft iscsi_boot_sysfs floppy iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi squashfs cramfs edd dm_multipath dm_mod
[    3.350004] CPU: 0 PID: 363 Comm: modprobe Not tainted 3.10.0-123.el7.x86_64 #1
[    3.350004] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[    3.350004] task: ffff88003320ad80 ti: ffff88003f4ba000 task.ti: ffff88003f4ba000
[    3.350004] RIP: 0010:[]  [] raid6_avx21_gen_syndrome+0x4a/0x160 [raid6_pq]
[    3.350004] RSP: 0018:ffff88003f4bbc58  EFLAGS: 00010246
[    3.350004] RAX: 0000000000000000 RBX: ffff88003f4bbca0 RCX: ffff88003320ad80
[    3.350004] RDX: ffff88003f4bbfd8 RSI: 0000000000000080 RDI: 0000000000000012
[    3.350004] RBP: ffff88003f4bbc88 R08: 0000000000000082 R09: 00000000000001b4
[    3.350004] R10: 0000000000000000 R11: ffff88003f4bb9ae R12: 0000000000001000
[    3.350004] R13: ffff88003f4fe000 R14: ffff88003f4ff000 R15: 0000000000000012
[    3.350004] FS:  00007f35b9a15740(0000) GS:ffff88003da00000(0000) knlGS:0000000000000000
[    3.350004] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.350004] CR2: 00007fd4f9592038 CR3: 0000000033213000 CR4: 00000000001006f0
[    3.350004] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    3.350004] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[    3.350004] Stack:
[    3.350004]  0000000000000080 ffffffffa00bc238 ffffffffa00ce720 ffff88003f4fe000
[    3.350004]  0000000000000f10 00000000fffb7935 ffff88003f4bbd60 ffffffffa00d3108
[    3.350004]  0000000000000000 ffffffffa00be600 ffffffffa00bf600 ffffffffa00c0600
[    3.350004] Call Trace:
[    3.350004]  [] init_module+0x108/0x1000 [raid6_pq]
[    3.350004]  [] ? 0xffffffffa00d2fff
[    3.350004]  [] do_one_initcall+0xe2/0x190
[    3.350004]  [] load_module+0x129b/0x1a90
[    3.350004]  [] ? ddebug_proc_write+0xf0/0xf0
[    3.350004]  [] ? copy_module_from_fd.isra.43+0x53/0x150
[    3.350004]  [] SyS_finit_module+0xa6/0xd0
[    3.350004]  [] system_call_fastpath+0x16/0x1b
[    3.350004] Code: 00 00 00 00 53 48 89 d3 48 83 ec 08 48 89 75 d0 4c 8b 2c c2 4c 8b 74 32 08 e8 83 00 f6 e0 84 c0 0f 84 f1 00 00 00 e8 66 01 f6 e0  fd 6f 05 9e 2a 01 00 c5 e5 ef db 4d 85 e4 0f 84 c0 00 00 00 
[    3.350004] RIP  [] raid6_avx21_gen_syndrome+0x4a/0x160 [raid6_pq]
[    3.350004]  RSP 
[    3.369069] ---[ end trace e0b9f2a670432dc0 ]---
[    3.369464] Kernel panic - not syncing: Fatal exception

答案1

最后通过以下提示解决了这个问题德克在官方 CentOS 论坛中,问题出在 CPU 设置上,只需删除该设置并使用默认 CPU 设置即可解决问题。以下是我最终有效的方法:

IMGNAME=服务器
KICKSTART=kickstart.cfg
磁盘大小=40

virt-安装 \
--名称 $IMGNAME \
--ram 1024 \
--vcpus 1 \
--网桥:bridge0 \
--nographics \
--os-type=linux \
--位置=$IMGFILE \
--os-variant=rhel7 \
--initrd-inject=../kickstarts/$KICKSTART \
--extra-args="inst.ks=file:/$KICKSTART text utf8 mce=ignore_ce console=ttyS0,115200 modprobe.blacklist=cnic,bnx2i" \
--磁盘路径=/data/kvm/images/$IMGNAME.img,大小=$DISKSIZE,总线=virtio --force \
--noreboot

和 kickstart 文件:

安装
语言 en_US.UTF-8
键盘 is-latin1
时区 欧洲/斯德哥尔摩
身份验证 --useshadow --enablemd5
selinux——已禁用
防火墙--已禁用
服务 --enabled=NetworkManager,sshd
eula --同意
网络 --onboot=on --bootproto=dhcp
重启
首次启动——禁用

引导加载程序 --location=mbr
零阴影
clearpart --all --initlabel
部分交换 --asprimary --fstype="swap" --size=1024
部分/引导--fstype xfs--size = 500
部分 pv.01 --size=1 --grow
卷组 rootvg01 pv.01
logvol / --fstype xfs --name=lv01 --vgname=rootvg01 --size=1 --grow

rootpw 更改

# repo --name=base --baseurl=http://ftp.sunet.se/pub/Linux/distributions/centos/7.0.1406/isos/x86_64
# url --url=http://ftp.sunet.se/pub/Linux/distributions/centos/7.0.1406/isos/x86_64

%软件包
@核
%结尾

相关内容