Hi all,
最近在做Ubuntu14.04.2的网络安装,目前被卡在一个问题上,无法完成安装,具体问题如下:
尽管采用了PXE方式引导,并且kernel参数中指定了httproot为局域网一台web server,但发现安装时还是会找互联网的mirror去获取相关安装包,而之前在做CentOS的PXE安装时就没这个问题,不知是否有前辈成功配置过仅通过局域网安装源进行网络安装?
我的preseed:
代码:
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/language string en
d-i debian-installer/country string CN
d-i localechooser/supported-locales en_US.UTF-8, zh_CN.UTF-8
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i netcfg/enable boolean true
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string StreamOcean
d-i mirror/country string manual
d-i mirror/http/hostname string 172.16.2.220:81
d-i mirror/http/directory string /instsvr/x86_64/ub14042_dsk
d-i mirror/http/proxy string
d-i clock-setup/utc boolean true
d-i time/zone string Asia/Harbin
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string cn.pool.ntp.org
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/expert_recipe string \
boot-root :: \
200 50 500 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
500 10000 1000000000 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
64 512 200% linux-swap \
method{ swap } format{ } \
.
d-i partman/default_filesystem string ext4
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/mount_style select traditional
d-i passwd/root-login boolean true
d-i passwd/make-user boolean true
d-i passwd/root-password-crypted password $1$vj7ZTIBl$rhfaATvqUDwLgfnR0UJVi.
d-i passwd/auto-login string true
d-i passwd/user-fullname string tp
d-i passwd/username string tp
d-i passwd/user-password-crypted password $1$vj7ZTIBl$rhfaATvqUDwLgfnR0UJVi.
d-i user-setup/encrypt-home boolean false
d-i debian-installer/allow_unauthenticated boolean true
tasksel tasksel/first multiselect standard, ubuntu-desktop
d-i pkgsel/include string vim openssh-server build-essential
d-i pkgsel/upgrade select none
d-i pkgsel/language-packs multiselect en zh
d-i pkgsel/update-policy select none
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/password-crypted password $1$VDOOZktb$icyoDYG//qsAQYLfceHmx/
d-i finish-install/reboot_in_progress note
d-i debian-installer/exit/reboot boolean true
xserver-xorg xserver-xorg/autodetect_monitor boolean true
xserver-xorg xserver-xorg/config/monitor/selection-method \
select medium
xserver-xorg xserver-xorg/config/monitor/mode-list \
select 1024x768 @ 60 Hz
安装失败后的syslog会有几行提示,然后就退出安装了:
代码:
Jul 10 18:09:30 anna[2207]: WARNING **: bad d-i Packages file
Jul 10 18:09:30 debconf: --> GET mirror/protocol
Jul 10 18:09:30 debconf: <-- 0 http
Jul 10 18:09:30 debconf: --> GET mirror/http/hostname
Jul 10 18:09:30 debconf: <-- 0 172.16.2.220:81
Jul 10 18:09:30 debconf: --> GET mirror/http/directory
Jul 10 18:09:30 debconf: <-- 0 /instsvr/x86_64/ub14042_dsk
Jul 10 18:09:30 debconf: --> GET apt-setup/security_host
Jul 10 18:09:30 debconf: <-- 10 apt-setup/security_host doesn't exist
Jul 10 18:09:30 debconf: --> GET apt-setup/overlay_host
Jul 10 18:09:30 debconf: <-- 10 apt-setup/overlay_host doesn't exist
Jul 10 18:09:30 debconf: --> GET apt-setup/overlay_directory
Jul 10 18:09:30 debconf: <-- 10 apt-setup/overlay_directory doesn't exist
Jul 10 18:09:30 debconf: --> GET debconf/priority
Jul 10 18:09:30 debconf: <-- 0 high
Jul 10 18:09:30 main-menu[219]: INFO: Menu item 'download-installer' succeeded but requested to be left unconfigured.