I am using cobbler 3.3.3
I used the netboot.tar.gz file from here http://http.us.debian.org/debian/dists/ ... s/netboot/
Code: Select all
# cobbler list
distros:
auto-deb-x86_64
pxe-default-image
profiles:
auto-deb-x86_64
pxe-default-profile
systems:
default
auto-vm
repos:
auto-deb-x86_64
Code: Select all
# cobbler distro report --name auto-deb-x86_64
Name : auto-deb-x86_64
Architecture : x86_64
Automatic Installation Template Metadata : {}
TFTP Boot Files : {}
Boot loaders : <<inherit>>
Breed : debian
Comment :
Fetchable Files : {}
Initrd : /srv/tftpboot/debian/debian-installer/amd64/initrd.gz
Kernel : /srv/tftpboot/debian/debian-installer/amd64/linux
Kernel Options : {}
Kernel Options (Post Install) : {}
Management Classes : []
OS Version : bookworm
Owners : <<inherit>>
Redhat Management Key : <<inherit>>
Remote Boot Initrd :
Remote Boot Kernel :
Template Files : {}
Code: Select all
# cobbler profile report --name auto-deb-x86_64
Name : auto-deb-x86_64
Automatic Installation Template : debian-12.seed
Automatic Installation Metadata : <<inherit>>
TFTP Boot Files : <<inherit>>
Boot loaders : <<inherit>>
Comment :
DHCP Tag :
Distribution : auto-deb-x86_64
Enable iPXE? : False
Enable PXE Menu? : True
Fetchable Files : <<inherit>>
DHCP Filename Override :
Kernel Options : <<inherit>>
Kernel Options (Post Install) : <<inherit>>
Parent boot menu :
Management Classes : <<inherit>>
Management Parameters : <<inherit>>
Name Servers : []
Name Servers Search Path : []
Next Server (IPv4) Override : <<inherit>>
Next Server (IPv6) Override : <<inherit>>
Owners : <<inherit>>
Parent Profile :
Proxy : <<inherit>>
Red Hat Management Key : <<inherit>>
Repos : ['auto-deb-x86_64']
Server Override : <<inherit>>
Template Files : {}
Virt Auto Boot : True
Virt Bridge : <<inherit>>
Virt CPUs : 1
Virt Disk Driver Type : raw
Virt File Size(GB) : <<inherit>>
Virt Path :
Virt RAM (MB) : <<inherit>>
Virt Type : kvm
Code: Select all
# cobbler repo report --name auto-deb-x86_64
Name : auto-deb-x86_64
Apt Components (apt only) : ['main', 'universe']
Apt Dist Names (apt only) : ['bookworm', 'bookworm-updates', 'bookworm-security']
Arch : x86_64
Breed : rsync
Comment :
Createrepo Flags : <<inherit>>
Environment Variables : {}
Keep Updated : True
Mirror : /mnt/deb/
Mirror locally : True
Mirror Type : baseurl
Owners : <<inherit>>
Priority : 0
Proxy information : <<inherit>>
RPM List : []
Rsync Options : {}
Yum Options : {'--ignore-release-gpg': '~'}
Code: Select all
#### Contents of the preconfiguration file
#d-i hw-detect/load_firmware boolean true
#d-i hw-detect/load_media boolean true
#### Localization
d-i debian-installer/locale string fr_FR
d-i keymap select fr
d-i keyboard-configuration/xkb-keymap select fr(latin9)
d-i debian-installer/language string fr
d-i debian-installer/country string FR
### Network configuration
d-i netcfg/choose_interface select auto
### Configuration du nom/domaine de la machine
d-i netcfg/get_hostname string $hostname
d-i netcfg/get_domain string mydomain.com
# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
d-i netcfg/disable_dhcp true
# If you want the preconfiguration file to work on systems both with and
# without a dhcp server, uncomment these lines and the static network
# configuration below.
#d-i netcfg/dhcp_failed note
#d-i netcfg/dhcp_options select Configure network manually
# Static network configuration.
d-i netcfg/get_nameservers string 10.17.0.254
d-i netcfg/get_ipaddress string 10.15.0.208
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 10.15.0.254
d-i netcfg/confirm_static boolean true
d-i netcfg/get_ipaddress seen true
d-i netcfg/get_netmask seen true
d-i netcfg/get_nameservers seen true
d-i netcfg/get_gateway seen true
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname seen true
d-i netcfg/get_domain seen true
### Décommenter pour une installation hors-ligne
#d-i netcfg/enable boolean false
### Mirror settings
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string 10.15.0.3
d-i mirror/http/directory string /cobbler/repo_mirror/auto-deb-x86_64
#d-i mirror/http/proxy string http://myproxy:3128
#
d-i debian-installer/allow_unauthenticated boolean true
#d-i mirror/suite string bookworm
#d-i mirror/udeb/suite string bookworm
#d-i mirror/protocol string ftp
#d-i mirror/ftp/hostname string ftp.fr.debian.org
#d-i mirror/ftp/directory string /debian
#d-i mirror/ftp/proxy string
### Version Stable, Testing ou Unstable ?
#d-i apt-setup/use_mirror boolean true
#d-i mirror/suite string stable
### Pas de compte root configuré sur la machine
#d-i passwd/root-login boolean false
### Account setup
#d-i passwd/root-password password Str0ngPa$$WorDr00t
#d-i passwd/root-password-again password Str0ngPa$$WorDr00t
d-i passwd/root-password password root
d-i passwd/root-password-again password root
# To create a normal user account.
d-i passwd/user-fullname string user
d-i passwd/username string normal-user
d-i passwd/user-password password normaluserpwd
d-i passwd/user-password-again password normaluserpwd
d-i passwd/user-uid string 1001
d-i user-setup/allow-password-weak boolean false
# skip creation of a normal user account.
#d-i passwd/make-user boolean false
### Commande pour générer l'empreinte du mot de passe :
### mkpasswd -m sha-512 (motdepasse dans le cas ci-dessous)
#d-i passwd/user-password-crypted password $6$rnPpgCH7$uiSg5eyyTjflS3SMGh1bBMs26qFwFargMV.cUHkOeIOTaQJqsU7v9iDA7VQvdNUVNC.hHX7F0.VNi/aX3TzRJ1
### Clock and time zone setup
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true
d-i time/zone string Europe/Paris
#d-i clock-setup/ntp-server string ntp.server.fr
### Partitioning
#d-i partman-auto/disk string /dev/sda
#
#
#d-i anna/choose_modules multiselect driver-injection-disk-detect
#driver-injection-disk-detect driver-injection-disk/load boolean true
## This is only honoured if partman-auto/method (below) is not set.
d-i partman-auto/init_automatically_partition select biggest_free
#d-i partman/early_command string \
# USBDEV=\$(mount | grep hd-media | cut -d" " -f1 | sed "s/\(.*\)./\1/");\
# BOOTDEV=\$(list-devices disk | grep -v \$USBDEV | head -1);\
# debconf-set partman-auto/disk \$BOOTDEV;\
# debconf-set grub-installer/bootdev \$BOOTDEV;
#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-lvm/confirm_nooverwrite boolean true
d-i partman-auto/choose_recipe select atomic
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
# If you just want to change the default filesystem from ext3 to something
# else, you can do that without providing a full recipe.
# d-i partman/default_filesystem string ext4
### Base system installation
#d-i base-installer/kernel/image string linux-image-amd64
### Apt setup
#d-i apt-setup/non-free boolean true
#d-i apt-setup/contrib boolean true
# You can choose to install restricted and universe software, or to install
# software from the backports repository.
# d-i apt-setup/restricted boolean true
# d-i apt-setup/universe boolean true
# d-i apt-setup/backports boolean true
#
## Uncomment this if you don't want to use a network mirror.
d-i apt-setup/use_mirror boolean false
# Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
# And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use: (without the default security, updates)
d-i apt-setup/services-select multiselect
#d-i apt-setup/services-select multiselect security
#d-i apt-setup/security_host string $server
#d-i apt-setup/security_path string /cblr/repo_mirror/ubuntu14-x86_64
# d-i apt-setup/local0/repository string http://$http_server/ubuntu_custom_packages ./
### Groupes de paquets à installer
### Différents choix possibles (combinables) :
### - standard (nécessaire)
### - print-server
### - ssh-server
### - web-server
### - cinnamon-desktop
### - desktop
### - gnome-desktop
### - kde-desktop
### - lxde-desktop
### - mate-desktop
### - xfce-desktop
### Package selection
tasksel tasksel/first multiselect standard
#tasksel tasksel/remove multiselect desktop, print-server #On choisit de retirer les options d'installation par défaut
#d-i pkgsel/include string sudo wget vim curl #On inclut des paquets supplémentaires
popularity-contest popularity-contest/participate boolean false #On refuse de participer à l'analyse des paquets utilisés
d-i grub-installer/only_debian true
d-i grub-installer/bootdev string default
#d-i grub-installer/bootdev string /dev/sda
# This first command is run as early as possible, just after preseeding is read.
# d-i preseed/early_command string [command]
# This command is run immediately before the partitioner starts. It may be
# useful to apply dynamic partitioner preseeding that depends on the state
# of the disks (which may not be visible when preseed/early_command runs).
# d-i partman/early_command \
# string debconf-set partman-auto/disk "\$(list-devices disk | head -n1)"
# This command is run just before the install finishes, but when there is
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
# d-i preseed/late_command string [command]
d-i preseed/late_command string \
cd /target/root; \
wget http://10.15.0.3/pub/bootstrap/bootstrap-debian-12.sh; \
chmod +x /target/root/bootstrap-debian-12.sh; \
in-target /bin/bash /root/bootstrap-debian-12.sh; \
in-target touch /root/provision-done.txt;
### Finishing up the installation
#Eteindre le système
d-i finish-install/reboot_in_progress note #On confirme la fin de l'installation
#d-i cdrom-detect/eject boolean true #On éjecte le CD
#d-i debian-installer/exit/poweroff boolean true #On éteint la machine