GithubHelp home page GithubHelp logo

azure-gaming's People

Contributors

aminei avatar andiradulescu avatar ecalder6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-gaming's Issues

DX11 feature level 10.0 is required to run the engine error when starting a game

Every time I try to start a game on the VM I get this error dialog.

  • I've already updated the NVIDIA Tesla M60 driver
  • I made sure that the Microsoft Hyper-V Video display adapter is enabled.

Here is the relevant display information from dxdiag:

------------------
System Information
------------------
      Time of this report: 6/15/2018, 21:07:13
             Machine name: CloudGaming
               Machine Id: {C8DE2750-4210-4448-9D7B-6345C6C25CC4}
         Operating System: Windows Server 2016 Datacenter 64-bit (10.0, Build 14393) (14393.rs1_release_1.180402-1758)
                 Language: English (Regional Setting: English)
      System Manufacturer: Microsoft Corporation
             System Model: Virtual Machine
                     BIOS: Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz
                Processor: Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz (6 CPUs), ~2.6GHz
                   Memory: 57344MB RAM
      Available OS Memory: 57344MB RAM
                Page File: 1959MB used, 63575MB available
              Windows Dir: C:\Windows
          DirectX Version: DirectX 12
      DX Setup Parameters: Not found
         User DPI Setting: Using System DPI
       System DPI Setting: 96 DPI (100 percent)
          DWM DPI Scaling: Disabled
                 Miracast: Not Available
Microsoft Graphics Hybrid: Not Supported
           DxDiag Version: 10.00.14393.0000 64bit Unicode

------------
DxDiag Notes
------------
      Display Tab 1: No problems found.
        Sound Tab 1: No problems found.
          Input Tab: No problems found.

--------------------
DirectX Debug Levels
--------------------
Direct3D:    0/4 (retail)
DirectDraw:  0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay:  0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow:  0/6 (retail)

---------------
Display Devices
---------------
          Card name: Unknown
       Manufacturer: Unknown
          Chip type: Unknown
           DAC type: Unknown
        Device Type: n/a
         Device Key: Unknown
      Device Status: Unknown
Device Problem Code: Unknown
Driver Problem Code: Unknown
     Display Memory: Unknown
   Dedicated Memory: n/a
      Shared Memory: n/a
       Current Mode: 1920 x 1080 (32 bit) (32Hz)
        Driver Name: Unknown
Driver File Version: Unknown (Unknown)
     Driver Version: Unknown
        DDI Version: 9Ex
     Feature Levels: Unknown
       Driver Model: Unknown
Graphics Preemption: Unknown
 Compute Preemption: Unknown
           Miracast: Unknown
Hybrid Graphics GPU: Unknown
     Power P-states: Unknown
  Driver Attributes: Final Retail
   Driver Date/Size: 6/15/2018 20:37:35 12:00:00 AM, 0 bytes
        WHQL Logo'd: n/a
    WHQL Date Stamp: n/a
  Device Identifier: {D7B71AF4-43CC-11CF-F061-3918AFC2C735}
          Vendor ID: Unknown
          Device ID: Unknown
          SubSys ID: Unknown
        Revision ID: Unknown
 Driver Strong Name: Unknown
     Rank Of Driver: Unknown
        Video Accel: Unknown
        DXVA2 Modes: Unknown
      Deinterlace Caps: n/a
       D3D9 Overlay: Not Supported
            DXVA-HD: Not Supported
       DDraw Status: Not Available
         D3D Status: Enabled
         AGP Status: Not Available
           MPO Caps: Unknown
        MPO Stretch: Unknown
    MPO Media Hints: Unknown
        MPO Formats: Unknown

No RDP port set

I wasn't able to connect with remote desktop. On closer inspection it doesn't look like port 3389 is set in the NAT incoming settings.

Connect/Disconnect Issue

Hello, I already sent you an email but I will post it here anyway.

I also have a macbook pro with low specs, and for gaming its not ideal, the game I am trying to stream is Cities Skylines, which I guess should use less CPU/GPU/Network than a FPS game like overwatch.

I created the VM with the Azure button, the VPN is setup and both machines are joined.

  1. I supposed that the VM is already configured with everything from your guide, except the Steam Server settings., so I read your guide but I only applied the Steam Host Settings.
  2. I applied the steam client settings.

when I click on Connect, the game starts and I can see a game splash screen, then it disconnects immediately.

Not sure what I am missing here.

Thanks

Deployment Content: Invalid Content Link

Hi,

I'm getting the following error when trying to use the custom deployment template:

Unable to download deployment content from 'https://gallery.azure.com/artifact/20161101/microsoft.nvidia-gpu-driver-windows-arm.1.1.0/Artifacts/MainTemplate.json'. The tracking Id is '626c9eb4-58b6-472f-bd0d-242c98f19122'. Please see https://aka.ms/arm-deploy for usage details. (Code: InvalidContentLink)

Is there an outdated link that needs refresh?

Thanks!

evictionPolicy?

Hi
After deleting VM I've lost whole setup. What do you think to change "evictionPolicy" to "deallocate"?

How about changing to Windows 10?

I propose change to Windows 10:

{"imageReference": {
    "publisher": "MicrosoftWindowsDesktop",
    "offer": "Windows-10",
    "sku": "rs4-pro",
    "version": "latest"
}}

VM from template - nvidia driver not properly installed

Yesterday I deployed NV6 directly from the template link - single VM, standard (not spot), after coming up there was Steam and zerotier properly installed however there was no disconnect shortcut on desktop. So I made it myself but even after changing 2 to 1 or vice versa so that it disconnected me when clicking it, steamlink connection showed microsoft driver and everything was slow. also the custom extension in portal showed some error messages related to nvidia driver. Looks like it was expected in some 2nd level path on C: but it was actually deeply nested in like 5 folders. Anyway I rerun it in same way (with silent noreboot flags) then rebooted and it didn't help. So I run some stuff semi-randomly from setup and setup2 (like e.g. disable hyperv driver) rebooted again and now it finally works great.

So just a report that it failed out of box for me yesterday. Maybe current nvidia driver is extracted into wrong location/has different folder structure than expected?

Oh, one more thing, there was no NSG set for the VM networking so the RDP port was open to whole world without any hint anywhere in portal. So might be better to include NSG in the template just so that people see more clearly the rdp port is open to whole world and may secure it properly or even disable it completely when using zerotier.

BTW I was using this like year ago with low priority VM scaleset and it worked great but now with spot instances this is so unstable I went for normal VM now. Actually I didn't use it few months and the scaleset was somehow automatically converted by MS from low priority VM to spot instance version with policy set as delete(!). So yesterday I started it for the first time after months and was playing some game and it suddenly disconnected an I only managed to see 'deleting' in portal and whole vm was gone! Only then I noticed the policy of course. I also had other non-steam games there so lost many save games progress this way :-(

Anyway thanks for this, I am using steamlink from raspberry pi with this and enjoy absolutely quiet high quality gaming :-) Well sometimes I die because of sudden lag spike but it is not that bad.

Error, I think it stops on windows update step

Hello, can you help me ? I did almost leave everything as default, using spot vm true, NV12_v3, windows update set as true, even setting as false keeps getting error

here is the log
{
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'SetupWithWindowsUpdate'. Error message: "Command execution finished, but failed because it returned a non-zero exit code of: '1'. The command had an error output of: 'New-Object : Exception calling ".ctor" with "3" argument(s): "End of Central Directory record could not be found."\r\nAt \r\nC:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:934 \r\nchar:23\r\n+ ... ...' For more information, check the instance view by executing Get-AzVmssVm or Get-AzVm (https://aka.ms/GetAzVm). These commands can be executed using CloudShell (https://aka.ms/CloudShell). Command execution may have been interrupted by a VM restart"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "
}

Better performance when using direct connection with Steam Streaming

Steam Remote Play requires specific ports open:

Streaming uses UDP ports 27031 and 27036 and TCP ports 27036 and 27037. Please make sure Steam can listen on these ports in your firewall software.

When the ports are open on both the VM (Windows Defender Firewall) and Azure (Network Security Group) the overall streaming performance is much better, since direct connection is made between your PC and remote bypassing Valve's proxy.

I found a way to save greatly save costs/automate deallocation of the gaming VM after being idle for certain amount of minutes. Looking for somebody to help me collaborate and integrate this feature into the setup script.

The solution I have tested is going to work like this once it is implemented:

  1. Setup script downloads and installs the Azure CLI MSI-file
  2. runs the command "az login" for first time authentication (it opens a browser window where you need to login with your Azure account).
  3. Import/create a Task Scheduler task in Windows that checks for idle usage in XX minutes, after which, runs a batch file containing the command to deallocate the VM (I opt in to make the task usable for every VM created from the updated script and after testing is complete)
  4. Download a batch file onto the VM that runs the following command to Azure CLI:

start "" az vm deallocate --name CloudGaming --resource-group ResourceGroup1
(Of course, we will have to adjust the command/script into fitting a naming standard that uses the same name for the virtual machine and resource group, otherwise it won't work for all installations.) Although, I'm open to other solutions if there might be privacy concerns or other.
Bonus: I put this batch file on the Desktop, so I also can manually run it anytime.

Reply if you want to help bring this feature into reality.

Steam game showing display adapter "microsoft basic display adapter"

Hi @ecalder6 ,
first of all thank you for this guide!

I created the VM myself, instead of using your script, but implemented all the steps anyways.
Whenever I start Total War Warhammer 2 in steam via remote play, the display adapter is showing as "microsoft basic display adapter" and not as nvidia.
Any idea why and how to solve that?

Screen resizes

If you have "Dynamic resizing" on on your RDP client (where the resolution is adjusted to match the rdp client size), the resolution gets swapped back a few seconds after you disconnect. If you disconnect and immediately start a game, I got a steam link disconnect after a few seconds.

Waiting for 20s before starting the game with steamlink seemed to work fine, it may be worth a note.

NV and NVv3 sizes not available

I'ven encountered the issue that NV and NVv3 sizes were not available in any region during validation process. NV is going to get retired in 2023 but is this already done in some regions? It also does not explain why NVv3 series is not availabe as well. Any ideas why this is and what alternatives may be?

Linux client

I spent an hour or two futzing around before I was able to connect via RDP.

  • rdesktop-vrdp didn't work (I've heard that project's defunct)
  • xfreerdp didn't work
  • remmina worked

It's possible that xfreerdp could work, but remmina seemed to work right out of the box whereas even after an hour of googling I couldn't find xfreerdp settings that worked, unfortunately.

Adding a recommendation to the readme for other linux users might be helpful.

Thanks for this, by the way! Aside from a fistful of issues with azure, windows in general, etc. this was super easy to get started with!

SetupWithoutWindowsUpdate Failed

Deployment failed: CloudGaming/SetupWithoutWindowsUpdate

Tried with Update and without it, still not working. Location: North Europe -Standard_NV6_Promo

{
"status": "Failed",
"error": {
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'SetupWithoutWindowsUpdate'. Error message: "Command execution finished, but failed because it returned a non-zero exit code of: '1'. Command execution may have been interrupted by a VM restart"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "
}
}

Deployment Failed

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
  "details": [
    {
      "code": "BadRequest",
      "message": "{\r\n  \"error\": {\r\n    \"code\": \"InvalidIso8601Time\",\r\n    \"message\": \"The provided time  does not follow the ISO 8601 standard.\"\r\n  }\r\n}"
    }
  ]
}

Deployment for Standard is failing with conflict

Deploying with the standard configuration and all recommended settings (no windows update) is failing with the following error:

{
    "status": "Failed",
    "error": {
        "code": "ResourceDeploymentFailure",
        "message": "The resource operation completed with terminal provisioning state 'Failed'.",
        "details": [
            {
                "code": "VMExtensionProvisioningError",
                "message": "VM has reported a failure when processing extension 'SetupWithoutWindowsUpdate'. Error message: \"Finished executing command\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "
            }
        ]
    }
}

Multiple attempts reproduce the same error.

Steam streaming client blackscreens and hangs or crashes

First of all - thanks for all the efforts in getting this automated!

I can deploy and connect to an NV VM fine. I can download and install Steam, and the Battle.Net client and can start World of Warcraft, and even interact with it a bit over RDP.

However, when I try to stream the screen just goes black, and the streaming client either returns after a few seconds or hangs. I can hear game music playing in the first instance. Steam mention this specifically: https://support.steampowered.com/kb_article.php?ref=3629-RIAV-1617#blackscreen.

I've updated the latest NVidia drivers but: the download page warns that a restart would be required. I assume if I want to do that then I'll need a managed disk? Attempting it anyway (without restarting the VM) doesn't improve things.

The same Steam resource suggests a couple of other options, including testing and adjusting MTU settings. I'll be attempting those soon but thought I'd raise this as an issue here in case it'd been seen and there was an obvious solution.

EDIT: I misunderstood the managed OS disk point. MTU settings are at what Steam recommend.

Standard_NV6_Promo instead of default

Hi,

I have successfully deployed my gaming PC on Azure thanks to script here.
One thing I noticed is in my region (Japan east) Standard_NV6 is not available but Promo version is available. So I replaced VM size to Standard_NV6_Promo and the script worked.

It is great if the script detects either one of two or if you can update README.

Thanks.

Contact info?

Eric, may I contact you with a question? This has to do with basic tutorials for the Azure devops

Disk and OS question

Great set of tools BTW. This is my third build with some internet provided instructions and this one seems to be working well. Although I can't get steam clients to see each other.

I had 2 quick Qs:
1.Why did you choose the standard HDD instead of the SSD?
2.Why did you choose to use windows server instead of Windows10 image?

Thanks

Why dont play directly on the VM?

Hi,

Thanks a lot for this repository I was able to set up a VM in no time. I just have one simple question. Why is it better to stream the game instead of using the RDP? Does it reduce the lag?

Best regards,

David

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.