To access serial port of virtual machine example-instance in project example-project, run:
gdcloud compute connect-to-serial-port example-instance --project example-project
可选标志
--timeout int Number of minutes to wait for the virtual machine instance to be ready. (default 5)
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-05。"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud compute connect-to-serial-port\u003c/code\u003e command allows users to connect to the serial port of a GDC air-gapped virtual machine.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the \u003ccode\u003eINSTANCE_NAME\u003c/code\u003e as a primary argument.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--timeout\u003c/code\u003e flag is available to specify the number of minutes to wait for the virtual machine to be ready, defaulting to 5 minutes.\u003c/p\u003e\n"],["\u003cp\u003eCommon \u003ccode\u003egdcloud\u003c/code\u003e flags like \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e are available for use with this command.\u003c/p\u003e\n"]]],[],null,["# gdcloud compute connect-to-serial-port\n\nNAME\n----\n\ngdcloud compute connect-to-serial-port - Connect to the serial port of a GDC air-gapped virtual machine.\n\nSYNOPSIS\n--------\n\n gdcloud compute connect-to-serial-port INSTANCE_NAME [flags]\n\n### EXAMPLES\n\n To access serial port of virtual machine example-instance in project example-project, run:\n\n gdcloud compute connect-to-serial-port example-instance --project example-project\n\n### OPTIONAL FLAGS\n\n --timeout int Number of minutes to wait for the virtual machine instance to be ready. (default 5)\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]