@@ -158,38 +158,44 @@ source "virtualbox-iso" "controller" {
158
158
vm_name = " controller"
159
159
}
160
160
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
162
162
source "vmware-iso" "controller" {
163
163
boot_command = [
164
164
" 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>" ,
168
170
" initrdefi /images/pxeboot/initrd.img<enter>" ,
169
- " root=/dev/sda1<enter>" ,
170
171
" boot<enter><wait>"
171
172
]
172
173
boot_wait = " 10s"
173
174
cpus = 4
174
175
disk_size = 65536
175
- guest_os_type = " rhel8_64Guest"
176
+ firmware = " efi"
177
+ guest_os_type = " centos8_64Guest"
176
178
headless = false
177
179
http_directory = " kickstart"
178
180
iso_checksum = " ${ var . iso_checksum } "
179
181
iso_urls = [" ${ var . iso_url1 } " , " ${ var . iso_url2 } " ]
180
182
memory = 8192
183
+ network_adapter_type = " vmxnet3"
181
184
output_directory = " output-images"
182
185
shutdown_command = " shutdown -P now"
183
186
ssh_password = " vagrant"
184
187
ssh_username = " root"
185
188
ssh_wait_timeout = " 10000s"
186
- tools_upload_flavor = " linux "
189
+ version = 21
187
190
vm_name = " controller"
188
191
vmdk_name = " controller"
192
+ vmx_remove_ethernet_interfaces = true
189
193
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
193
199
}
194
200
}
195
201
0 commit comments