Skip to content

Commit 84c9de0

Browse files
committed
Fix VM host paths
1 parent 6fdcf94 commit 84c9de0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Tests/README.md

+22
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,28 @@ _to more resemble the Hyper-V steps._
6060
should be installed), but the lab that runs the integration tests does _not_
6161
need Internet connectivity.
6262

63+
### Setup the Hyper-V host
64+
65+
Run the following command to get the virtual machine and virtual machine
66+
harddisk location:
67+
68+
```powershell
69+
Get-VMHost | Select-Object -Property VirtualMachinePath,VirtualHardDiskPath
70+
```
71+
72+
Make sure the paths point to a location that has sufficient disk space,
73+
especially the virtual machine harddisk location (`VirtualHardDiskPath`).
74+
If the path need to change then run the below command and change the paths
75+
as needed:
76+
77+
```powershell
78+
$virtualMachinePath = 'E:\Hyper-V'
79+
$virtualMachineHarddiskPath = 'E:\Hyper-V\Virtual Hard Disks'
80+
New-Item -Path $virtualMachinePath -Type 'Directory' -Force | Out-Null
81+
New-Item -Path $virtualMachineHarddiskPath -Type 'Directory' -Force | Out-Null
82+
Set-VMHost -VirtualMachinePath $virtualMachinePath -VirtualHardDiskPath $virtualMachineHarddiskPath
83+
```
84+
6385
### Create Hyper-V base image template
6486

6587
There are many blog articles explaining this, just search for

0 commit comments

Comments
 (0)