Note that there are some explanatory texts on larger screens.

plurals
  1. POExecute Command after VM Booted
    primarykey
    data
    text
    <p>I've gotten sick of how many steps it takes me to get started in the morning. Yes it only takes me a few minutes to start up my whole environment, but I'd really rather just run a single command on boot-up and be ready to go immediately.</p> <p>I'm writing an app on Rails connected to SqlServer. To develop for it I have a local version of the DB I use on a VM. My manual process goes like this:</p> <pre><code>Run VirtualBox. Start the VM. When the VM is done booting: Open terminal Run `rails s` When rails is done starting: open browser navigate to localhost:3000 and start developing Run Sublime </code></pre> <p>I'd love to do this in one script:</p> <pre><code>VirtualBox Windows7 &amp; sublime &amp; google-chrome &amp; </code></pre> <p>But I can't figure out how to run this command <em>only</em> once the VM is done booting:</p> <pre><code>gnome-terminal --working-directory=git/my_project --tab -e 'rails s' --tab -e 'git status' </code></pre> <p>Also, it'd be nice (but not necessary) to have chrome start <em>after</em> rails s has succeeded.</p> <p>Is this even possible?</p> <p>I'm not opposed to polling, but it feels like this is something VirtualBox should be able to do a bit more naturally.</p> <p><strong>EDIT</strong></p> <p>From Comment:</p> <p>I'm using Host-Only network with two Bridged Interfaces (one for wireless and one for wired) available. (It allows me to use the VM whether or not I'm connected to a network, and lets me freely switch between wired and wireless without noticing the difference).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload