/Parsec-Cloud-Preparation-Tool

Launch Parsec enabled cloud computers via your own cloud provider account.

Primary LanguagePowerShell

                       ((//////                                
                     #######//////                             
                     ##########(/////.                         
                     #############(/////,                      
                     #################/////*                   
                     #######/############////.                 
                     #######/// ##########////                 
                     #######///    /#######///                 
                     #######///     #######///                 
                     #######///     #######///                 
                     #######////    #######///                 
                     ########////// #######///                 
                     ###########////#######///                 
                       ####################///                 
                           ################///                 
                             *#############///                 
                                 ##########///                 
                                    ######(*                   
                                                       
                       
                                   
                ~Parsec Self Hosted Cloud Setup Script~

This script sets up your cloud computer with a bunch of settings and drivers to make your life easier.

It's provided with no warranty, so use it at your own risk.

Instructions:

  1. Set up your GPU accelerated cloud machine on Microsoft Azure, Amazon AWS, Google Cloud or Paperspace.
  2. Azure, AWS, Google: Log in via RDP and make note of the password - you'll need it later - Paperspace: Connect via Paperspace web app.
  3. Open Powershell on the cloud machine.
  4. Copy the below code and follow the instructions in the script - you'll see them in RED
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" 
$ScriptWebArchive = "https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool/archive/master.zip"  
$LocalArchivePath = "$ENV:UserProfile\Downloads\Parsec-Cloud-Preparation-Tool"  
(New-Object System.Net.WebClient).DownloadFile($ScriptWebArchive, "$LocalArchivePath.zip")  
Expand-Archive "$LocalArchivePath.zip" -DestinationPath $LocalArchivePath -Force  
CD $LocalArchivePath\Parsec-Cloud-Preparation-Tool-master\ | powershell.exe .\loader.ps1  

This tool supports:

OS:

Server 2016
Server 2019

CLOUD SKU:

AWS G3.4xLarge (Tesla M60)
AWS G2.2xLarge (GRID K520)
AWS G4dn.xLarge (Tesla T4 with vGaming driver)
Azure NV6 (Tesla M60)
Paperspace P4000 (Quadro P4000)
Paperspace P5000 (Quadro P5000)
Google P100 VW (Tesla P100 with Virtual Workstation Driver)
Google P4 VW (Tesla P4 with Virtual Workstation Driver)
Google T4 VW (Tesla T4 with Virtual Workstation Driver)

RDP:

Only use RDP to intially setup the instance. Parsec and RDP are not friendly with each other.

Issues:

Q. Stuck at 24%
A. Keep waiting, this installation takes a while.

Q. My cloud machine is stuck at 1366x768
A. Make sure you use GPU Update Tool to install the driver, and on Google Cloud you need to select the Virtual Workstation option when selecting an NVIDIA GPU when setting up an instance.

Q. My Xbox 360 Controller isn't detected in Windows Server 2019
A. You will need to visit Device Manager, and choose to Automatically Update "Virtual Xbox 360 Controller" listed under the Unknown Devices catagory in Device Manager.

Q. I made a mistake when adding my AWS access key or I want to remove it on my G4DN Instance
A. Open Powershell and type Remove-AWSCredentialProfile -ProfileName GPUUpdateG4Dn - This will remove the profile from the machine.

Q. What about GPU X or Cloud Server Y - when will they be supported?
A. That's on you to test the script and describe the errors you see, do not create an issue in Github that does not contain an issue. Do not create an issue without any actual diagnosis information or error messages.

Q. How do I change my wallpaper?
A. Delete the Wallpaper registry value from HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

Q. I created an Amazon AMI using this script but when I create a machine from the AMI I can't select high display resolutions above 1366x768
A. AWS adds some persistent routes to machines which will need to be deleted if you want the NVIDIA Driver to be licensed and display all features and resolutions. You can do this via route print then making note of the persistant routes and using route -p DELETE NETWORK.ADDRESS.OF.ROUTE. After a reboot the machine should allow high resolutions.