web-dev-qa-db-ja.com

PXEで12.10をインストールできない

ローカルサーバーからUbuntu 12.10とPXE(Cobbler)およびKickstartをインストールしようとしています。ある時点で、インストールはミラーからファイルをアップロードできないというメッセージを表示しなくなります。ワークステーションのインストールログは正常に見えます。ログの最後は次のとおりです。

net-retriever: gpgv: Good signature from "Ubuntu CD Image Automatic Signing Key <[email protected]>"
anna [4222]: cat: can't open '/tmp/net-retriever-4226-deduplicate/*': No such file or directory

Apacheのログにエラー(404)は表示されません。

12.04でも同様のセットアップがあり、正常に動作しますが、唯一の違いはUbuntuの代替CDを使用することです。 12.10では、インストールイメージにnetbootフォルダーを手動で追加したデフォルトのISOを使用しました(netboot.tar.gzはinstall/netbootフォルダーに圧縮されていません)。

PXEエントリは次のようになります。

LABEL ubuntu-12.10-i386
kernel /images/ubuntu-12.10-i386/linux
MENU LABEL ubuntu-12.10-i386
append initrd=/images/ubuntu-12.10-i386/initrd.gz ksdevice=bootif lang= preseed/url=http://10.0.0.1/cblr/ks_mirror/ubuntu-12.10-i386/preseed/ubuntu.seed locale=en_US text kssendmac priority=critical  ks=http://10.0.0.1/cblr/svc/op/ks/profile/ubuntu-12.10-i386

キックスタートファイル:

#Generated by Kickstart Configurator
#platform=x86
#System language
lang fr_CA
#Language modules to install
langsupport fr_CA
#System keyboard
keyboard ca_multix
#System mouse
mouse
#System timezone
timezone America/Montreal
#Root password
rootpw --disabled
#Initial user
user administrateur --fullname "user" --iscrypted --password ***
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use CDROM installation media
#cdrom
# Use network installation
url --url=http://10.0.0.1/cblr/ks_mirror/ubuntu-12.10-i386
#System bootloader configuration
bootloader --location=mbr 
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel 
#Disk partitioning information
part /boot --fstype ext4 --size 512 --asprimary 
part swap --size 4096
part / --fstype ext4 --size 30720
part /home --fstype ext4 --size 1 --grow 
#System authorization infomation
auth  --useshadow  --enablemd5 
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled 
#Do not configure the X Window System
skipx
%pre
exec < /dev/tty6 > /dev/tty6 2> /dev/tty6
chvt 6
MACHINE=""
while [ "$MACHINE" == "" ]; do
echo -n "Machine name: "
read MACHINE
done
echo "MACHINE=$MACHINE" > /tmp/answers.txt
DOMAINE=""
while [ "$DOMAIN" == "" ]; do
echo -n "Domain name: "
read DOMAIN
done
echo "DOMAIN=$DOMAIN" >> /tmp/answers.txt
chvt 1
exec < /dev/tty1 > /dev/tty1 2> /dev/tty1
...
4
user99905

apt-mirrorを使用して、欠落しているリポジトリをダウンロードしますmain/debian-installer(約50 MB)これは、ネットブートインストールに必要です。過去に代替CDで提示されました。

Sudo apt-get install apt-mirror

/etc/apt/mirror.listのすべてのdeb *行をコメント化し、次を追加します

deb http://archive.ubuntu.com/ubuntu quantal main/debian-installer

またはdeb-AMD64 http://archive.ubuntu.com/ubuntu quantal main/debian-installerはUbuntuのAMD64エディション用です。

Sudo -u apt-mirror apt-mirrorを実行します

少し待ってから、ダウンロードしたファイルを/var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntuからネットブートインストールポイントにコピーします。例えば、

cp -a /var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu /var/www/

/ var/wwwには、すでにdistsおよびpoolサブディレクトリを含むubuntuディレクトリが含まれています。

6
Roman Shiryaev