重設虛擬機器執行個體。重設 VM 執行個體與對電腦執行恢復原廠設定類似,在此情況下,您可按下重設按鈕或按住電源按鈕。強制重設 VM 會清除機器的記憶體內容,並將 VM 重設為初始狀態。VM 不會執行客體 OS 的乾淨關機作業。
範例
To reset an instance named "example-instance" in project "example-project", run:
gdcloud compute instances reset example-instance --project example-project
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud compute instances reset\u003c/code\u003e command is used to forcibly reset a virtual machine instance to its initial state.\u003c/p\u003e\n"],["\u003cp\u003eResetting an instance is akin to a hard reset on a physical computer, wiping the machine's memory without a clean shutdown of the guest OS.\u003c/p\u003e\n"],["\u003cp\u003eTo reset an instance, you must provide the \u003ccode\u003eINSTANCE_NAME\u003c/code\u003e and can optionally use the \u003ccode\u003e--project\u003c/code\u003e flag to specify the project.\u003c/p\u003e\n"],["\u003cp\u003eThe gdcloud CLI also supports the use of wide 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.\u003c/p\u003e\n"]]],[],null,["# gdcloud compute instances reset\n\nNAME\n----\n\ngdcloud compute instances reset - Reset a virtual machine instance.\n\nSYNOPSIS\n--------\n\n gdcloud compute instances reset INSTANCE_NAME [flags]\n\nDESCRIPTION\n-----------\n\nReset a virtual machine instance. Resetting a VM instance is similar to doing a hard reset on your computer, where you might press a reset button or press and hold the power button. Resetting a VM forcibly wipes the memory contents of the machine and resets the VM to its initial state. The VM does not perform a clean shutdown of the guest OS.\n\n### EXAMPLES\n\n To reset an instance named \"example-instance\" in project \"example-project\", run:\n\n gdcloud compute instances reset example-instance --project example-project\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."]]