.png)
아나콘다 킥스타트를 사용하여 Ubuntu 10.04 LTS의 네트워크 설치를 자동화하려고 하는데 초기 DHCP 자동 구성을 제외한 모든 것이 실행되는 것 같습니다. 설치 프로그램은 DHCP를 통해 설치를 구성하려고 시도하지만 첫 번째 시도에서 실패합니다. 이렇게 하면 DHCP를 다시 시도할 수 있다는 메시지가 표시되며 두 번째 시도에서는 항상 작동하는 것 같습니다. 내 문제는 DHCP에 대해 재시도를 눌러야 하는 경우 이것이 실제로 자동화되지 않는다는 것입니다. 자동으로 재시도하거나 처음에는 실패하지 않도록 킥스타트 파일에 추가할 수 있는 것이 있습니까? 감사해요.
킥 스타트:
# System language
lang en_US
# Language modules to install
langsupport en_US
# System keyboard
keyboard us
# System mouse
mouse
# System timezone
timezone America/New_York
# Root password
rootpw --iscrypted $1$unrsWyF2$B0W.k2h1roBSSFmUDsW0r/
# Initial user
user --disabled
# Reboot after installation
reboot
# Use text mode install
text
# Install OS instead of upgrade
install
# Use Web installation
url --url=http://10.16.0.1/cobbler/ks_mirror/ubuntu-10.04-x86_64/
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr yes
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part swap --size 512
part / --fstype ext3 --size 1 --grow
# System authorization infomation
auth --useshadow --enablemd5
%include /tmp/pre_install_ubuntu_network_config
# Always install the server kernel.
preseed --owner d-i base-installer/kernel/override-image string linux-server
# Install the Ubuntu Server seed.
preseed --owner tasksel tasksel/force-tasks string server
# Firewall configuration
firewall --disabled
# Do not configure the X Window System
skipx
%pre
wget "http://10.16.0.1/cblr/svc/op/trig/mode/pre/system/Test-D" -O /dev/null
# Network information
# Start pre_install_network_config generated code
# Start of code to match cobbler system interfaces to physical interfaces by their mac addresses
# Start eth0
# Configuring eth0 (00:1A:64:36:B1:C8)
if ip -o link show | grep -i 00:1A:64:36:B1:C8
then
IFNAME=$(ip -o link show | grep -i 00:1A:64:36:B1:C8 | cut -d" " -f2 | tr -d :)
echo "network --device=$IFNAME --bootproto=dhcp" >> /tmp/pre_install_ubuntu_network_config
fi
# End pre_install_network_config generated code
%packages
openssh-server
답변1
다음과 같은 줄을 포함하세요.
network --bootproto=dhcp --device=eth0
%pre 섹션 앞에.