Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219977

Re: While trying to deploy Linux VM from template using PowerCLI , during customization it giving error as "you must not provide dns when you create NIC mapping for customization with type "Linux"

$
0
0

Try something like this?

 

I had a hard time with this piece for setting up my provisioning script.. it took some time but I finally got it. I have been using it for a while now.

Mine also is for provisioning linux vm's.

 

 

hope it helps

David

 

 

Get-OSCustomizationSpec -Name temp | Remove-OSCustomizationSpec -Confirm:$false

     Get-OSCustomizationSpec -Name custemple |  New-OSCustomizationSpec -Name temp -Type NonPersistent

        Get-OSCustomizationSpec -Name temp | Set-OSCustomizationSpec -Name temp  -DnsServer $dns -DnsSuffix $dnsSuffix -Domain $domainname

 

    Get-OSCustomizationSpec -Name temp | Get-OSCustomizationNicMapping |Set-OSCustomizationNicMapping -IpMode UseStaticIP -IpAddress $ip -SubnetMask $subnet -DefaultGateway $gw


Viewing all articles
Browse latest Browse all 219977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>