I had a few problems setting up an image for use with a Customer Managed Fleet in Deadline Cloud and wanted to document the workflow I used for my own reference and others.
Be warned that this doesn't follow the best practices when it comes to security but let me know any changes to make it better.
These steps assume you've followed the rest of the steps in the User Guide, up to Fleets > Customer-managed fleets > Worker host setup
You will need the following details from your Deadline Cloud Farm:
FARM_ID
:farm-aabbccddeeff11223344556677889900
FLEET_ID
:fleet-aabbccddeeff11223344556677889900
REGION
:us-east-2
- Start with a fresh Windows/Windows Server install with at least 64gb of storage. (if using EC2 I like the
c7a.2xlarge
instance) - Log in with the Administrator account (if there isn't one, just create a local user called
deadline-worker
) ⊞ Win + R
and runlusrmgr.msc
(Local Users and Groups)- Create two users,
deadline-job
anddeadline-worker
and add the passwords to your password manager. - Create a group called
deadline-job-users
and add the two users to both it andAdministrators
groups - Download the latest version of Python from python.org
- Install it, make sure to check
Use admin privileges when installing py.exe
andCustomize installation
- Ensure that it is installed for all users, but don't add it to PATH or environment variables.
- Log into the machine as the
deadline-worker
user ⊞ Win + R
and runsysdm.cpl
- Open tab
Advanced
and clickEnvironment Variables
- Add the following entries to
Path
inUser variables for deadline-worker
C:\Program Files\Python312
C:\Program Files\Python312\Scripts
- Open an administrative command prompt and type
where python
to confirm it is on the PATH. - In the same command prompt, run
python -m pip install deadline-cloud-worker-agent
- Run
install-deadline-worker --farm-id FARM_ID --fleet-id FLEET_ID --region REGION --user deadline-worker --password DEADLINE-WORKER_PASSWORD --group deadline-job-users --grant-required-access
- Confirm the install by pressing
y
andEnter
- Close the command prompt, and return to the Environment Variables.
- Set the following as System variables:
AWS_ACCESS_KEY_ID
:VALUE
AWS_SECRET_ACCESS_KEY
:VALUE
AWS_DEFAULT_REGION
:REGION
DEADLINE_WORKER_FARM_ID
:FARM_ID
DEADLINE_WORKER_FLEET_ID
:FLEET_ID
DEADLINE_WORKER_RUN_JOBS_AS_AGENT_USER
:false
- Append
C:\Program Files\Autodesk\3ds Max 2024
to the System Path Variable. - Open command prompt and run
deadline-worker-agent
- Confirm the worker shows up as Idle in your fleet in AWS Deadline Cloud monitor.
- Close the command prompt.
⊞ Win + R
and runservices.msc
and Right Click > StartAWS Deadline Cloud Worker
service.- Once it shows up as Idle in your fleet monitor Right Click > Stop the service to cleanly turn it off. (If you don't do this you get Zombie workers that say "Not Responding" in the fleet monitor, it would be cool if there was a way to purge these)
- In AWS Console access AWS Deadline Cloud > Farms > Farm > Queues > Queue > Edit queue
- Change Run as user to Queue-configured user
- Change Run as user configuration to Add Windows credentials
- Set User name to deadline-job
- Setup the password following these instructions
- Log into the machine as the
deadline-job
user - Install Autodesk 3dsMax 2024
- If you are using Windows Server you may have to open
Server Manager > Local Server > Properties
and disableIE Enhanced Security Configuration
to see the activation screen on first run. - Open an administrative command prompt and
cd "C:\Program Files\Autodesk\3ds Max 2024\Python"
- Run
.\python.exe -m ensurepip --upgrade --user
to install pip to the 3dsMax Python distribution - Run
.\python.exe -m pip install --user deadline-cloud-for-3ds-max
- Open services and run the Worker Agent Service, then submit a job to render.
- Open an administrative command prompt
- Run
sc.exe stop DeadlineWorker
- Run
sc.exe config DeadlineWorker start= delayed-auto
- Run
del /Q /S %PROGRAMDATA%\Amazon\Deadline\Cache\*
- Run
del /Q /S %PROGRAMDATA%\Amazon\Deadline\Logs\*
- Run
del /Q /S del /Q /S %PROGRAMDATA%\Amazon\OpenJD\*
- Run
setx /m DEADLINE_WORKER_NO_SHUTDOWN false
- Open Amazon EC2Launch Settings and Shutdown without Sysprep
- Follow these steps to create an image.