<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=8110&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / VirtualBox autostart]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8110</link>
		<description><![CDATA[The most recent posts in VirtualBox autostart.]]></description>
		<lastBuildDate>Mon, 20 Jul 2026 21:44:47 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: VirtualBox autostart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64854#p64854</link>
			<description><![CDATA[<p>I don&#039;t mess with init scripts. I have a vague memory of making desktop buttons to start specific virtual machines with some vbox command that I don&#039;t remember. You could probably start it with a command right after user autologin after all necessary services are running.</p><p>(Warning. This was so long ago, I might be remembering something with vmware.)</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 20 Jul 2026 21:44:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64854#p64854</guid>
		</item>
		<item>
			<title><![CDATA[Re: VirtualBox autostart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64848#p64848</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I see.<br />So [99] and [10] not needed?<br />Good to know.</p></div></blockquote></div><p>Maybe yes, maybe no, if no number is specified the system defaults to giving it a priority of 20, which may not work for you.</p><p>Never used an init script for conky before, I start it from the openbox autostart file, and in fact I just moved the nm-applet there too out of /etc/xdg/autostart, and set it to start before conky.&#160; Xdg also has an autostart config file if you make one but I never did.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Mon, 20 Jul 2026 18:07:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64848#p64848</guid>
		</item>
		<item>
			<title><![CDATA[Re: VirtualBox autostart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64847#p64847</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>chmod +x /etc/init.d/vbox-autostart looks OK.<br />... man update-rc.d to see ...</p></div></blockquote></div><p>Yes, I knew what those numbers were for but I did not want to go too far with the delay in starting.<br />eg: it could be that [99] is too much, maybe [44] would be enough.</p><div class="quotebox"><cite>greenjeans wrote:</cite><blockquote><div><p>99 indicates you want it to start after everything else ...<br />... kill early in the shutdown process.</p></div></blockquote></div><p>Right.</p><div class="quotebox"><cite>I wrote:</cite><blockquote><div><p>... taken care of with the [Required-start] line in the script?</p></div></blockquote></div><div class="quotebox"><cite>greenjeans wrote:</cite><blockquote><div><p>... start/stop run-levels are now contained in the LSB info ...</p></div></blockquote></div><p>I see.<br />So [99] and [10] not needed?<br />Good to know.</p><p>And what about Conky ...<br />A [sysvinit] script to make sure it starts (with no delays) only if the network is up or stay as it is with a delay that does not always work?&#160; </p><p>Any one have a [sysvinit] script for Conky? </p><p>Thanks you both for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 20 Jul 2026 17:42:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64847#p64847</guid>
		</item>
		<item>
			<title><![CDATA[Re: VirtualBox autostart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64846#p64846</link>
			<description><![CDATA[<p>The numbers are just the start and kill sequence numbers, where/when in the process you want them to start/stop, as some things depend on other things already being started. So the 99 indicates you want it to start after everything else when booting, and kill early in the shutdown process.</p><p>The start/stop run-levels are now contained in the LSB info at the top of the script rather than in the update-rc.d command like they used to back in the day, thus &quot;defaults&quot; means use the lsb data.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Mon, 20 Jul 2026 17:26:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64846#p64846</guid>
		</item>
		<item>
			<title><![CDATA[Re: VirtualBox autostart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64843#p64843</link>
			<description><![CDATA[<p><span class="bbc">chmod +x /etc/init.d/vbox-autostart</span> looks OK.</p><p>Try <span class="bbc">man update-rc.d</span> to see what the second command will do. I&#039;d try <span class="bbc">update-rc.d -n vbox-autostart defaults 99 10</span> first (the -n means just say what it would do).</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Mon, 20 Jul 2026 16:10:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64843#p64843</guid>
		</item>
		<item>
			<title><![CDATA[VirtualBox autostart]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64841#p64841</link>
			<description><![CDATA[<p>Hello:</p><p>I use a headless VirtualBox VM to run a stripped down Devuan Chimaera with Pi-hole + unbound.<br />Has worked without issues but these days I am having some issues with it coming on-line.<br />eg: stalling </p><p>To spin up the VM, I use its own start-up service to which I can add a delay but for some reason (another topic) sometimes it does not work. so I thought about being consistent with Devuan and having this VM (only one needed at boot) start-up via [sysvinit].&#160; &#160;</p><p>A search on the web got me this:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
### BEGIN INIT INFO
# Provides:          vbox-autostart
# Required-Start:    $local_fs $syslog $network vboxdrv
# Required-Stop:     $local_fs $syslog $network vboxdrv
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Autostart VirtualBox VMs on Devuan SysVinit
### END INIT INFO  

case &quot;$1&quot; in
    start)
        echo &quot;Starting VirtualBox VMs for user $VM_USER...&quot;
        for VM in $VMS; do
            echo &quot;Booting $VM...&quot;
            su - $VM_USER -c &quot;/usr/bin/VBoxManage startvm \&quot;$VM\&quot; --type headless&quot;
        done
        ;;
    stop)
        echo &quot;Stopping VirtualBox VMs gracefully...&quot;
        for VM in $VMS; do
            echo &quot;Sending ACPI shutdown to $VM...&quot;
            su - $VM_USER -c &quot;/usr/bin/VBoxManage controlvm \&quot;$VM\&quot; acpipowerbutton&quot;
        done
        # Give the VMs a few seconds to flush disk cache and turn off
        echo &quot;Waiting for VMs to close...&quot;
        sleep 10
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    status)
        echo &quot;Currently running VMs:&quot;
        su - $VM_USER -c &quot;/usr/bin/VBoxManage list runningvms&quot;
        ;;
    *)
        echo
  exit 1
        ;;
esac

exit 0</code></pre></div><p>The rest is the making the script executable and registering it, which I recall having done at some time with some script.</p><p>As root: <span class="bbc">chmod +x /etc/init.d/vbox-autostart</span> and <span class="bbc">update-rc.d vbox-autostart defaults 99 10</span></p><p>I have no trust in this AI thing and don&#039;t want to screw up anything so I&#039;d appreciate some input.</p><p>eg: the [99 10] at the end of the [update-rc.d] line.<br />I only need to make sure the network is up for the VM to start so that Conky can fetch my IPv4 address.</p><p>Does that not get taken care of with the [Required-start] line in the script? <br />Shouldn&#039;t Conky have its own script (?) to make sure it does not start before the VM is upand not depend on a delay?</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 20 Jul 2026 10:20:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64841#p64841</guid>
		</item>
	</channel>
</rss>
