Created
June 2, 2022 12:35
-
-
Save bkmetzler/d17fc843d35e2b5881a1a482efd88ac9 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
source "qemu" "redhat_9" { | |
iso_url = "rhel-baseos-9.0-x86_64-dvd.iso" | |
iso_checksum = "a387f3230acf87ee38707ee90d3c88f44d7bf579e6325492f562f0f1f9449e89" | |
shutdown_command = "/sbin/shutdown -hP now" | |
accelerator = "kvm" | |
output_directory = "output/redhat_9" | |
http_directory = http | |
ssh_username = "root" | |
ssh_password = "myrandompassword" | |
ssh_timeout = "3600s" | |
vnc_bind_address = "0.0.0.0" | |
ssh_handshake_attempts = 500 | |
cpus = 4 | |
disk_interface = "virtio-scsi" | |
disk_size = "40G" | |
disk_cache = "unsafe" | |
disk_discard = "unmap" | |
disk_detect_zeroes = "unmap" | |
disk_compression = true | |
format = "qcow2" | |
headless = false | |
memory = 4096 | |
net_device = "virtio-net" | |
qemu_binary = "/usr/bin/qemu-system-x86_64" | |
qemuargs = [ | |
[ | |
"-cpu", | |
"host,x2apic=on,tsc-deadline=on,hypervisor=on,tsc-adjust=on,erms=on,vaes=on,vpclmulqdq=on,", | |
"spec-ctrl=on,stibp=on,arch-capabilities=on,ssbd=on,xsaves=on,cmp-legacy=on,ibrs=on,", | |
"amd-ssbd=on,virt-ssbd=on,rdctl-no=on,skip-l1dfl-vmentry=on,mds-no=on,pschange-mc-no=on" | |
] | |
] | |
vm_name = "redhat_9.qcow2" | |
boot_wait = "5s" | |
boot_command = [ | |
"<tab><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", | |
"inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/redhat_9.ks<enter><wait>" | |
] | |
} | |
build { | |
sources = [ | |
"qemu.redhat_9" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment