{"id":2062,"date":"2016-03-15T09:00:09","date_gmt":"2016-03-15T16:00:09","guid":{"rendered":"http:\/\/www.coretechnologies.com\/blog\/?p=2062"},"modified":"2022-05-01T22:27:43","modified_gmt":"2022-05-02T05:27:43","slug":"virtualbox-vm-powered-off","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/virtualbox-vm-powered-off\/","title":{"rendered":"Why does my VirtualBox VM say &#8220;Powered Off&#8221; when it&#8217;s running as a Service with AlwaysUp?"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/virtualbox-question-520x123.webp\" width=\"520\" height=\"123\" border=\"0\" title=\"VirtualBox Problem\" alt=\"VirtualBox Problem\"\/><\/div>\n<p>We&#8217;re big fans of Oracle&#8217;s <a href=\"https:\/\/www.virtualbox.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">VirtualBox<\/a> software. It&#8217;s powerful and free, and it enables our small company to efficiently test and validate our software on various versions of Windows without having to invest in costly, dedicated hardware.<\/p>\n<p>However, we noticed a strange problem with VirtualBox last week. After following our tutorial to <a href=\"\/products\/AlwaysUp\/Apps\/RunVirtualBoxAsAService.html\">setup a VirtualBox Virtual Machine (VM) as a Windows Service with AlwaysUp<\/a>, we noticed that even though the machine was working normally, the VirtualBox Manager application incorrectly listed the VM as &#8220;Powered Off&#8221;. But it had been on for more than 10 days!<br \/>\n<a href=\"\/blog\/images\/virtualbox-incorrect-status.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"VirtualBox says Powered Off\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/virtualbox-incorrect-status.png\" border=\"0\" title=\"VirtualBox says Powered Off (click to enlarge)\" alt=\"VirtualBox says Powered Off\" width=\"560\" \/><\/a>\n<\/p>\n<p>And it wasn&#8217;t just the VirtualBox Manager. Even the powerful <a href=\"https:\/\/www.virtualbox.org\/manual\/ch08.html\" target=\"_blank\" rel=\"noopener noreferrer\">VBoxManage command line utility<\/a> thought that our VM wasn&#8217;t running:<br \/>\n<a href=\"\/blog\/images\/vboxmanage-list-runningvms-none.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"VBoxManage list runningvms - No VMs running\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/vboxmanage-list-runningvms-none.png\" border=\"0\" title=\"VBoxManage list runningvms - No VMs running (click to enlarge)\" alt=\"VBoxManage list runningvms - No VMs running\" width=\"560\" \/><\/a>\n<\/p>\n<p>However, when we <a href=\"http:\/\/www.coretechnologies.com\/products\/AlwaysUp\/Apps\/RunCommandPromptAsAService.html\">ran a command prompt in Session 0<\/a>, VBoxManage saw the VM there:<br \/>\n<a href=\"\/blog\/images\/vboxmanage-list-runningvms-session0.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"VBoxManage list runningvms in Session 0\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/vboxmanage-list-runningvms-session0.png\" border=\"0\" title=\"VBoxManage list runningvms in Session 0 (click to enlarge)\" alt=\"VBoxManage list runningvms in Session 0\" width=\"560\" \/><\/a>\n<\/p>\n<p><b>So it seems that the VirtualBox tools can only see virtual machines running in the same session that they are in.<\/b><\/p>\n<p>Therefore, we simply can&#8217;t rely on the state shown in the VirtualBox Manager application when running our VM in the background (in Session 0) with AlwaysUp.<\/p>\n<p>Bummer. \ud83d\ude41<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/avoid-shutdown-restarts\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Why does AlwaysUp Restart my Application During Windows Shutdown?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/shutdown-windows-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Why does AlwaysUp Restart my Application During Windows Shutdown?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/daily-woocommerce-import\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: Can AlwaysUp Trigger a Daily Import into my WooCommerce Site?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/woocommerce-logo-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: Can AlwaysUp Trigger a Daily Import into my WooCommerce Site?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/alwaysup-works-with-windows-8-windows-server-2012\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Windows 8\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/win8-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp works with Windows 8 &amp; Windows Server 2012<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>We&#8217;re big fans of Oracle&#8217;s VirtualBox software. It&#8217;s powerful and free, and it enables our small company to efficiently test and validate our software on various versions of Windows without having to invest in costly, dedicated hardware. However, we noticed &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/virtualbox-vm-powered-off\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2202,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,176,177],"class_list":["post-2062","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-virtual-machine","tag-virtualbox"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=2062"}],"version-history":[{"count":3,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2062\/revisions"}],"predecessor-version":[{"id":11282,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/2062\/revisions\/11282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/2202"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=2062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=2062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=2062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}