@@ -158,38 +158,44 @@ source "virtualbox-iso" "controller" {
158158 vm_name = " controller"
159159}
160160
161- # WIP: Unable to mount root fs on unknown-block(0,0)
161+ # https://github.com/AlmaLinux/cloud-images/blob/main/almalinux-8-vagrant.pkr.hcl
162162source "vmware-iso" "controller" {
163163 boot_command = [
164164 " c<wait>" ,
165- " linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd ro " ,
166- " inst.text " ,
167- " inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter>" ,
165+ " linuxefi /images/pxeboot/vmlinuz" ,
166+ " inst.stage2=hd:LABEL=AlmaLinux-8-10-x86_64-dvd ro" ,
167+ " inst.text biosdevname=0 net.ifnames=0" ,
168+ " inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg" ,
169+ " <enter>" ,
168170 " initrdefi /images/pxeboot/initrd.img<enter>" ,
169- " root=/dev/sda1<enter>" ,
170171 " boot<enter><wait>"
171172 ]
172173 boot_wait = " 10s"
173174 cpus = 4
174175 disk_size = 65536
175- guest_os_type = " rhel8_64Guest"
176+ firmware = " efi"
177+ guest_os_type = " centos8_64Guest"
176178 headless = false
177179 http_directory = " kickstart"
178180 iso_checksum = " ${ var . iso_checksum } "
179181 iso_urls = [" ${ var . iso_url1 } " , " ${ var . iso_url2 } " ]
180182 memory = 8192
183+ network_adapter_type = " vmxnet3"
181184 output_directory = " output-images"
182185 shutdown_command = " shutdown -P now"
183186 ssh_password = " vagrant"
184187 ssh_username = " root"
185188 ssh_wait_timeout = " 10000s"
186- tools_upload_flavor = " linux "
189+ version = 21
187190 vm_name = " controller"
188191 vmdk_name = " controller"
192+ vmx_remove_ethernet_interfaces = true
189193 vmx_data = {
190- " firmware" = " efi"
191- " svga.autodetect" = true
192- " usb_xhci.present" = true
194+ " cpuid.coresPerSocket" = " 1"
195+ }
196+ vmx_data_post = {
197+ " memsize" = 1024
198+ " numvcpus" = 1
193199 }
194200}
195201
0 commit comments