服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

PXE启动内核恐慌

我在设置PXE启动服务器时遇到问题。 我运行了isc-dhcp-server , tftp-hpa通过tftp(validation过的作品)提供文件,而apache2托piperootfs映像。 PXE客户端似乎正确地下载内核和initrd文件,然后内核恐慌。 这是我的/tftpboot/pxelinux.cfg/default : default pxeboot label pxeboot kernel vmlinuz-3.16.0-4-amd64 append initrd=vmlinuz-3.16.0-4-amd64 ip=dhcp boot=live fetch=http://xxx.xxx.xxx.xxx/filesystem.squashfs 我的服务器是Ubuntu 15.04 mini安装。 我最初按照以下说明创buildfimesystem.squashfs根文件系统映像: http : fimesystem.squashfs 然后我按照这些说明来安装DHCP和TFTP: https : //help.ubuntu.com/community/DisklessUbuntuHowto 但是我不得不修改/etc/default/tftpd-hpa来使TFTP服务文件如下: # /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftpboot" TFTP_ADDRESS="xxx.xxx.xxx.xxx:69" TFTP_OPTIONS="–secure" RUN_DAEMON="yes" 如果TFTP_OPTIONS指令更改TFTP_OPTIONS ,则不再启动tftp。 然后我启动了一个apache2服务器,而且似乎显示了我放在/var/www/html/中的文件,我可以从http://xxx.xxx.xxx.xx/filesystem.squashfs下载文件,但内核在引导时出现混乱。 我最初从我的主机/boot/ dir中取得了kernel和initrd映像,因为我的chroot/boot/ dir是空的,但是随后我使用这些指令在chroot上安装了一个内核: http : //willhaley.com/willhaley/blog/创build-A-定制Debian的现场环境/ chroot chroot apt-get install –no-install-recommends –yes \ linux-image-3.16.0-4-amd64 live-boot […]