lufunoramoba@cloudshell:~ (maximal-zoo-429501-v6)$ gcloud compute images list \…
- User
lufunoramoba@cloudshell:~ (maximal-zoo-429501-v6) create this version but you the image i found (gcloud compute images create virtualization-enabled-windows-2022-dc --source-image-family=windows-2022 --source-image-project=windows-cloud --licenses="" --family=virtualization-enabled-windows-2022-dc)
- Assistant
Sure! If you want to create a new custom image based on the specific image you found (
windows-server-2022-dc-v20240711) with virtualization enabled, you need to use thegcloud compute images createcommand with appropriate parameters. Here's how you can do it:gcloud compute images create virtualization-enabled-windows-2022-dc \ --source-image=windows-server-2022-dc-v20240711 \ --source-image-project=windows-cloud \ --licenses="https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx" \ --family=virtualization-enabled-windows-2022-dcExplanation:
--source-image=windows-server-2022-dc-v20240711: Specifies the source image you found, which iswindows-server-2022-dc-v20240711.--source-image-project=windows-cloud: Specifies the project from which the source image is taken.--licenses="https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx": Adds the required license to enable virtualization.