Added ssh_host
This commit is contained in:
parent
17d4199efd
commit
05171a80a3
@ -2,27 +2,28 @@ packer {
|
|||||||
required_plugins {
|
required_plugins {
|
||||||
qemu = {
|
qemu = {
|
||||||
version = ">= 1.0.10"
|
version = ">= 1.0.10"
|
||||||
source = "github.com/hashicorp/qemu"
|
source = "github.com/hashicorp/qemu"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
source "qemu" "almalinux-9" {
|
source "qemu" "almalinux-9" {
|
||||||
iso_url = "https://repo.almalinux.org/almalinux/9.3/isos/x86_64/AlmaLinux-9.3-x86_64-boot.iso"
|
iso_url = "https://repo.almalinux.org/almalinux/9.3/isos/x86_64/AlmaLinux-9.3-x86_64-boot.iso"
|
||||||
iso_checksum = "sha256:af5377a1d16bbe599ea91a8761ad645f2f54687075802bdc0c0703ee610182e9"
|
iso_checksum = "sha256:af5377a1d16bbe599ea91a8761ad645f2f54687075802bdc0c0703ee610182e9"
|
||||||
output_directory = "/srv/kvm/"
|
output_directory = "/srv/kvm/"
|
||||||
shutdown_command = "echo 'packer' | sudo -S poweroff"
|
shutdown_command = "echo 'packer' | sudo -S poweroff"
|
||||||
disk_size = "50000M"
|
disk_size = "5000M"
|
||||||
format = "qcow2"
|
format = "qcow2"
|
||||||
accelerator = "kvm"
|
accelerator = "kvm"
|
||||||
ssh_username = "xadmin"
|
ssh_host = "kamino.int.metaunix.net"
|
||||||
ssh_password = "s0m3password"
|
ssh_username = "xadmin"
|
||||||
ssh_timeout = "20m"
|
ssh_password = "s0m3password"
|
||||||
vm_name = "almalinux-9"
|
ssh_timeout = "20m"
|
||||||
net_device = "virtio-net"
|
vm_name = "almalinux-9"
|
||||||
disk_interface = "virtio"
|
net_device = "virtio-net"
|
||||||
boot_wait = "10s"
|
disk_interface = "virtio"
|
||||||
boot_command = ["<tab> text inst.ks=http://ks-v1.int.metaunix.net/kickstarts/almalinux-9-server.ks<enter><wait>"]
|
boot_wait = "10s"
|
||||||
|
boot_command = ["<tab> text inst.ks=http://ks-v1.int.metaunix.net/kickstarts/almalinux-9-server.ks<enter><wait>"]
|
||||||
}
|
}
|
||||||
|
|
||||||
build {
|
build {
|
||||||
|
Loading…
Reference in New Issue
Block a user