Skip to content

Commit

Permalink
NZOREG-153: Saving changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Default User committed Sep 8, 2023
1 parent 77c746b commit 57fbe0d
Show file tree
Hide file tree
Showing 14 changed files with 772 additions and 96 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Install Parallels Tools. Use this after Windows installation has completed.

Removes both CD ROMs.

### Recreate Windows Virtual Machine on macOS Parallels
### Recreate Virtual Machine on macOS Parallels

Recreates a Parallels Desktop virtual machine using:

Expand All @@ -97,9 +97,6 @@ Recreates a Parallels Desktop virtual machine using:
| Kickstart Organisation Name | Text | `kickstartorganisationname` | |
| KS Parallels: Attune Base Dir | Text | `ksparallelsattunebasedir` | This will be a subfolder of the user's home directory. Don't start with a / or a ~ |
| KS Parallels: Homebrew Installation Dir | Text | `ksparallelshomebrewinstallationdir` | Use a subfolder of the user's home directory. Don't start with a / or a ~ |
| KS Parallels OS Type | Text | `ksparallelsostype` | |
| KS: VM CPU Count | Text | `ksvmcpucount` | |
| KS: VM Ram Size GB | Text | `ksvmramsizegb` | |
| KS: Windows Interface Alias | Text | `kswindowsinterfacealias` | oVirt = "Ethernet"<br>ESXi = "Ethernet0"<br>Parallels = "Ethernet"<br><br>This is the "InternetAlias" of the interface shown when you run "get-netipaddress" from powershell on the machine. |
| macOS Host | Linux/Unix Node | `macoshost` | |
| macOS Host User | Linux/Unix Credential | `macoshostuser` | |
Expand All @@ -109,6 +106,9 @@ Recreates a Parallels Desktop virtual machine using:
| Target Server: Windows TimeZone | Text | `targetserverwindowstimezone` | |
| Target Subnet | Network IPv4 Subnet | `targetsubnet` | |
| Windows: Administrator | Windows Credential | `windowsadministrator` | The windows administrator user |
| Kickstarted Parallels OS Type | Text | `kickstartedparallelsostype` | |
| Kickstarted VM Ram Size GB | Text | `kickstartedvmramsizegb` | |
| Kickstarted VM CPU Count | Text | `kickstartedvmcpucount` | |



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ <h6 class="text-right">


<p class="text-muted pt-2">
<a href="#recreatewindowsvirtualmachineonmacosparallels">
<strong>Step 1 -</strong> Recreate Windows Virtual Machine on macOS Parallels
<a href="#recreatevirtualmachineonmacosparallels">
<strong>Step 1 -</strong> Recreate Virtual Machine on macOS Parallels
</a>
</p>

Expand All @@ -230,8 +230,8 @@ <h6 class="text-right">


<p class="text-muted pt-2">
<a href="#loadwindowsiso">
<strong>Step 1.3 -</strong> Load Windows ISO
<a href="#loadiso">
<strong>Step 1.3 -</strong> Load ISO
</a>
</p>

Expand All @@ -243,14 +243,6 @@ <h6 class="text-right">
</a>
</p>



<p class="text-muted pt-2">
<a href="#winrmhttpswait120sdelay">
<strong>Step 1.5 -</strong> WinRM HTTPS Wait 120s Delay
</a>
</p>




Expand Down Expand Up @@ -464,9 +456,9 @@ <h6 class="text-right">


<div class="row pt-5">
<h3 id="recreatewindowsvirtualmachineonmacosparallels">
<a href="#recreatewindowsvirtualmachineonmacosparallels">
<strong>Step 1 -</strong> Recreate Windows Virtual Machine on macOS Parallels
<h3 id="recreatevirtualmachineonmacosparallels">
<a href="#recreatevirtualmachineonmacosparallels">
<strong>Step 1 -</strong> Recreate Virtual Machine on macOS Parallels
</a>
</h3>
</div>
Expand Down Expand Up @@ -621,13 +613,13 @@ <h4 id="createvm">
set -x

# Create the VM
prlctl create &quot;${VM}&quot; --ostype {ksParallelsOstype}
prlctl create &quot;${VM}&quot; --ostype {kickstartedParallelsOsType}

# Set the VM Paramaters
prlctl set &quot;${VM}&quot; --memsize $(({ksVmRamSizeGb}*1024))
prlctl set &quot;${VM}&quot; --memsize $(({kickstartedVmRamSizeGb}*1024))

# Set the VM CPU Count
prlctl set &quot;${VM}&quot; --cpus {ksVmCpuCount}
prlctl set &quot;${VM}&quot; --cpus {kickstartedVmCpuCount}

# All Synerty kickstarts are 50gb as a standard
prlctl set &quot;${VM}&quot; --size 51200
Expand All @@ -648,9 +640,9 @@ <h4 id="createvm">


<div class="row pt-5">
<h4 id="loadwindowsiso">
<a href="#loadwindowsiso">
<strong>Step 1.3 -</strong> Load Windows ISO
<h4 id="loadiso">
<a href="#loadiso">
<strong>Step 1.3 -</strong> Load ISO
</a>
</h4>
</div>
Expand Down Expand Up @@ -694,7 +686,7 @@ <h4 id="loadwindowsiso">
# Set up the Virtual Machine by mounting the .iso to a cd drive
prlctl set &quot;${VM}&quot; \
--device-set cdrom0 \
--image ${DIR}/kickstart_{targetServer.fqn}.iso \
--image ${DIR}/kickstart_{kickstartedNode.fqn}.iso \
--enable \
--connect

Expand Down Expand Up @@ -765,52 +757,6 @@ <h4 id="startvm">







<div class="row pt-5">
<h4 id="winrmhttpswait120sdelay">
<a href="#winrmhttpswait120sdelay">
<strong>Step 1.5 -</strong> WinRM HTTPS Wait 120s Delay
</a>
</h4>
</div>

<div class="row">
<div class="description col px-0">
<p>
<p>A longer post wait time here is required here because WinRM HTTPS will be active before Windows has finished "Setting up everything for you".</p>
</p>
</div>
</div>














<div class="row">
<p class="mb-0">
Check if TCP Port <strong>0</strong> is listening.
When the TCP Port is up, wait <strong>120</strong>
seconds.
</p>
<p>Use Telnet to check if the TCP Service is accepting connections.</p>
</div>








Expand Down Expand Up @@ -869,7 +815,8 @@ <h4 id="winrmhttpswait120sdelay">









Expand Down
Loading

0 comments on commit 57fbe0d

Please sign in to comment.