Deploy PNETLab on Google cloud

Help! I tried settling up Pnetlab with :

gcloud compute images create nested-ubuntu-xenial --source-image-family=ubuntu-1804-lts --source-image-project=ubuntu-os-cloud --licenses https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx

but i kept getting error messages ..

ERROR: (gcloud.compute.images.create) argument --licenses: expected one argument
Usage: gcloud compute images create IMAGE_NAME (–source-disk=SOURCE_DISK | --source-image=SOURCE_IMAGE | --source-image-family=SOURCE_IMAGE_FAMILY | --source-snapshot=SOURCE_SNAPSHOT | --source-uri=SOURCE_URI) [optional flags]
optional flags may be --architecture | --csek-key-file | --description |
–family | --forbidden-database-file | --force |
–guest-os-features | --help |
–key-exchange-key-file | --kms-key | --kms-keyring |
–kms-location | --kms-project | --labels |
–licenses | --platform-key-file |
–require-csek-key-create | --signature-database-file |
–source-disk | --source-disk-project |
–source-disk-zone | --source-image |
–source-image-family | --source-image-project |
–source-snapshot | --source-uri | --storage-location

For detailed information on this command and its flags, run:
gcloud compute images create --help
-bash: https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx: No such file or directory.

Please help.

1 Like

Hi @PJ777 ,

Welcome to Google Cloud Community!

The ubuntu-1804-lts image family is already deprecated. It is always recommended to use the latest GCP images.

Run the following command to CLI to see a list of available images:

gcloud compute images list --project=ubuntu-os-cloud --filter="family:ubuntu*"

Try creating the image with a newer Ubuntu version, such as ubuntu-2204-lts:

gcloud compute images create nested-ubuntu-xenial \
  --source-image-family=ubuntu-2204-lts \
  --source-image-project=ubuntu-os-cloud \
  --licenses="https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"

For more information, you may refer to this documentation:

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Hi @PJ777 ,

i can help you creating pnetlab in your gcp platform.
I’m always available to explore more tech-savvy solutions.

Hi @PJ777 ,

Good Day!
i can help you creating pnetlab in your gcp platform.
you can contact me directly on whatsapp (PII Removed by Staff)
I’m always available to explore more tech-savvy solutions.