In order to install Aneka it is necessary to perform some previous steps to enable the communication between the master and workers. PowerShell is a tool that could help to do this configuration in just one place. In this entrance I share some PowerShell commands that help with this initial installation.
Important: Remember to run the PowerShell window as Administrator.
Important: Remember to run the PowerShell window as Administrator.
Commands to enable network and file sharing
Set-Service FDResPub -startuptype "manual"
Set-Service SSDPSRV -startuptype "manual"
Set-Service upnphost -startuptype "manual"
Start-Service -displayname "Function Discovery Resource Publication"
Start-Service -displayname "SSDP Discovery"
Start-Service -displayname "UPnP Device Host"
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
netsh advfirewall firewall set rule group="network discovery" new enable=yes
netsh advfirewall firewall set rule group="network discovery" new enable=yes
Commands to open Aneka ports
netsh advfirewall firewall add rule name="Aneka Daemon" dir=in action=allow protocol=TCP localport=9000
netsh advfirewall firewall add rule name="Aneka Daemon" dir=out action=allow protocol=TCP localport=9000
netsh advfirewall firewall add rule name="Aneka Container" dir=in action=allow protocol=TCP localport=9090
netsh advfirewall firewall add rule name="Aneka Container" dir=out action=allow protocol=TCP localport=9090
netsh advfirewall firewall add rule name="Aneka storage" dir=in action=allow protocol=TCP localport=9091
netsh advfirewall firewall add rule name="Aneka storage" dir=out action=allow protocol=TCP localport=9091
netsh advfirewall firewall add rule name="Aneka Adi" dir=in action=allow protocol=TCP localport=9092
netsh advfirewall firewall add rule name="Aneka Adi" dir=out action=allow protocol=TCP localport=9092
Commands to open PowerShell ports (This is needed in to manage remote machines via PowerShell)
netsh advfirewall firewall add rule name="Aneka PS1" dir=in action=allow protocol=TCP localport=5986
netsh advfirewall firewall add rule name="Aneka PS1" dir=out action=allow protocol=TCP localport=5986
netsh advfirewall firewall add rule name="Aneka PS2" dir=in action=allow protocol=TCP localport=5985
netsh advfirewall firewall add rule name="Aneka PS2" dir=out action=allow protocol=TCP localport=5985
Commands to open File Sharing ports
netsh advfirewall firewall add rule name="SMB TCP" dir=in action=allow protocol=TCP localport=135-139
netsh advfirewall firewall add rule name="SMB TCP" dir=out action=allow protocol=TCP localport=135-139
netsh advfirewall firewall add rule name="SMB UDP" dir=in action=allow protocol=UDP localport=135-139
netsh advfirewall firewall add rule name="SMB UDP" dir=out action=allow protocol=UDP localport=135-139
netsh advfirewall firewall add rule name="DIRECT SMB TCP" dir=in action=allow protocol=TCP localport=445
netsh advfirewall firewall add rule name="DIRECT SMB TCP" dir=out action=allow protocol=TCP localport=445
netsh advfirewall firewall add rule name="DIRECT SMB UDP" dir=in action=allow protocol=UDP localport=445
netsh advfirewall firewall add rule name="DIRECT SMB UDP" dir=out action=allow protocol=UDP localport=445
command to install .Net Framework
Install-WindowsFeature Net-Framework-Core -source \\network\share\sxs
command to install .Net Framework in Windows server 2012 R2
wusa.exe /uninstall /kb:2966828 /quiet /log /norestart
$SourcePath = "%Temp%\sxs"
Install-WindowsFeature NET-Framework-Core –Source $SourcePath