Skip to content

Commit

Permalink
Merge pull request #6 from noushi/master
Browse files Browse the repository at this point in the history
Add support for RHEL 7.4 (vbox)
  • Loading branch information
jmassara authored Jun 30, 2018
2 parents e1d108a + 4b8cd05 commit 414686d
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions rhel-7.4-vbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"variables": {
"vm_name": "rhel-7.4-vbox",
"iso_url": "{{env `ISO_URL`}}",
"iso_sha256": "431a58c8c0351803a608ffa56948c5a7861876f78ccbe784724dd8c987ff7000"
},

"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"vm_name": "{{user `vm_name`}}",
"disk_size": "8192",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "2"],
["modifyvm", "{{.Name}}", "--ioapic", "on"],
["modifyvm", "{{.Name}}", "--pae", "on"],
["modifyvm", "{{.Name}}", "--rtcuseutc", "on"],
["modifyvm", "{{.Name}}", "--bioslogodisplaytime", "1"]
],
"iso_checksum_type": "sha256",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_sha256`}}",
"http_directory": "http",
"ssh_wait_timeout": "20m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"boot_wait": "5s",
"boot_command": [
"<esc><wait>",
"vmlinuz initrd=initrd.img net.ifnames=0 biosdevname=0 ",
"ks=http://{{.HTTPIP}}:{{.HTTPPort}}/vbox-ks.cfg",
"<enter>"
]
}],

"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/vagrant.sh",
"scripts/sshd.sh",
"scripts/virtualbox.sh",
"scripts/cleanup.sh"
]
}],

"post-processors": [{
"type": "vagrant",
"output": "{{user `vm_name`}}.box",
"keep_input_artifact": true
}]
}

0 comments on commit 414686d

Please sign in to comment.