<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build - DevOps Forum				            </title>
            <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/</link>
            <description>Virtualization Howto Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 16 Sep 2026 14:59:06 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/paged/2/#post-1054</link>
                        <pubDate>Fri, 08 Nov 2024 15:16:58 +0000</pubDate>
                        <description><![CDATA[Github repo has been updated with the static IP address configuration of the autounattend.xml file, in a separate folder for clarity.]]></description>
                        <content:encoded><![CDATA[<p>Github repo has been updated with the static IP address configuration of the autounattend.xml file, in a separate folder for clarity.</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/paged/2/#post-1054</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1053</link>
                        <pubDate>Fri, 08 Nov 2024 13:53:08 +0000</pubDate>
                        <description><![CDATA[Hey @henryc I am not sure what happened with my last message, think it disappeared maybe due to the long code pasting I did for unattend file. Let me know if you saw it though. I will update...]]></description>
                        <content:encoded><![CDATA[<p>Hey @henryc I am not sure what happened with my last message, think it disappeared maybe due to the long code pasting I did for unattend file. Let me know if you saw it though. I will update the GitHub repo with static address config.</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1053</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1052</link>
                        <pubDate>Fri, 08 Nov 2024 13:24:13 +0000</pubDate>
                        <description><![CDATA[@henryc It looks like with Windows, we can do this with the autounattend.xml file. You would use the following to set a static IP address for your windows build. Just replace with the IP you...]]></description>
                        <content:encoded><![CDATA[<p>@henryc It looks like with Windows, we can do this with the autounattend.xml file. You would use the following to set a static IP address for your windows build. Just replace with the IP you want to use in the "networking" section.</p>
<pre contenteditable="false">&lt;Networking&gt;
                &lt;Interfaces&gt;
                    &lt;Interface wcm:action="add" wcm:keyValue="1"&gt;
                        &lt;Ipv4Settings&gt;
                            &lt;IpAddress&gt;192.168.1.100&lt;/IpAddress&gt;
                            &lt;SubnetMask&gt;255.255.255.0&lt;/SubnetMask&gt;
                            &lt;Gateway&gt;192.168.1.1&lt;/Gateway&gt;
                            &lt;DnsServers&gt;
                                &lt;DnsServer&gt;8.8.8.8&lt;/DnsServer&gt;
                                &lt;DnsServer&gt;8.8.4.4&lt;/DnsServer&gt;
                            &lt;/DnsServers&gt;
                        &lt;/Ipv4Settings&gt;
                    &lt;/Interface&gt;
                &lt;/Interfaces&gt;
            &lt;/Networking&gt;</pre>
<p><br /><br />Since we are already calling the autounattend file in the build, we should be good to just add the static config and be good to go.</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1052</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1051</link>
                        <pubDate>Fri, 08 Nov 2024 01:47:34 +0000</pubDate>
                        <description><![CDATA[@henryc this should be doable. I will work this in the lab and update you. &#x1f44d;]]></description>
                        <content:encoded><![CDATA[@henryc this should be doable. I will work this in the lab and update you. &#x1f44d;]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1051</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1050</link>
                        <pubDate>Fri, 08 Nov 2024 00:16:33 +0000</pubDate>
                        <description><![CDATA[@brandon-lee Looks like it possible with a Linux build here in this repo, is it possible do do the same for windows? fatred/packer-build-staticip: Example repo to use packer and terraform to...]]></description>
                        <content:encoded><![CDATA[@brandon-lee Looks like it possible with a Linux build here in this repo, is it possible do do the same for windows? <a href="https://github.com/fatred/packer-build-staticip">fatred/packer-build-staticip: Example repo to use packer and terraform to build baselined templates and instances against a VMware environment without DHCP</a>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>HenryC</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1050</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1049</link>
                        <pubDate>Thu, 07 Nov 2024 23:28:02 +0000</pubDate>
                        <description><![CDATA[@brandon-lee Thank you, for your WindowsServer2022.json.pkr.hcl file within the line 62 to 65. Is it possible set the static ipv4 address that includes Server ip, gateway and DNS ip? Having ...]]></description>
                        <content:encoded><![CDATA[<p>@brandon-lee Thank you, for your WindowsServer2022.json.pkr.hcl file within the line 62 to 65. Is it possible set the static ipv4 address that includes Server ip, gateway and DNS ip? Having DHCP to auto assign an IP address is not a good option for us, since we vmware cluster with other teams that will build servers as well and dont want those servers to accidentally take the template ip by mistake. Here is the section i was referring to below:</p>
<p>network_adapters {<br />network = "${var.vsphere_portgroup_name}"<br />network_card = "vmxnet3"<br />}</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>HenryC</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1049</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1048</link>
                        <pubDate>Thu, 07 Nov 2024 19:00:23 +0000</pubDate>
                        <description><![CDATA[Also, @henryc I made the changes in a hurry so hopefully didn&#039;t miss anything. The packer validate ran fine before pushing the changes. But do let me know.]]></description>
                        <content:encoded><![CDATA[<p>Also, @henryc I made the changes in a hurry so hopefully didn't miss anything. The packer validate ran fine before pushing the changes. But do let me know.</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1048</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1047</link>
                        <pubDate>Thu, 07 Nov 2024 18:58:38 +0000</pubDate>
                        <description><![CDATA[@henryc hey I have pushed up some changes. You should be able to re-pull or git fetch to get the changes down. I have split out the Windows Server 2022 folder into &quot;HCL build&quot; which is the n...]]></description>
                        <content:encoded><![CDATA[@henryc hey I have pushed up some changes. You should be able to re-pull or git fetch to get the changes down. I have split out the Windows Server 2022 folder into "HCL build" which is the newer format, and then another folder for legacy JSON build.]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1047</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1046</link>
                        <pubDate>Thu, 07 Nov 2024 17:58:04 +0000</pubDate>
                        <description><![CDATA[@brandon-lee I am installing Windows Server 2019 standard. Please let me know when you uploaded the latest template into the repo. Thank you again for your help and guidance.]]></description>
                        <content:encoded><![CDATA[@brandon-lee I am installing Windows Server 2019 standard. Please let me know when you uploaded the latest template into the repo. Thank you again for your help and guidance.]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>HenryC</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1046</guid>
                    </item>
				                    <item>
                        <title>RE: How to Add Static IP address in variables.json file and winbuild.json for Windows Server Packer Build</title>
                        <link>https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1044</link>
                        <pubDate>Thu, 07 Nov 2024 02:19:33 +0000</pubDate>
                        <description><![CDATA[Hey @henryc. Great questions. It looks like you may be using the old template version. Actually I need to look and see if I have updated the packer builds repo there. Which OS are you instal...]]></description>
                        <content:encoded><![CDATA[<p>Hey @henryc. Great questions. It looks like you may be using the old template version. Actually I need to look and see if I have updated the packer builds repo there. Which OS are you installing, is it Windows Server 2019 or 2022? </p>
<p>Packer has moved from the JSON format which is the older format to a newer HCL extension and language for Packer to help consolidate on their syntax I believe with Terraform, etc. Let me take a look at the latest template I have locally and see what needs to be pushed up to the repo.</p>
<p>Also, do you have DHCP running in the network? This would be the easiest way to get the machine provisioned and converted to a template.</p>
<p>Also, to answer your question in the comment on the blog post, Packer will automatically convert the new build to a virtual machine template once the process completes.</p>
<p>Let me know if these tidbits make sense. Thanks Henry.</p>]]></content:encoded>
						                            <category domain="https://www.virtualizationhowto.com/community/devops-forum/">DevOps Forum</category>                        <dc:creator>Brandon Lee</dc:creator>
                        <guid isPermaLink="true">https://www.virtualizationhowto.com/community/devops-forum/how-to-add-static-ip-address-in-variables-json-file-and-winbuild-json-for-windows-server-packer-build/#post-1044</guid>
                    </item>
							        </channel>
        </rss>
		