Hi, you can try applying the below command to get the proper outcome by following this document.
gcloud compute connect-to-serial-port [USER@]INSTANCE]
However, the metadata needs to be set properly before doing so. Below is a sample command which might help you to achieve this task. You can follow this help center article which might help you solve the issue.
gcloud compute instances add-metadata [INSTANCE NAME] --metadata=serial-port-enable=1
Hi Piet,
Can you let me know which host configuration are you using? Are you trying directly via Cloud Console or using any other VM or machine and using the Gcloud command from there?
I have tried with Cloud console from my end and was not able to recreate the issue. You can also try changing browser or use incognito mode in case you are using the Cloud Console from browser.
Hi Piet,