【问题标题】:activating network-console in debian-installer remotely远程激活 debian-installer 中的网络控制台
【发布时间】:2013-12-18 18:45:14
【问题描述】:

我正在尝试远程安装服务器机架。我的 preseed 似乎在安装过程中挂在物理服务器上,所以我尝试按照here 的描述激活 debian-installer 的网络控制台。 因为我的 IP 地址在我的 dhcp 服务器中是静态定义的,所以我跳过了网络接口的静态分配,所以我的预置代码如下所示:

    d-i     preseed/early_command   string  anna-install network-console
    d-i     network-console/password        password test
    d-i     network-console/password-again  password test
    d-i     netcfg/get_nameservers  string
    d-i     netcfg/get_ipaddress    string
    d-i     netcfg/get_netmask      string 255.255.255.0
    d-i     netcfg/get_gateway      string

我的安装(出于测试目的在虚拟机上)最终显示一条消息“使用 SSH 继续远程安装”。

我的问题是:我可以通过使用 debian-installer preseed 命令输入“继续”来简单地确认此消息吗?

对我来说,仅通过物理访问确认远程访问机器似乎有点奇怪。 (当然我知道这个确认的安全方面,但它根本不是很方便)

【问题讨论】:

    标签: ubuntu ssh installation debian


    【解决方案1】:

    问题就解决了,简单的添加

       d-i     network-console/start   select  continue
    

    到 preseed 文件,这会导致 debian-installer 选择 network-console 的 start-template 中的 continue 按钮。 我最终的 preseed sn-p 看起来像这样:

      d-i     preseed/early_command   string  anna-install network-console
      d-i     network-console/password        password test
      d-i     network-console/password-again  password test
      d-i     network-console/start   select  continue
      d-i     netcfg/get_nameservers  string
      d-i     netcfg/get_ipaddress    string
      d-i     netcfg/get_netmask      string 255.255.255.0
      d-i     netcfg/get_gateway      string
    

    我可以通过 ssh 登录到我的安装机器,而无需进行物理交互。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-14
      • 1970-01-01
      • 2021-05-28
      • 2023-01-30
      • 1970-01-01
      相关资源
      最近更新 更多