Creating Windows VM on AWS and Storage Pool

Nice Thought.


Services-EC2-Instances-Launch Instance-choose appropriate image


Optionally, add tags


Enable RDP access


Choose whether to create new key pair or use existing one-then launch instance and download it

Connecting to Windows server VM

Actions-Get Windows Password


Browse to downloaded file


Click Decrypt password


Now we have credentials to log in to Windows server

Creating software RAID

Because i added additional 4 disk,i can create RAID 1,for example

Bring disk on-line and initialize it:

Get-Disk | Where-Object IsOffline –Eq $True | Set-Disk –IsOffline $False
Get-Disk | ?{$_.number -ne 0}| Initialize-Disk -PartitionStyle GPT

Create storage pool

New-StoragePool -FriendlyName 'pool' -PhysicalDisks (Get-PhysicalDisk -CanPool $true) -StorageSubSystemFriendlyName (Get-StorageSubSystem).FriendlyName

Create new virtual disk:

New-VirtualDisk -FriendlyName "mydisk"  -StoragePoolFriendlyName "pool" -Size 16GB -ProvisioningType Thin -ResiliencySettingName Mirror

Initilize and format virtual disk:

Initialize-Disk -Number (Get-VirtualDisk -FriendlyName "mydisk" | Get-Disk).Number
New-Partition -DiskNumber (Get-VirtualDisk -FriendlyName "mydisk" | Get-Disk).Number -UseMaximumSize –AssignDriveLetter
Format-Volume -DriveLetter D -FileSystem NTFS -NewFileSystemLabel "DataStore"


View original post


One thought on “Creating Windows VM on AWS and Storage Pool

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s