Created
October 14, 2015 18:00
-
-
Save ebenolson/6849ece97524eb9da57a to your computer and use it in GitHub Desktop.
packer ubuntu 14.04 esxi
This file contains hidden or 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
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 packer | |
d-i passwd/user-uid string 900 | |
d-i passwd/user-password password packer | |
d-i passwd/user-password-again password packer | |
d-i passwd/username string packer | |
d-i pkgsel/include string openssh-server | |
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 |
This file contains hidden or 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
{ | |
"builders": [{ | |
"type": "vmware-iso", | |
"guest_os_type": "Ubuntu-64", | |
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.3-server-amd64.iso", | |
"iso_checksum": "0501c446929f713eb162ae2088d8dc8b6426224a", | |
"iso_checksum_type": "sha1", | |
"disk_size": "10000", | |
"ssh_username": "packer", | |
"floppy_files": [ | |
"preseed.cfg" | |
], | |
"headless": "true", | |
"boot_wait": "5s", | |
"boot_command": [ | |
"<esc><esc><enter><wait>", | |
"/install/vmlinuz ", | |
"preseed/file=/floppy/preseed.cfg ", | |
"debian-installer=en_US auto locale=en_US 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 ", | |
"initrd=/install/initrd.gz -- <enter><wait><enter>" | |
], | |
"shutdown_command": "shutdown -P now", | |
"remote_type": "esx5", | |
"remote_port": "22", | |
"remote_host": "172.16.155.128", | |
"remote_datastore": "datastore1", | |
"remote_username": "root", | |
"remote_password": "{{env `ESXI_PASSWORD`}}", | |
"vmx_data": { | |
"memsize": "1024", | |
"numvcpus": "2", | |
"ethernet0.present": "TRUE", | |
"ethernet0.startConnected": "TRUE", | |
"ethernet0.virtualDev": "e1000", | |
"ethernet0.networkName": "VM Network", | |
"ethernet0.addressType": "generated", | |
"ethernet0.connectionType": "bridged", | |
"ethernet0.generatedAddressOffset": "0", | |
"ethernet0.wakeOnPcktRcv": "FALSE" | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment