-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos71908pvm.json
47 lines (47 loc) · 1.44 KB
/
centos71908pvm.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"variables": {
"vm_name": "centos71908pvm",
"ssh_user": "vagrant",
"ssh_pass": "vagrant"
},
"builders": [
{
"type": "parallels-iso",
"headless": "true",
"guest_os_type": "centos7",
"iso_url": "https://mirror.umd.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1908.iso",
"iso_checksum": "9a2c47d97b9975452f7d582264e9fc16d108ed8252ac6816239a3b58cef5c53d",
"iso_checksum_type": "sha256",
"vm_name": "{{user `vm_name`}}",
"ssh_username": "{{user `ssh_user`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_timeout": "10m",
"ssh_handshake_attempts" : "20",
"parallels_tools_flavor": "lin",
"ssh_pty": "true",
"disk_size": "8192",
"hard_drive_interface": "sata",
"sata_port_count": "4",
"http_directory": "http",
"boot_command": [
"<esc><wait>linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter><wait>"
],
"shutdown_command": "echo '{{user `ssh_pass`}}' | sudo -S shutdown -P now",
"prlctl": [
[ "set", "{{.Name}}", "--memsize", "1024" ],
[ "set", "{{.Name}}", "--cpus", "2" ]
]
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo yum -y install checkpolicy selinux-policy-devel",
"sudo mount -o loop /home/vagrant/prl-tools-lin.iso /mnt",
"sudo /mnt/install --install-unattended",
"sudo umount /mnt"
]
}
]
}