{"id":803,"date":"2013-04-01T20:50:19","date_gmt":"2013-04-01T12:50:19","guid":{"rendered":"http:\/\/www.eumz.com\/?p=803"},"modified":"2013-04-01T20:50:19","modified_gmt":"2013-04-01T12:50:19","slug":"vmrun%e7%9a%84%e7%ae%80%e5%8d%95%e7%94%a8%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wxcn.com\/?p=803","title":{"rendered":"vmrun\u7684\u7b80\u5355\u7528\u6cd5"},"content":{"rendered":"<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"189\"><b>Power Commands<\/b><\/td>\n<td valign=\"top\" width=\"189\"><b>Description<\/b><\/td>\n<td valign=\"top\" width=\"189\"><b>Parameters<\/b><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">start<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">Starts a virtual machine (.vmx file) or team (.vmtm file).<\/p>\n<p align=\"left\">The default gui option starts the machine interactively,<\/p>\n<p align=\"left\">which is required to display a VMware user interface.<\/p>\n<p align=\"left\">The nogui option suppresses the user interface,<\/p>\n<p align=\"left\">including startup dialog box, to allow noninteractive<\/p>\n<p>scripting.<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">&lt;path to .vmx or .vmtm file&gt;<\/p>\n<p>[ gui | nogui ]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">stop<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">Stops a virtual machine (.vmx file) or team (.vmtm file).<\/p>\n<p align=\"left\">Use the soft parameter to power off the guest after<\/p>\n<p align=\"left\">running shutdown scripts. Use the hard parameter to<\/p>\n<p align=\"left\">power off the guest without running scripts, as if you<\/p>\n<p align=\"left\">pressed the power button. The default is to use the<\/p>\n<p>powerType specified in the .vmx file, if present.<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">&lt;path to .vmx or .vmtm file&gt;<\/p>\n<p>[ hard | soft ]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">reset<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">Resets a virtual machine (.vmx file) or team (.vmtm file).<\/p>\n<p align=\"left\">Use the soft parameter to run shutdown scripts before<\/p>\n<p align=\"left\">rebooting the guest. Use the hard parameter to reboot<\/p>\n<p align=\"left\">the guest without running scripts, as if you pressed the<\/p>\n<p align=\"left\">reset button. The default is to use the powerType<\/p>\n<p>specified in the .vmx file, if present.<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">&lt;path to .vmx or .vmtm file&gt;<\/p>\n<p>[ hard | soft ]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">suspend<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">Suspends a virtual machine (.vmx file) or team (.vmtm)<\/p>\n<p align=\"left\">without shutting down, so local work can resume later.<\/p>\n<p align=\"left\">The soft parameter suspends the guest after running<\/p>\n<p align=\"left\">system scripts. On Windows guests, these scripts release<\/p>\n<p align=\"left\">the IP address. On Linux guests, the scripts suspend<\/p>\n<p align=\"left\">networking. The hard parameter suspends the guest<\/p>\n<p align=\"left\">without running the scripts. The default is to use the<\/p>\n<p align=\"left\">powerType specified in the .vmx file, if present.<\/p>\n<p align=\"left\">To resume virtual machine operation after suspend, use<\/p>\n<p align=\"left\">the start command. On Windows, the IP address is<\/p>\n<p>retrieved. On Linux, networking is restarted.<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">&lt;path to .vmx or .vmtm file&gt;<\/p>\n<p>[ hard | soft ]<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">pause<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">Pauses a virtual machine (.vmx file). You can use this<\/p>\n<p>either to pause replay, or to pause normal operation.<\/td>\n<td valign=\"top\" width=\"189\">&lt;path to .vmx file&gt;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"189\">unpause<\/td>\n<td valign=\"top\" width=\"189\">\n<p align=\"left\">Resumes operation of a virtual machine (.vmx file) from<\/p>\n<p>where you paused replay or normal operation.<\/td>\n<td valign=\"top\" width=\"189\">&lt;path to .vmx file&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power Commands Description Parameters start Starts a vi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[316],"class_list":["post-803","post","type-post","status-publish","format-standard","hentry","category-cloud-computing","tag-vmrun"],"_links":{"self":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=803"}],"version-history":[{"count":0,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/803\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}