Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g4 instance works for the first time, but cannot be properly recreated from AMI #16

Closed
machacd opened this issue Feb 17, 2020 · 9 comments

Comments

@machacd
Copy link

machacd commented Feb 17, 2020

When I run the instance for the first time and use the script exactly as described, all works great. But when I save this instance into an AMI, after recreating it, the resolution is fixed to 1280*1024.

  • I am using the latest Nvidia Gaming AMI as a base
  • I have tried skipping the GPU update step, to no avail

Might be related to #13 with the difference that all works good for the first time.

@jamesstringerparsec
Copy link
Member

These scripts aren't intended to be converted into a AMI so I haven't tested the functionality

@steventhegeek
Copy link
Contributor

I would test it but the some of the NVidia AMIs are broken as of the 442.19 release today. Looks like they forgot to embed the Amazon security stuff again. I'll certainly try imaging of a vanilla 2019 AMI with the parsec scripts running and see what happens.

@jamesstringerparsec
Copy link
Member

Just note that if you do create an AMI from the Parsec Cloud Prep Tool (this repo) the password will be baked in to the AMI.

In addition there are also some static routes that need to be removed before AMI creation, these static routes are region specific, and will completely prevent AMIs copied to other regions from working.

If you're building a G4 based AMI and have used GPU updater tool to install the driver, also run Remove-AWSCredentialProfile -ProfileName GPUUpdateG4Dn to remove the AWS credential from the machine, otherwise everyone will have access to your AWS account (BAD).

@machacd
Copy link
Author

machacd commented Feb 17, 2020

I am the sole user of the AMI, so the baked in credentials should not matter (right?).

If a custom AMI creation is not supported, Is there another option how to launch a spot instance without having to setup everything each time?

@jamesstringerparsec
Copy link
Member

I am the sole user of the AMI, so the baked in credentials should not matter (right?).

If a custom AMI creation is not supported, Is there another option how to launch a spot instance without having to setup everything each time?

Not right now

@steventhegeek
Copy link
Contributor

It works fine with a vanilla 2016 server instead of using the Nvidia Gaming. I think you are accidentally using NVidias initialisation script and messing up the drivers after sysprep. Given how bad NVidia are at creating AMI's, I'd suggest not using those images anyway as a general rule. All they have over vanilla is the Nvidia SDK which is downloadable after free registration to the Nvidia developer site.

@machacd
Copy link
Author

machacd commented Feb 19, 2020

Steven, it works for me as well, thank you!

It is basically the oposite of this advice:

Q. My cloud machine is stuck at 1366x768
A. You should delete your machine and use the GRID Virtual Workstation variety provided by your cloud provider (it's a check box on GCP)

@machacd machacd closed this as completed Feb 19, 2020
@steventhegeek
Copy link
Contributor

steventhegeek commented Feb 19, 2020 via email

@aegixx
Copy link

aegixx commented Apr 27, 2020

FWIW I'm using a combination of an AMI created with this tool along with https://github.com/cloudrig/CloudRIG to launch a ready-made cloud machine using Spot Instance pricing. It works awesome! Thank you @jamesstringerparsec for this work of art - any way to buy you a beer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants