# Build windows images for proxmox builder

**URL:** <https://discuss.hashicorp.com/t/build-windows-images-for-proxmox-builder/13837>\
**Category:** Packer\
**Created:** [September 6, 2020, 4:41pm UTC](https://discuss.hashicorp.com/t/build-windows-images-for-proxmox-builder/13837 "2020-09-06T16:41:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![civodul999](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/civodul999/32/11384_2.png) [@civodul999](https://discuss.hashicorp.com/u/civodul999)\
**Post date:** [September 6, 2020, 4:41pm UTC](https://discuss.hashicorp.com/t/build-windows-images-for-proxmox-builder/13837/1 "2020-09-06T16:41:28Z")

</div>

Hi,  
I’m new with packer, I have successfully built a template for centos and proxmox builder.  
Now, I would like to do the same for windows server 2019 and proxmox builder.

How I can do this because I don’t have the “floppy\_files” option like vmware builder.

When I run my packer command, the VM is created and boots on the windows iso but stop at the first screen.  
How I can give the unattended xml file or other files to build the template ?

Thank your for your answers 🙂

---

<div class="post-metadata">

**Author:** ![SwampDragons](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/swampdragons/32/1296_2.png) [@SwampDragons](https://discuss.hashicorp.com/u/SwampDragons)\
**Post date:** [September 8, 2020, 6:37pm UTC](https://discuss.hashicorp.com/t/build-windows-images-for-proxmox-builder/13837/2 "2020-09-08T18:37:44Z")

</div>

You can serve the unattend file via Packer’s built in http server. Here’s a proxmox example (take a look at the boot\_command, and you see the example referencing Packer’s http server: `inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg`)

> **[Proxmox - Builders | Packer by HashiCorp](https://www.packer.io/docs/builders/proxmox#example-fedora-with-kickstart)**
>
> The proxmox Packer builder is able to create new images for use with
> Proxmox VE. The builder takes an ISO source, runs any provisioning
> necessary on the image after launching it, then creates a virtual machine
> template.

You need to put all files you want to access into a single folder on your build machine, and then provide that folder to Packer via the `http_directory` option. It looks like this isn’t made clear in the proxmox docs; I’ll make a docs pr to put in the option.

---

<div class="post-metadata">

**Author:** ![civodul999](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/civodul999/32/11384_2.png) [@civodul999](https://discuss.hashicorp.com/u/civodul999)\
**Post date:** [September 13, 2020, 9:11pm UTC](https://discuss.hashicorp.com/t/build-windows-images-for-proxmox-builder/13837/3 "2020-09-13T21:11:48Z")

</div>

thank you for your reply but it’s not working because windows don’t have a network IP on the boot so I can’t join a network http server.

I have done a test on a vsphere-iso builder at work.  
I run the packer build windows.json  
the vm is created, then it boots on the iso and few minutes later, the unattend.xml file is loaded because I have added a floppy disk.  
And when it’s finished, I have a VM with windows installed and I can do the next steps.

With the proxmox builder, I don’t have floppy disk and the iso windows don’t have a network driver.

I have done some test with the “boot\_command” option and the differents values like “esc, enter,wait” etc… but a new problem appears : I can’t add a second iso file with the virtio driver.

I found another solution on this page but it’s not with packer: [https://github.com/clayshek/ans-pve-win-templ](https://github.com/clayshek/ans-pve-win-templ)  
I’ll done a test tomorrow.
