packer-cloudstack icon indicating copy to clipboard operation
packer-cloudstack copied to clipboard

installing CentOS from ISO

Open assistanz247 opened this issue 2 years ago • 0 comments

Hi Team,

I tried to install the centos from ISO using packer. Here is my code.

``source "cloudstack" "centos" { api_key = "<Our Cloudstack API Key>" api_url = "<Our Cloudstack API URL>" zone = "27efd513-9343-43be-a1a7-d1a854d85148" disk_offering = "0789fa34-0d88-4ff9-a43f-ca6c9e2364f4" hypervisor = "XenServer" network = "25591049-15f7-425f-9ade-3b1593c2e41d" secret_key = "c_uqZ8VOub7aJpaS05UUH3IDdAyCV6RiE8MWcI4cWW7r_9smIzyrfdSoN2fD0JgwjEp7wEI_SsKmkUl5fIthwA" service_offering = "5a6fe325-74c1-413f-8582-3e333ce63005" source_iso = "7d7dfa0b-4e2e-44be-9e50-3cb63a52d00c" ssh_username = "root" ssh_private_key_file = "Loges-key.key" template_display_text = "Centos7-x86_64 KVM Packer" template_featured = true template_name = "Centos7-x86_64-KVM-Packer" template_os = "feb90e0c-7756-434f-8a9b-908ac9b4b711" template_password_enabled = true template_scalable = true }

build { sources = ["source.cloudstack.centos"] }

When I run packer build command, VM was created and prompted to continue installation. I prepared kickstart file (ks.cfg) and place it in under templates\config folder. I'm not sure how to add it in the script.

Can someone help me on this ?

assistanz247 avatar May 25 '22 09:05 assistanz247