Eu tento instalar o Ubuntu 16.04 LTS em um VirtualBox - Vagrant com a ferramenta Packer para criar e provisionar automaticamente a VM. Quando eu lanço meu comando packer build
, a tela de instalação automática é executada corretamente com o comando de inicialização passado e a resposta de pergunta-resposta automaticamente.
Mas o erro é detectado com a configuração dos discos de partição.
Você pode me ajudar a entender por que e a parte do meu arquivo de comando preseed ou boot é falsa?
erro de tela na VM:
Oarquivopreseed.cfg:
#UbuntuServer16.04d-idebian-installer/localestringen_GB.UTF-8d-iconsole-setup/ask_detectbooleanfalsed-ikeyboard-configuration/xkb-keymapselectgbd-ikeyboard-configuration/layoutstring"United Kingdom"
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned
d-i netcfg/get_domain string unassigned
d-i mirror/country string UK
d-i mirror/http/proxy string
d-i clock-setup/utc boolean true
d-i time/zone string Europe/London
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string uk.pool.ntp.org
d-i partman-auto/disk string /dev/vda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/new_vg_name string sys_vg
d-i partman-auto/choose_recipe atomic
d-i partman-auto-lvm/guided_size string max
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-auto/confirm boolean true
d-i passwd/root-login boolean false
d-i passwd/make-user boolean false
d-i passwd/user-fullname string tux
d-i passwd/username string tux
d-i passwd/user-password password Password1
d-i passwd/user-password-again password Password1
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
tasksel tasksel/first multiselect server, openssh-server
d-i pkgsel/include string openssh-server update-motd
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 finish-install/reboot_in_progress note
a parte do comando de inicialização do json packer:
"<enter><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>",
"auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/test-preseed.cfg ",
"debian-installer=en_CA locale=en_CA kbd-chooser/method=us ",
"hostname=rails-5-jade ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"vga=788 initrd=/install/initrd.gz quiet --- ",
"<enter>"