arquivo preseed.cfg para instalação automática do Ubuntu 16.04 LTS

4

Eu já tenho um preseed.cfg para a instalação do Ubuntu 14.04 LTS assim:

    choose-mirror-bin mirror/http/proxy string
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm 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/confirm_write_new_label boolean true
d-i passwd/user-fullname string vagrant
d-i passwd/user-uid string 900
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant
d-i passwd/username string vagrant
d-i pkgsel/include string openssh-server cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select unattended-upgrades
d-i pkgsel/upgrade select full-upgrade
d-i time/zone string UTC
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
tasksel tasksel/first multiselect standard, ubuntu-server

Mas este arquivo não roda novamente com a instalação do Ubuntu 16 LTS. Eu não entendo e criei este arquivo sozinho. Você pode me ajudar a encontrar um arquivo preseed.cfg para a nova versão do Ubuntu 16.04 LTS, por favor?

EDIT 1

Eu tento criar um arquivo preseed.cfg com a ferramenta gráfica: system-config-kickstart mas o arquivo gerado com esta ferramenta não está formatado assim (com d-i no primeiro de cada linha) e eu já emito este arquivo. Estou bloqueando a tela da linguagem de seleção. Talvez o problema seja apenas essa parte da instalação e não todo o arquivo. Eu investiguei novamente ...

EDIT 2

este é o meu comando de inicialização:

"boot_command": [
  "<esc><wait>",
  "<esc><wait>",
  "<enter><wait>",
  "/install/vmlinuz<wait>",
  " auto<wait>",
  " console-setup/ask_detect=false<wait>",
  " console-setup/layoutcode=fr<wait>",
  " console-setup/modelcode=pc105<wait>",
  " debconf/frontend=noninteractive<wait>",
  " debian-installer=fr_FR<wait>",
  " fb=false<wait>",
  " initrd=/install/initrd.gz<wait>",
  " kbd-chooser/method=fr<wait>",
  " keyboard-configuration/layout=fr<wait>",
  " keyboard-configuration/variant=fr<wait>",
  " locale=fr_FR<wait>",
  " netcfg/get_domain=vm<wait>",
  " netcfg/get_hostname=vagrant<wait>",
  " noapic<wait>",
  " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-16-1.cfg<wait>",
  " -- <wait>",
  "<enter><wait>"
],
    
por darkomen 23.04.2016 / 20:13

2 respostas

1

Este arquivo preseed.cfg funciona perfeitamente para mim

choose-mirror-bin mirror/http/proxy string
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm 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/confirm_write_new_label boolean true
d-i passwd/user-fullname string vagrant
d-i passwd/user-uid string 900
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant
d-i passwd/username string vagrant
d-i pkgsel/include string openssh-server cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common
d-i pkgsel/install-language-support boolean false
d-i pkgsel/update-policy select unattended-upgrades
d-i pkgsel/upgrade select full-upgrade
d-i time/zone string UTC
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
tasksel tasksel/first multiselect standard, ubuntu-server

e o comando boot para construir o VirtualBox com o packer:

  "boot_command": [
    "<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    "/install/vmlinuz<wait>",
    " auto<wait>",
    " console-setup/ask_detect=false<wait>",
    " console-setup/layoutcode=us<wait>",
    " console-setup/modelcode=pc105<wait>",
    " debconf/frontend=noninteractive<wait>",
    " debian-installer=en_US<wait>",
    " fb=false<wait>",
    " initrd=/install/initrd.gz<wait>",
    " kbd-chooser/method=us<wait>",
    " keyboard-configuration/layout=USA<wait>",
    " keyboard-configuration/variant=USA<wait>",
    " locale=en_US<wait>",
    " netcfg/get_domain=vm<wait>",
    " netcfg/get_hostname=vagrant<wait>",
    " grub-installer/bootdev=/dev/sda<wait>",
    " noapic<wait>",
    " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
    " -- <wait>",
    "<enter><wait>"
  ],

Esse código funciona perfeitamente para mim com o Packer > Vagrant > Virtualbox > windows 7. Eu testei para construir um VM básico Ubuntu 16.04.1

    
por darkomen 27.10.2016 / 20:22
0

Este método não funciona no Ubuntu 16.04:

"<esc><wait>",
"<esc><wait>",
"<enter><wait>",

eu uso

"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>"
    
por samolander 09.05.2016 / 02:22