Ubuntu 20.04 PXE 启动失败 — “无法在网络上找到实时文件系统”

Ubuntu 20.04 PXE 启动失败 — “无法在网络上找到实时文件系统”

当尝试通过 PXE 启动 Ubuntu 20.04 时,出现错误Unable to find a live file system on the network

我使用 NFS 方法:

menu label ^Install ubuntu
kernel /images/ubuntu20-04/casper/vmlinuz 
append initrd=/images/ubuntu20-04/casper/initrd nfsroot=192.168.2.1:/nfs_share/ubuntu ro netboot=nfs boot=casper ip=dhcp ---

截屏

我怎样才能解决这个问题?

答案1

我遇到了和你一样的错误。

原因可能是我使用了错误的启动文件。

以下是我为使它发挥作用所做的事情:

 mount -o loop  /var/www/kickstart/ubuntu2004/ubuntu-20.04.4-live-server-amd64.iso /mnt
 cd casper/
###
hwe-initrd  hwe-vmlinuz  initrd  vmlinuz 

我使用了iPxeboot。这是我的启动菜单。

:ubuntu2004

        # initrd=XXX of 'kernel` line is a must.
        # /boot/efi is a must if you don't partition automatically.
        # https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html
        # You can provide meta-data and user-data to a local vm boot via files on a vfat or iso9660 filesystem. The filesystem volume label must be cidata or CIDATA.
        # Memory should be more than 4G, otherwise, cloud-init fails to start.
        # UEFI, https://askubuntu.com/questions/1238070/deploy-ubuntu-20-04-on-bare-metal-or-virtualbox-vm-by-pxelinux-cloud-init-doesn
        # cloud-net\; s=xxx

        kernel ${base}/images/ubuntu2004/vmlinuz root=/dev/ram0 ramdisk_size=1500000 ip=dhcp  url=${base}:8081/ubuntu2004/ubuntu-20.04.4-live-server-amd64.iso autoinstall ds=nocloud-net;s=${base}:8081/ubuntu2004/
        initrd ${base}/images/ubuntu2004/initrd
        boot || goto failed
        goto start

相关内容