web-dev-qa-db-fra.com

Impossible d'installer 12.10 avec PXE

J'essaie d'installer Ubuntu 12.10 avec PXE (Cobbler) et Kickstart à partir d'un serveur local. À un moment donné, l'installation cesse de me dire qu'elle ne peut pas télécharger un fichier à partir de miroir. Le journal d'installation sur le poste de travail a l'air bien et voici la fin du journal:

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

Je ne vois aucune erreur (404) dans les journaux d'Apache.

J'ai une configuration similaire pour 12.04 qui fonctionne bien et la seule différence est l'utilisation du CD de remplacement d'Ubuntu. Pour 12.10, j’ai utilisé l’ISO par défaut, j’ai ajouté manuellement le dossier netboot à mon image d’installation (netboot.tar.gz non compressé dans le dossier install/netboot).

L'entrée PXE ressemble à ceci:

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

Fichier Kickstart:

#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

utilisez apt-mirror pour télécharger le référentiel manquant main/debian-installer (environ 50 Mo), ce qui est nécessaire pour l’installation par netboot. Il a été présenté sur un autre CD par le passé.

Sudo apt-get install apt-mirror

commentez toutes les lignes deb * dans /etc/apt/mirror.list et ajoutez ce qui suit

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

ou deb-AMD64 http://archive.ubuntu.com/ubuntu quantal main/debian-installer pour l'édition AMD64 d'Ubuntu.

et exécutez Sudo -u apt-mirror apt-mirror

attendez un peu, puis copiez les fichiers téléchargés depuis /var/spool/apt-mirror/mirror/archive.ubuntu.com/ubuntu dans votre point d’installation Netboot. Par exemple,

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

où/var/www contient déjà le répertoire ubuntu avec les sous-répertoires dists et pool.

6
Roman Shiryaev