-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1124 from chenhan1218/ubuntu18.10
Add ubuntu 18.10 support
- Loading branch information
Showing
1 changed file
with
315 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,315 @@ | ||
{ | ||
"builders": [ | ||
{ | ||
"boot_command": [ | ||
"<esc><wait>", | ||
"<esc><wait>", | ||
"<enter><wait>", | ||
"/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.UTF-8<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.UTF-8<wait>", | ||
" netcfg/get_domain=vm<wait>", | ||
" netcfg/get_hostname=vagrant<wait>", | ||
" grub-installer/bootdev=/dev/sda<wait>", | ||
" noapic<wait>", | ||
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>", | ||
" -- <wait>", | ||
"<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | ||
"guest_os_type": "Ubuntu_64", | ||
"hard_drive_interface": "sata", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "../builds/packer-{{user `template`}}-virtualbox", | ||
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "virtualbox-iso", | ||
"vboxmanage": [ | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--memory", | ||
"{{ user `memory` }}" | ||
], | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--cpus", | ||
"{{ user `cpus` }}" | ||
] | ||
], | ||
"virtualbox_version_file": ".vbox_version", | ||
"vm_name": "{{ user `template` }}" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<esc><wait>", | ||
"<esc><wait>", | ||
"<enter><wait>", | ||
"/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.UTF-8<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.UTF-8<wait>", | ||
" netcfg/get_domain=vm<wait>", | ||
" netcfg/get_hostname=vagrant<wait>", | ||
" grub-installer/bootdev=/dev/sda<wait>", | ||
" noapic<wait>", | ||
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>", | ||
" -- <wait>", | ||
"<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_os_type": "ubuntu-64", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "../builds/packer-{{user `template`}}-vmware", | ||
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"tools_upload_flavor": "linux", | ||
"type": "vmware-iso", | ||
"vm_name": "{{ user `template` }}", | ||
"vmx_data": { | ||
"cpuid.coresPerSocket": "1", | ||
"ethernet0.pciSlotNumber": "32", | ||
"memsize": "{{ user `memory` }}", | ||
"numvcpus": "{{ user `cpus` }}" | ||
}, | ||
"vmx_remove_ethernet_interfaces": true | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<esc><wait>", | ||
"<esc><wait>", | ||
"<enter><wait>", | ||
"/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.UTF-8<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.UTF-8<wait>", | ||
" netcfg/get_domain=vm<wait>", | ||
" netcfg/get_hostname=vagrant<wait>", | ||
" grub-installer/bootdev=/dev/sda<wait>", | ||
" noapic<wait>", | ||
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>", | ||
" -- <wait>", | ||
"<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_os_type": "ubuntu", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "../builds/packer-{{user `template`}}-parallels", | ||
"parallels_tools_flavor": "lin", | ||
"prlctl": [ | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--memsize", | ||
"{{ user `memory` }}" | ||
], | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--cpus", | ||
"{{ user `cpus` }}" | ||
] | ||
], | ||
"prlctl_version_file": ".prlctl_version", | ||
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "parallels-iso", | ||
"vm_name": "{{ user `template` }}" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<esc><wait>", | ||
"<esc><wait>", | ||
"<enter><wait>", | ||
"/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.UTF-8<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.UTF-8<wait>", | ||
" netcfg/get_domain=vm<wait>", | ||
" netcfg/get_hostname=vagrant<wait>", | ||
" grub-installer/bootdev=/dev/vda<wait>", | ||
" noapic<wait>", | ||
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>", | ||
" -- <wait>", | ||
"<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "../builds/packer-{{user `template`}}-qemu", | ||
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "qemu", | ||
"vm_name": "{{ user `template` }}", | ||
"qemuargs": [ | ||
[ | ||
"-m", | ||
"{{ user `memory` }}M" | ||
], | ||
[ | ||
"-smp", | ||
"{{ user `cpus` }}" | ||
] | ||
] | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<esc><wait10><esc><esc><enter><wait>", | ||
"set gfxpayload=1024x768<enter>", | ||
"linux /install/vmlinuz ", | ||
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed-hyperv.cfg ", | ||
"debian-installer=en_US.UTF-8 auto locale=en_US.UTF-8 kbd-chooser/method=us ", | ||
"hostname={{.Name}} ", | ||
"fb=false debconf/frontend=noninteractive ", | ||
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ", | ||
"keyboard-configuration/variant=USA console-setup/ask_detect=false <enter>", | ||
"initrd /install/initrd.gz<enter>", | ||
"boot<enter>" | ||
], | ||
"boot_wait": "10s", | ||
"communicator": "ssh", | ||
"cpu": "{{ user `cpus` }}", | ||
"disk_size": "{{user `disk_size`}}", | ||
"enable_secure_boot": false, | ||
"generation": "{{user `hyperv_generation`}}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "../builds/packer-{{user `template`}}-hyperv", | ||
"ram_size": "{{user `memory`}}", | ||
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_timeout": "10000s", | ||
"ssh_username": "vagrant", | ||
"switch_name": "{{user `hyperv_switch`}}", | ||
"type": "hyperv-iso", | ||
"vm_name": "{{ user `template` }}" | ||
} | ||
], | ||
"post-processors": [ | ||
{ | ||
"output": "../builds/{{user `box_basename`}}.{{.Provider}}.box", | ||
"type": "vagrant" | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"environment_vars": [ | ||
"HOME_DIR=/home/vagrant", | ||
"http_proxy={{user `http_proxy`}}", | ||
"https_proxy={{user `https_proxy`}}", | ||
"no_proxy={{user `no_proxy`}}" | ||
], | ||
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'", | ||
"expect_disconnect": true, | ||
"scripts": [ | ||
"scripts/update.sh", | ||
"../_common/sshd.sh", | ||
"scripts/networking.sh", | ||
"scripts/sudoers.sh", | ||
"scripts/vagrant.sh", | ||
"../_common/virtualbox.sh", | ||
"scripts/vmware.sh", | ||
"../_common/parallels.sh", | ||
"scripts/hyperv.sh", | ||
"scripts/cleanup.sh", | ||
"../_common/minimize.sh" | ||
], | ||
"type": "shell" | ||
} | ||
], | ||
"variables": { | ||
"box_basename": "ubuntu-18.10", | ||
"build_timestamp": "{{isotime \"20060102150405\"}}", | ||
"cpus": "1", | ||
"disk_size": "65536", | ||
"git_revision": "__unknown_git_revision__", | ||
"headless": "", | ||
"http_proxy": "{{env `http_proxy`}}", | ||
"https_proxy": "{{env `https_proxy`}}", | ||
"hyperv_generation": "2", | ||
"hyperv_switch": "{{env `hyperv_switch`}}", | ||
"iso_checksum": "cf9250781dadd919f23c9d9612212cad653e35fccc2fbcf6853f67ad09e067ba", | ||
"iso_checksum_type": "sha256", | ||
"iso_name": "ubuntu-18.10-server-amd64.iso", | ||
"memory": "1024", | ||
"mirror": "http://cdimage.ubuntu.com", | ||
"mirror_directory": "ubuntu/releases/18.10/release", | ||
"name": "ubuntu-18.10", | ||
"no_proxy": "{{env `no_proxy`}}", | ||
"preseed_path": "preseed.cfg", | ||
"template": "ubuntu-18.10-amd64", | ||
"version": "TIMESTAMP" | ||
} | ||
} |