就像我宁愿关闭它一样,我需要将一个古老的VM (2.4内核)从VMWare迁移到KVM。
不幸的是,我无法让迁移的VM读取根文件系统:
kmod: failed to exec /bin/modprobe -s -k block-major-8, errno = 2
VFS Cannot open root device "sda2" or 08:02
Please append a correct "root=" boot option
Kernel panic: VFS: unable to mount root fs on 08:02initrd文件具有正确的内核模块,linuxrc文件正在显式地运行这些模块。同样的行为发生在模拟的MegaRAID SAS 8708EM2和LSI-53c895a上。将磁盘映射为SATA,内核甚至不会加载。
我可以使用可引导的CD-ROM在VM上挂载和fsck磁盘映像,并且文件系统和分区表似乎没有任何问题。
将磁盘映射为IDE会产生不同的错误(但仍然没有启动):
Mounting root filesystem
mount: error 6 mounting ext3
pivotroot: pivot+root(/sysroot,/sysroo/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 128k freed
Kernel panic: No init found. Try passing init= option to kernel.发布于 2020-10-27 18:43:27
发现问题了。在加载scsi_mod模块之前,SCSI设备驱动程序正在加载(失败)。通过更改initrd映像中linuxrc文件中的顺序来修正。
https://serverfault.com/questions/1040265
复制相似问题