gpt4 book ai didi

ubuntu - 远程激活 debian-installer 中的网络控制台

转载 作者:行者123 更新时间:2023-12-04 18:41:52 31 4
gpt4 key购买 nike

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

    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 命令输入“继续”来简单地确认此消息吗?

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

最佳答案

问题解决了,只需添加

   d-i     network-console/start   select  continue

到 preseed 文件,这会导致 debian-installer 选择 network-console 的 start-template 中的 continue 按钮。
我的最终预置片段如下所示:
  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 登录到我的安装机器,而无需进行物理交互。

关于ubuntu - 远程激活 debian-installer 中的网络控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20665987/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com