Вот мой build.json
файл для упаковщикаDebianInstaller не начал
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"http_directory": "http",
"iso_url": "http://mirrors.evowise.com/linuxmint//stable/18/linuxmint-18-xfce-64bit.iso",
"iso_checksum_url": "https://ftp.heanet.ie/mirrors/linuxmint.com/stable/18/sha256sum.txt",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"boot_command": [
"<esc><wait><esc><wait>",
"/casper/vmlinuz initrd=/casper/initrd.lz",
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" boot=casper automatic-ubiquity quiet splash noprompt",
" -- ",
"<enter>"
],
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"hard_drive_interface": "sata",
"output_directory": "target",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
}]
}
и мой preseed.cfg
(находится в HTTP суб директории)
#Step 1
d-i debian-installer/locale string en_US
#Step 2
d-i time/zone string Europe/Warsaw
#Step 3
d-i console-setup/layoutcode string pl
#Step 4
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select atomic
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
#Step 5
d-i passwd/user-fullname string vagrant
d-i passwd/username string vagrant
d-i passwd/user-password password vagrant
d-i passwd/user-password-again password vagrant
d-i user-setup/allow-password-weak boolean true
d-i netcfg/get_hostname string vagrant
d-i passwd/auto-login boolean true
# Use non-free packages
ubiquity ubiquity/use_nonfree boolean true
#if you want to start commands after the installation
ubiquity ubiquity/success_command string in-target apt-get -y install openssh-server && /etc/init.d/ssh restart;
#Step 6
ubiquity ubiquity/summary note
ubiquity ubiquity/reboot boolean true
Я понимаю, что "http_directory": "http"
, публиковать через HTTP-сервер и url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg
должен загрузите его. Однако этого не происходит. Машина загружается только в Linux Mint, и я могу вручную установить ее через графический интерфейс. Что мне не хватает?
Что странно Я изменил с монетного двора 18 xfce на монетный двор 17,3 xfce, и он установлен. Это какая-то ошибка? – abc