jamesstringerparsec / Easy-GPU-PV

A Project dedicated to making GPU Partitioning on Windows easier!
4.24k stars 426 forks source link

More than one SSD/HDD??? #206

Open Hatchlin opened 2 years ago

Hatchlin commented 2 years ago

can you put more than one SSD or HDD or both in a VM? if so, how?

chicagojoe commented 2 years ago

I'm not sure about with this script, never used it as a buddy just sent me a link.

That said, open your hyper-v manager (found under the windows administration tools folder in start menu), right click the appliance and choose settings (with the appliance off).

Left click on "SCSI" controller in the left pane. Highlight "Hard Drive" in the right upper pane. Click the add button below the box with "Hard Drive". Choose the "Physical Hard Disk" radio button and select the CORRECT disk in the drop down.

Special note* the drive must be in offline mode to be used for a VM. The easiest way to do this for people not used to powershell is to: Right click the windows logo (start menu icon) and select "Disk Management" Find the CORRECT disk in the bottom pane and right click on the disk name (IE "Disk 0" "Disk 9999" whatever) select offline in the menu. MAKE NOTE OF WHICH DISK IT IS ("Disk 1" "Disk 2")

Make sure you select the correct disk in the add physical disk drop down when adding to a VM appliance if you have multiple OFFLINE disks.

Observation: You can't not use an offline disk with both the host and guest at the same time. Nor should you want to, Imagine being in a car with 2 people attempting to drive at the same time, bad things ARE going to occur...

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 11 months ago

fix:

@@ -20,6 +20,7 @@ Import-Module $PSSCriptRoot\Add-VMGpuPartitionAdapterFiles.psm1
...
$VM = Get-VM -VMName $VMName
$VHD = Get-VHD -VMId $VM.VMId
$VHD = $VHD[0] # mount only c:\

If ($VM.state -eq "Running") {
    [bool]$state_was_running = $true
...