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

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

Can you change the following line:

 

$vm=New-VM -Name $_.Name -Template $_.Template -Host $_.Host `

        -Datastore $_.Datastore -Confirm:$false -RunAsync | Set-OSCustomizationSpec -OSCustomizationSpec $_.Customization

 

into:

 

$vm=New-VM -Name $_.Name -Template $_.Template -Host $_.Host `

        -Datastore $_.Datastore -Confirm:$false -RunAsync | Set-VM -OSCustomizationSpec $_.Customization


Viewing all articles
Browse latest Browse all 236436


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