Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180923

-OSCustomizationSpec and -OSCustomizationNicMapping

$
0
0

This is turning out to be the hardest piece of the puzzle.

 

All I have been able to acomplish is renaming the VM (within the OS) I have not been able to figure out how to assign it a FIXED IP and assign the dns servers and GW.

most of the stuff I am finding online is not helping me.

 

$spec = New-OSCustomizationSpec -OSType linux -Domain 'mydomain'

 

 

Get-OSCustomizationSpec -Name $Spec | New-OSCustomizationSpec -Name teplatesc -Type Persistent
        $osCust = Get-OSCustomizationSpec -Name teplatesc -Type Persistent
        Set-OSCustomizationNicMapping -IpMode UseStaticIP -IpAddress 123.45.67.68 -SubnetMask 255.255.255.0 -DefaultGateway 123.45.67.99

 

New-VM -Name $displayname  -OSCustomizationSpec $osCust -Template ( Get-template $tp ) -VMHost $HOST -Datastore $ds

 

 

 

If I can get this, im golden...

 

 

 

 

       
       


Viewing all articles
Browse latest Browse all 180923

Trending Articles



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