Skip to content

Instantly share code, notes, and snippets.

@nordineb
Created June 22, 2018 07:38
Show Gist options
  • Select an option

  • Save nordineb/fc01f8a8b61ec9f2d5224ed57d3a6483 to your computer and use it in GitHub Desktop.

Select an option

Save nordineb/fc01f8a8b61ec9f2d5224ed57d3a6483 to your computer and use it in GitHub Desktop.
Ramdisk on Windows

Creating RAM disks on windows

Windows 10

On Windows, use StarWind RAM Disk: http://www.starwindsoftware.com/tmplink/RAMDiskSetup.exe

Windows server

Add-WindowsFeature FS-iSCSITarget-Server
Set-Service -Name MSiSCSI -StartupType Automatic
net start MSiSCSI
Set-Service -Name "WinTarget" -StartupType Automatic
net start WinTarget
New-iscsiservertarget -TargetName "testramdisk"
Set-IscsiServerTarget -TargetName "testramdisk" -InitiatorId "IQN:*"
New-IscsiVirtualDisk –Path "ramdisk:test.vhdx" –Size 20MB
Add-iscsivirtualdisktargetmapping -targetname "testramdisk" -Path "ramdisk:test.vhdx"
Get-IscsiServerTarget
New-IscsiTargetPortal -TargetPortalAddress 172.28.42.12
Get-IscsiTarget
Get-IscsiTarget  | Connect-IscsiTarget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment