-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer.pkr.hcl
56 lines (49 loc) · 1.33 KB
/
packer.pkr.hcl
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
48
49
50
51
52
53
54
packer {
required_plugins {
proxmox = {
version = ">= 1.1.2"
source = "github.com/hashicorp/proxmox"
}
}
}
source "proxmox-clone" "git" {
# ID
task_timeout = "15m"
# Enter name of template in clone_vm
clone_vm = ""
# Change proxmox_url with your proxmox_url
proxmox_url = "https://192.168.0.1:8006/api2/json"
# Replace username of Proxmox
# Form : username@[pve/pam]![token_name]
username = "nonnetrapue@pve!packer"
token = ""
# In node, write Proxmox server name
node = ""
cores = 2
sockets = 2
# Important : Rocky doesn't support KVM cpu type (kernel panic), use host cpu type
cpu_type = "host"
memory = 2048
insecure_skip_tls_verify = true
# Base ISO File configuration
# System
# Change vm_name with vm target
vm_name = "Rocky"
# Change vm_id with vm_id target. Without write vm_id, vm_id will be random
vm_id = ""
scsi_controller = "virtio-scsi-single"
# Replace ssh_password and ssh_username with root account of VM
ssh_password = ""
ssh_timeout = "20m"
ssh_username = ""
}
build {
// Load iso configuration
sources = ["source.proxmox-clone.git"]
provisioner "shell" {
# In inline, enter few of linux commands
inline = [
""
]
}
}