Agents are designed to be capable of operating on desktop VMs. Running a full VM locally can consume a fair amount of resources, it’s often preferred to run the VM in the cloud. This section will walk you through how to set up a GCP account from scratch to run a VM.
NOTE: If you already have other gcloud accounts configured for your work or for other projects you should see something like the following:
The easiest is to choose [2] to create a new configuration which will you keep your old configurations. However, if you do not wish to keep old accounts you can choose to [1] to re-initialize the settings.
If you choose two you will be prompted to name the configuration, so name it something clear to differentiate it from other configs and then you should see the following:
Choose 2 and you will be redirected to your browser to click through the authentication with your Google enabled email account and password.
At the end of the of the configuration process you should see an asterix next to your new email address to indicate that it is the default for logging into gcloud.
You may run gcloud config configurations list
to see the list of configurations available and then gcloud config configurations activate NAME
, where NAME is the friendly name you have choosen for any given account in the first column of the list.
Follow the on-screen prompts to log in with your Google account. This command sets up application-default credentials for the CLI.
If this is your first GCP account, you will see only one account listed. If you have multiple, you will see an *
next to the active account like so:
You should see the following:
By default, GCP provides sufficient quotas for most users. However, if you need to increase quotas for your project:
CPUs
).You have now successfully created a GCP account, set up the necessary permissions, and authenticated the CLI using application-default login to create GCE VM instances. For more advanced configurations and management, refer to the GCP documentation.
If you have not already run through our Quickstart to setup SurfKit, please do that now.
Once you’ve done that, you’re ready to create a GCP cloud VM for an agent to use with the following command:
Replace my-surfkit-vm
with whatever friendly name you want to use.
Agents are designed to be capable of operating on desktop VMs. Running a full VM locally can consume a fair amount of resources, it’s often preferred to run the VM in the cloud. This section will walk you through how to set up a GCP account from scratch to run a VM.
NOTE: If you already have other gcloud accounts configured for your work or for other projects you should see something like the following:
The easiest is to choose [2] to create a new configuration which will you keep your old configurations. However, if you do not wish to keep old accounts you can choose to [1] to re-initialize the settings.
If you choose two you will be prompted to name the configuration, so name it something clear to differentiate it from other configs and then you should see the following:
Choose 2 and you will be redirected to your browser to click through the authentication with your Google enabled email account and password.
At the end of the of the configuration process you should see an asterix next to your new email address to indicate that it is the default for logging into gcloud.
You may run gcloud config configurations list
to see the list of configurations available and then gcloud config configurations activate NAME
, where NAME is the friendly name you have choosen for any given account in the first column of the list.
Follow the on-screen prompts to log in with your Google account. This command sets up application-default credentials for the CLI.
If this is your first GCP account, you will see only one account listed. If you have multiple, you will see an *
next to the active account like so:
You should see the following:
By default, GCP provides sufficient quotas for most users. However, if you need to increase quotas for your project:
CPUs
).You have now successfully created a GCP account, set up the necessary permissions, and authenticated the CLI using application-default login to create GCE VM instances. For more advanced configurations and management, refer to the GCP documentation.
If you have not already run through our Quickstart to setup SurfKit, please do that now.
Once you’ve done that, you’re ready to create a GCP cloud VM for an agent to use with the following command:
Replace my-surfkit-vm
with whatever friendly name you want to use.