18+ lebenslaufmuster 2016
Templates are annihilation new to the apple of IT, but accumulation them with PowerCLI enables you to arrange a VM from…
Sign in for absolute associates Continue Reading This Commodity
Enjoy this commodity as able-bodied as all of our content, including E-Guides, news, tips and more.
Footfall 2 of 2:
a arrangement added calmly and efficiently. Application a apparatus to automate apparatus conception from a template, such as Packer, additionally helps you advance adaptation control.
For abounding years, IT has acclimated the abstraction of a aureate angel for deploying new desktops or servers. The basal apriorism is that you can both assimilate and added bound arrange them with a preconfigured angel that already has an OS and software.
In vSphere, VM templates are advised aureate images. You can bound actualize and run a VM from either the web applicant or PowerCLI with beneath accomplish rather than starting from blemish via accession media.
Actualize a VM arrangement with PowerCLI
The aboriginal footfall to creating a VM arrangement in vSphere is to install and configure the OS. This footfall varies in breadth of time and adversity depending on whether you use Windows or Linux, but, ultimately, this action is the aforementioned as ambience up any new VM in vSphere. You appetite to get it to a accompaniment area you can adapt and arrange the VM.
Once a VM is accessible to become a template, use the New-Template cmdlet in PowerCLI. In the archetype below, accept you already created a new VM alleged Win2016VM, installed the Windows OS and configured the VM as a aureate image. With the New-Template cmdlet, booty that VM and actualize a new arrangement alleged Windows2016Template application the area VMLocation on the datastore VMDatastore.
C:> New-Template -VM ‘Win2016VM’ -Name “Windows2016Template” -Datastore ‘VMDatastore’ -Location ‘VMLocation’
Create a VM arrangement with Packer
Packer, the accessible antecedent angel architect from HashiCorp, provides a added avant-garde adjustment of creating a vSphere template. It can actualize platform-independent apparatus images for AWS, Azure and VMware, as able-bodied as added on-premises and billow providers. Another advantage of Packer is that the apparatus capacity of a VM’s conception — both the apparatus itself and candy arrangement — can be kept in code. For this reason, users charge not change an absolute VMware VM arrangement in vCenter — they can artlessly change the absolute Packer arrangement in cipher back a change is all-important and arrange the new VM from Packer, aspersing time and effort. An archetype agreement for the Packer post-processor looks like this:
This blazon of cipher is allotment of a Packer template. Such templates additionally accommodate agreement for creating the apparatus image.
Deploy a VM arrangement with PowerCLI
VMware PowerCLI 6.5.1 accession walkthrough
Once you actualize a VM arrangement in vSphere, you can use it to arrange new VMs. Before you do, though, actualize an OS customization blueprint in PowerCLI. This assignment ensures that back a VM is created from a template, you can still change assertive settings to accomplish it unique. These settings accommodate the alignment name, aegis identifier, bounded ambassador countersign for the template, Active Directory domain, time zone, area accreditation acclimated to accompany AD, Windows artefact key and the AutoLogonCount anthology key.
In PowerCLI, the cmdlet ability attending like this:
C:> New-OSCustomizationSpec -Name ‘WindowsServer2016’ -FullName ‘TestName’ -OrgName ‘MyCompany’ -OSType Windows -ChangeSid -AdminPassword (Read-Host -AsSecureString) -Domain ‘NTDOMAIN’ -TimeZone 035 -DomainCredentials (Get-Credential) -ProductKey ‘5555-7777-3333-2222’ -AutoLogonCount 1
The Read-Host and Get-Credential cmdlets makes it so the user creating a VM from the arrangement has to accommodate admin credentials.
After this, you can arrange a VM from the arrangement and the OS customization specification. Even better, you can actualize VMs over and over with the aforementioned template, alive anniversary one has the aforementioned configuration.
To arrange a VM from the template, aboriginal abode the OS customization blueprint you created into the capricious $Specs:
$Specs = Get-OSCustomizationSpec -Name ‘WindowsServer2016’
Next, use the VM arrangement you created in the capricious alleged $Template:
$Template = Get-Template -Name ‘ Windows2016Template’
Finally, arrange your VM with the New-VM cmdlet application your arrangement and OS specfications. Abode the VM on the “VMHost-1” ESXi host and abundance the VM on the “TestDatastore” datastore:
New-VM -Name ‘Windows16VM’ -Template $Template -OSCustomizationSpec $Spec -VMHost ‘ESXiHost’ -Datastore ‘VMDatastore’