Hello, i am new here and basically need to setup eve-ng on GCP. having followed the documentation from eve-ng cookbook, i got this error:
ERROR: (gcloud.compute.images.create) argument --licenses: expected one argument
please could anyone help me out?
1 Like
Without seeing the command you ran it is a little hard to help. However looking at the eve-ng cookbook you reference, v5.3 page 45 I can see it references creating a template using the special license.
From the error you gave above, it could be you missed putting the license string the command line maybe?
Have a look here for some specific guidance on how to specify it:
https://cloud.google.com/compute/docs/instances/nested-virtualization/enabling#enable_nested_virtualization_by_using_the_special_license_key
If that isn’t the step you were at then please let us know more details of the commands you were carrying out that generated the error.
1 Like
here is the command below
gcloud compute images create nested-ubuntu-focal --source-image-family=ubuntu-2004-lts --source-image-project=ubuntu-os-cloud --licenses
https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx
1 Like
So it all needs to be on one line - the URL at the end is the special license to mark the image as nested.
1 Like
Thank you, i got it all figured out now
2 Likes
PJ777
June 17, 2025, 10:20pm
6
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
Can you please help out.. coping this to my google console terminating and giving me error messages