Last active
July 13, 2019 10:51
-
-
Save carlpett/de9c4b5aabdaed109f2b0828f54a4ef0 to your computer and use it in GitHub Desktop.
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
{ | |
"variables": { | |
"username": "apiuser@pve", | |
"password": "secret", | |
"proxmox_host": "my-prox" | |
}, | |
"builders": [ | |
{ | |
"type": "proxmox", | |
"proxmox_url": "https://{{user `proxmox_host`}}:8006/api2/json", | |
"insecure_skip_tls_verify": true, | |
"username": "{{user `username`}}", | |
"password": "{{user `password`}}", | |
"node": "{{user `proxmox_host`}}", | |
"vm_id": "1005", | |
"memory": 1024, | |
"cores": 2, | |
"network_adapters": [ | |
{ | |
"model": "virtio", | |
"bridge": "vmbr2", | |
"vlan_tag": "10" | |
} | |
], | |
"disks": [ | |
{ | |
"type": "scsi", | |
"disk_size": "5G", | |
"storage_pool": "local-lvm", | |
"storage_pool_type": "lvm" | |
} | |
], | |
"iso_file": "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso", | |
"http_directory":"./kickstart", | |
"boot_wait": "10s", | |
"boot_command": [ | |
"<up><tab> ip=dhcp inst.cmdline inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter>" | |
], | |
"ssh_username": "root", | |
"ssh_timeout": "15m", | |
"ssh_password": "packer", | |
"unmount_iso": true, | |
"template_name": "fedora-29", | |
"template_description": "Fedora 29-1.2, generated on {{ isotime \"2006-01-02T15:04:05Z\" }}" | |
} | |
] | |
} |
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
install | |
cmdline | |
skipx | |
bootloader | |
firewall --enabled --ssh | |
firstboot --disabled | |
lang en_US.UTF-8 | |
keyboard se | |
timezone --utc Europe/Stockholm | |
zerombr | |
clearpart --all --initlabel | |
part / --size=3000 --grow | |
rootpw packer | |
reboot | |
%packages | |
-@hardware-support | |
-@networkmanager-submodules | |
qemu-guest-agent | |
%end | |
%post | |
systemctl enable qemu-guest-agent | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are my files, fedora works fine but not sure what is wrong with CentOS installation.