如何调试 Dell R710 上安装失败的 Ubuntu 15.04 PXE?

如何调试 Dell R710 上安装失败的 Ubuntu 15.04 PXE?

我已经构建了一个 PXE 安装服务器,它使用 Kickstart 脚本安装 Ubuntu 15.04,并且它在 VMWare / Virtual Box VM 上运行良好。最多需要 15 分钟即可安装。

我昨天在 Dell R710 上尝试了此操作,初始 TFTP 启动过程没有问题,安装程序运行并且(仅没有 %posts)显示安装成功消息并重新启动。然后服务器 BIOS POST 停留在黑屏(VGA 和 DRAC)上。它似乎获取了 IP 地址(DHCP),但没有 SSH(Kickstart 脚本)。

将我正在通过网络安装的相同 ISO “刻录”到 USB 拇指驱动器上,安装和启动均正常。

    #System language
    lang en_US
    #Language modules to install
    langsupport en_US
    #System keyboard
    keyboard us
    #System mouse
    mouse
    #System timezone
    timezone Australia/Sydney
    #Root password
    rootpw --iscrypted 
    #Initial user
    user foo 
    #Reboot after installation
    reboot
    #Use text mode install
    text
    #Install OS instead of upgrade
    install
    #Use Web installation
    url --url http://172.16.19.1/ubuntu
    #System bootloader configuration
    bootloader --location=mbr
    #Clear the Master Boot Record
    zerombr yes
    #Partition clearing information
    clearpart --all --initlabel
    #Disk partitioning information
    part swap --recommended
    part / --fstype ext4 --size 1 --grow
    #System authorization infomation
    auth  --useshadow  --enablemd5
    #Network information
    network --bootproto=dhcp --device=em1
    #Firewall configuration
    firewall --disabled
    #Do not configure the X Window System
    skipx

    %post
    #download server files
    wget http://172.16.19.1/files/authorized_keys -P /root/.ssh/
    wget http://172.16.19.1/files/authorized_keys -P /home/ordadmin/.ssh/
    chmod 600 /root/.ssh/authorized_keys
    chmod 600 /home/ordadmin/.ssh/authorized_keys

    #add normal apt source list
    (
    cat <<'EOP'
    ###### Ubuntu Main Repos
    deb http://au.archive.ubuntu.com/ubuntu/ vivid main restricted universe multiverse
    deb-src http://au.archive.ubuntu.com/ubuntu/ vivid main restricted universe multiverse

    ##### Ubuntu Update Repos
    deb http://au.archive.ubuntu.com/ubuntu/ vivid-security main restricted universe multiverse
    deb http://au.archive.ubuntu.com/ubuntu/ vivid-updates main restricted universe multiverse
    deb-src http://au.archive.ubuntu.com/ubuntu/ vivid-security main restricted universe multiverse
    deb-src http://au.archive.ubuntu.com/ubuntu/ vivid-updates main restricted universe multiverse

    ###### Ubuntu Partner Repo
    deb http://archive.canonical.com/ubuntu vivid partner
    deb-src http://archive.canonical.com/ubuntu vivid partner
    EOP
    ) > /etc/apt/sources.list

    (
    cat <<'EOP'
    #!/bin/sh
    # Filename:     /etc/dhcp/dhclient-exit-hooks.d/hostname
    # Purpose:      Used by dhclient-script to set the hostname of the system
    #               to match the DNS information for the host as provided by
    #               DHCP.
    #
    # Do not update hostname for virtual machine IP assignments

    if [ "$interface" != "em1" ]
      then
      return
    fi

    if [ "$reason" != BOUND ] && [ "$reason" != RENEW ] \
      && [ "$reason" != REBIND ] && [ "$reason" != REBOOT ]
      then
      return
    fi

    sleep 3;
    echo dhclient-exit-hooks.d/hostname: Dynamic IP address = $new_ip_address
    hostname=$(host $new_ip_address | cut -d ' ' -f 5 | sed -r 's/((.*)[^\.])\.?/\1/g' )
    echo $hostname > /etc/hostname
    hostname $hostname
    echo dhclient-exit-hooks.d/hostname: Dynamic Hostname = $hostname
    EOP
    ) > /etc/dhcp/dhclient-exit-hooks.d/hostname

    apt-get update
    apt-get upgrade -y
    apt-get -y install python
    apt-get -y install openssh-server

你没有 KICKSTART 吗?

答案1

如果它在不同的客户端上运行良好,但在您的 Dell R710 上出现黑屏,那么您应该考虑视频驱动程序问题。

相关内容