Preseed ignorando “disable_dhcp”

1

Estou tentando criar uma VM em um servidor ESXi usando o Packer. O problema que estou tendo agora é que quaisquer que sejam as opções que eu coloquei no arquivo de preseed (veja abaixo), o instalador continua me dizendo que nenhum DHCP foi respondido e aparece com uma caixa de diálogo para me permitir selecionar a configuração da rede.

Escusado será dizer que pretendo usar esses modelos (JSON + preseed) para implantar dezenas de VMs. Este é um não-ir se eu continuar sendo solicitado para a configuração correta do DHCP, certo?

Aqui está um trecho do arquivo JSON (Packer) no qual ele passa os parâmetros do kernel para o grub, seguido por um trecho do meu arquivo preseed. Se alguém tiver uma ideia, por favor me avise.

JSON: minimalOS.json

},
    "boot_command" :
    [
        "<esc><wait>", "install <wait>",
        "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
        "debian-installer=en_US <wait>", "auto <wait>", "locale=en_US <wait>",
        "kbd-chooser/method=us <wait>", "keyboard-configuration/xkb-keymap=us <wait>",
        "fb=false <wait>", "debconf/frontend=noninteractive <wait>",
        "console-setup/ask_detect=false <wait>", "console-keymaps-at/keymap=us <wait>",
        "<enter><wait>"
    ]

O arquivo de preseed: preseed.cfg

# We don't want to be bothered with trivial questions
d-i debconf/priority string critical
d-i netcfg/choose_interface select auto
d-i netcfg/disable_autoconfig boolean false
d-i netcfg/disable_dhcp boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/confirm_static boolean true
d-i netcfg/get_ipaddress string 10.5.5.230
d-i netcfg/get_netmask string 255.248.0.0
d-i netcfg/get_gateway string 10.1.1.1
d-i netcfg/get_nameservers string 10.1.1.1
d-i netcfg/get_hostname string jfg
d-i netcfg/get_domain string wa-prod.org
d-i netcfg/hostname string jfg

(E sim, a configuração da rede é válida na vida real)

    
por J.F.Gratton 20.01.2015 / 00:20

0 respostas