Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (75 sloc) 1.93 KB
{
"post-processors": [{
"output": "build/centos-6.10-x86_64.box",
"type": "vagrant"
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/centos610/update.sh",
"scripts/centos610/vboxguest.sh"
]
}],
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos610/ks.cfg<enter><wait>",
"<wait10><wait10><wait10><tab>interface=enp0s8<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "RedHat_64",
"hard_drive_interface": "sata",
"headless": false,
"http_directory": "http",
"iso_urls": [
"http://centos.mirror.snu.edu.in/centos/6.10/isos/x86_64/CentOS-6.10-x86_64-minimal.iso"
],
"iso_checksum_type": "sha256",
"iso_checksum": "7c0dee2a0494dabd84809b72ddb4b761f9ef92b78a506aef709b531c54d30770",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_pty" : true,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-centos-6-10-x86_64",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
],
[
"modifyvm",
"{{.Name}}",
"--nic1",
"nat"
],
[
"modifyvm",
"{{.Name}}",
"--nic2",
"hostonly"
],
[
"modifyvm",
"{{.Name}}",
"--hostonlyadapter2",
"vboxnet0"
]
]
}
]
}
You can’t perform that action at this time.