<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Virtualbox - Tag - Dimas Maulana</title>
    <link>https://dimasmaulana.pages.dev/tags/virtualbox/</link>
    <description>Dimas Maulana Website</description>
    <generator>Hugo 0.150.0 &amp; FixIt v0.4.3-20260130042349-e23a50d7</generator>
    <language>en</language>
    <lastBuildDate>Thu, 14 Nov 2024 08:40:11 +0700</lastBuildDate>
    <atom:link href="https://dimasmaulana.pages.dev/tags/virtualbox/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Refreshing Your Virtual Machine List in VirtualBox on Windows via SSH CLI</title>
      <link>https://dimasmaulana.pages.dev/posts/devops/refreshing-your-virtual-machine-list-in-virtualbox-on-windows-via-ssh-cli/</link>
      <pubDate>Thu, 14 Nov 2024 08:40:11 +0700</pubDate>
      <guid>https://dimasmaulana.pages.dev/posts/devops/refreshing-your-virtual-machine-list-in-virtualbox-on-windows-via-ssh-cli/</guid>
      <category domain="https://dimasmaulana.pages.dev/categories/devops/">DevOps</category>
      <description>&lt;p&gt;Sometimes, when working with VirtualBox on Windows, you might encounter an issue where your virtual machine list doesn&amp;rsquo;t update correctly, even after making changes like unlocking an encrypted drive. This can be frustrating when you&amp;rsquo;re trying to manage your VMs.&lt;/p&gt;&#xA;&lt;p&gt;This article will guide you through a solution to refresh your VirtualBox VM list via the command line interface (CLI) accessed via SSH.&lt;/p&gt;&#xA;&lt;h3 class=&#34;heading-element&#34; id=&#34;the-problem&#34;&gt;&lt;span&gt;The Problem&lt;/span&gt;&#xA;  &lt;a href=&#34;#the-problem&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;p&gt;Let&amp;rsquo;s say you have a virtual machine stored on an encrypted drive. When Windows starts, the drive is locked. You can unlock the drive via SSH, but when you try to list your virtual machines using &lt;code&gt;vboxmanage&lt;/code&gt; within your SSH session, you might still get an &amp;ldquo;access denied&amp;rdquo; error.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Automate Your VirtualBox VMs with Autostart</title>
      <link>https://dimasmaulana.pages.dev/posts/devops/automate-your-virtualbox-vms-with-autostart/</link>
      <pubDate>Fri, 08 Oct 2021 18:23:23 +0700</pubDate>
      <guid>https://dimasmaulana.pages.dev/posts/devops/automate-your-virtualbox-vms-with-autostart/</guid>
      <category domain="https://dimasmaulana.pages.dev/categories/devops/">DevOps</category>
      <description>&lt;p&gt;This guide will walk you through setting up a system service to automatically launch your desired VirtualBox VMs, saving you precious time and effort.&lt;/p&gt;&#xA;&lt;h3 class=&#34;heading-element&#34; id=&#34;configure-autostart-properties&#34;&gt;&lt;span&gt;Configure Autostart Properties&lt;/span&gt;&#xA;  &lt;a href=&#34;#configure-autostart-properties&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;Create a file named &lt;code&gt;autostart.properties&lt;/code&gt; in the folder &lt;code&gt;C:\Users\Admin\.VirtualBox&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Inside the file, define the following:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&lt;code&gt;default_policy = deny&#xA;Admin = {&#xA;    allow = true&#xA;    startup_delay = 10&#xA;}&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;default_policy = deny&lt;/code&gt;: This sets the default policy to deny all autostarts.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;Admin = { allow = true; startup_delay = 10 }&lt;/code&gt;: This allows the user &amp;ldquo;Admin&amp;rdquo; to start VMs with a 10-second delay.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 class=&#34;heading-element&#34; id=&#34;set-system-variable&#34;&gt;&lt;span&gt;Set System Variable&lt;/span&gt;&#xA;  &lt;a href=&#34;#set-system-variable&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;Create a new system variable named &lt;code&gt;VBOXAUTOSTART_CONFIG&lt;/code&gt; and set its value to &lt;code&gt;C:\Users\Admin\.VirtualBox\autostart.properties&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 class=&#34;heading-element&#34; id=&#34;install-the-virtualbox-autostart-service&#34;&gt;&lt;span&gt;Install the VirtualBox Autostart Service&lt;/span&gt;&#xA;  &lt;a href=&#34;#install-the-virtualbox-autostart-service&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;Navigate to the VirtualBox installation directory: &lt;code&gt;cd &amp;quot;C:\Program Files\Oracle\VirtualBox&amp;quot;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Run the following commands:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre&gt;&lt;code&gt;.\VBoxAutostartSvc.exe install --user=Admin&#xA;.\VBoxManage.exe modifyvm &amp;#34;virtual-pc&amp;#34; --autostart-enabled on&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Replace &lt;code&gt;&amp;quot;virtual-pc&amp;quot;&lt;/code&gt; with the actual name of your VM you want to autostart.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 class=&#34;heading-element&#34; id=&#34;check-and-start-the-service&#34;&gt;&lt;span&gt;Check and Start the Service&lt;/span&gt;&#xA;  &lt;a href=&#34;#check-and-start-the-service&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;ul&gt;&#xA;&lt;li&gt;Use the &lt;code&gt;sc&lt;/code&gt; command to check the service status: &lt;code&gt;sc query VBoxAutostartSvcadmin-pcadmin&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Start the service: &lt;code&gt;sc start VirtualBox Autostart Service VBoxAutostartSvcadmin-pcadmin&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Congratulations!&lt;/strong&gt; Your VirtualBox VM is now set to autostart when your system boots.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
