Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create custom Windows BYOL images failed #2233

Closed
Pylypp opened this issue Oct 5, 2023 · 2 comments
Closed

Create custom Windows BYOL images failed #2233

Pylypp opened this issue Oct 5, 2023 · 2 comments

Comments

@Pylypp
Copy link

Pylypp commented Oct 5, 2023

Hi
I was trying to build windows 11 image using this link

  1. Error:
Error validating workflow: networkResourceDoesNotExist: step "windows-build" validation error: networkResourceDoesNotExist: step "run-bootstrap" validation error: networkResourceDoesNotExist: projects/<PROJECT>/global/networks/default does not exist

I couldn't find the way to provide network name so I just created default one. We don't use default networks anywhere
2. Now the build hangs at:

WaitForInstancesSignal: Instance "install-windows-11-21h2-pro-x64-uefi-windows-build-l7x67": watching serial port 1, FailureMatch: ["Windows build failed"] (this is not an error).

The instance is shut down already, seeing logs there

GCEMetadataScripts: Finished running startup scripts
GCEMetadataScripts: Starting shutdown scripts (version 20230403.00)
GCEMetadataScripts: No shutdown scripts to run
GCEGuestAgent: GCE Agent Stopped
The SAC will become unavailable soon.  The computer is shutting down.
{"@type":"type.googleapis.com/cloud_integrity.IntegrityEvent", "bootCounter":"2", "shutdownEvent":{…}}
compute.googleapis.com compute.instances.guestTerminate …11-21h2-pro-x64-uefi-windows-build-l7x67 [email protected] Instance terminated by guest OS shutdown.
compute.googleapis.com v1.compute.instances.delete …11-21h2-pro-x64-uefi-windows-build-l7x67 ***@cloudbuild.g…
audit_log, method: "v1.compute.instances.delete", principal_email: "***@cloudbuild.gserviceaccount.com"

Please help

@fhacloid
Copy link

Got the same issue here.

@bkatyl
Copy link
Contributor

bkatyl commented Jun 27, 2024

The image build workflows currently only support the default value of the network/subnetwork values.

In the documentation,
https://cloud.google.com/compute/docs/images/creating-custom-windows-byol-images#preparing_the_project, it does include a note of a workaround for making a default network is you don't have a default network.

Note: The build process assumes that your project contains a default network. If you've disabled the creation of default networks in your organization, you must manually create an auto-mode VPC network named default.

Another workaround would be to fork the workflows to add those values to the CreateInstances object as the image-import process does that.

Hopefully one of those workaround works for you. I've opened a feature request/enhancement around this specific issue at #2329

@bkatyl bkatyl closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants