Created
July 3, 2013 20:52
-
-
Save databus23/5922713 to your computer and use it in GitHub Desktop.
veewee-to-packer of https://github.com/jedi4ever/veewee/blob/master/templates/ubuntu-12.04.2-server-amd64/definition.rb
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
{ | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", | |
"override": { | |
"virtualbox": { | |
"scripts": [ | |
"scripts/cleanup.sh", | |
"scripts/zerodisk.sh" | |
] | |
}, | |
"vmware": { | |
"scripts": [ | |
"scripts/cleanup.sh" | |
] | |
} | |
} | |
} | |
], | |
"builders": [ | |
{ | |
"type": "virtualbox", | |
"boot_command": [ | |
"<esc><esc><enter><wait>", | |
"/install/vmlinuz noapic preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>", | |
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us <wait>", | |
"hostname={{ .Name }} <wait>", | |
"fb=false debconf/frontend=noninteractive <wait>", | |
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA keyboard-configuration/variant=USA console-setup/ask_detect=false <wait>", | |
"initrd=/install/initrd.gz -- <enter><wait>" | |
], | |
"boot_wait": "4s", | |
"disk_size": 10140, | |
"guest_os_type": "Ubuntu_64", | |
"http_directory": "http", | |
"iso_md5": "af5f788aee1b32c4b2634734309cc9e9", | |
"iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.2-server-amd64.iso", | |
"ssh_username": "vagrant", | |
"ssh_password": "vagrant", | |
"ssh_port": 22, | |
"ssh_wait_timeout": "10000s", | |
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'", | |
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | |
"virtualbox_version_file": ".vbox_version", | |
"vboxmanage": [ | |
[ | |
"modifyvm", | |
"{{.Name}}", | |
"--memory", | |
"512" | |
], | |
[ | |
"modifyvm", | |
"{{.Name}}", | |
"--cpus", | |
"1" | |
] | |
] | |
}, | |
{ | |
"type": "vmware", | |
"boot_command": [ | |
"<esc><esc><enter><wait>", | |
"/install/vmlinuz noapic preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>", | |
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us <wait>", | |
"hostname={{ .Name }} <wait>", | |
"fb=false debconf/frontend=noninteractive <wait>", | |
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA keyboard-configuration/variant=USA console-setup/ask_detect=false <wait>", | |
"initrd=/install/initrd.gz -- <enter><wait>" | |
], | |
"boot_wait": "4s", | |
"disk_size": 10140, | |
"guest_os_type": "ubuntu-64", | |
"http_directory": "http", | |
"iso_md5": "af5f788aee1b32c4b2634734309cc9e9", | |
"iso_url": "http://releases.ubuntu.com/12.04/ubuntu-12.04.2-server-amd64.iso", | |
"tools_upload_flavor": "linux", | |
"ssh_username": "vagrant", | |
"ssh_password": "vagrant", | |
"ssh_port": 22, | |
"ssh_wait_timeout": "10000s", | |
"shutdown_command": "echo 'shutdown -P now' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'", | |
"vmx_data": { | |
"memsize": "512", | |
"numvcpus": "1", | |
"cpuid.coresPerSocket": "1" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment