How to start a script in a VirtualBox Linux guest from a Windows host?


Ivan

I have the following build system:

  • The Windows host comes with a set of source files that need to be built
  • Linux guest inside VirtualBox with build server

Now, I mount the filesystem via the virtual box shared folder. Then I perform a few steps to build the system:

  • Switch to VirtualBox
  • run build script
  • Copy build results to shared folder

Doing this manually is boring and time consuming. How to run a shell script in a VirtualBox guest from the host?

Mach
  1. First create a Windows script (.cmd, .vbs) to run VirtualBox automatically (see this documentation )
  2. Put a build script on a Linux machine to run at boot ( how-to guide for ubuntu )
  3. Create a shell script that waits for the results to be created (should be easy to implement if the results are displayed in a unique form based on timestamp) and copy them into a shared folder

Related


How to copy paste from Ubuntu VirtualBox guest to Windows host?

Misha Moroshko I'm running VirtualBox 4.1.4 on a Windows 7 laptop with an Ubuntu 11.10 guest. I want to copy text from Ubuntu terminal and paste it into a file on Windows host. For some reason this doesn't work. Any ideas? Soekarno Start your VM, then install

How to copy paste from Ubuntu VirtualBox guest to Windows host?

Misha Moroshko I'm running VirtualBox 4.1.4 on a Windows 7 laptop with an Ubuntu 11.10 guest. I want to copy text from Ubuntu terminal and paste it into a file on Windows host. For some reason this doesn't work. Any ideas? Soekarno Start your VM, then install

VirtualBox - how to pass modem from ubuntu host to windows guest

Carlos Castellanos Is it possible to pass a USB modem that is not recognized by the host Ubuntu 15.04 to a Windows guest? , I have Windows drivers and I want to use dialup while keeping my Ubuntu host. what should I do? Can any other virtualization software he

How to copy paste from Ubuntu VirtualBox guest to Windows host?

Misha Moroshko I'm running VirtualBox 4.1.4 on a Windows 7 laptop with an Ubuntu 11.10 guest. I want to copy text from Ubuntu terminal and paste it into a file on Windows host. For some reason this doesn't work. Any ideas? Soekarno Start your VM, then install

VirtualBox - how to pass modem from ubuntu host to windows guest

Carlos Castellanos Is it possible to pass a USB modem that is not recognized by the host Ubuntu 15.04 to a Windows guest? , I have Windows drivers and I want to use dialup while keeping my Ubuntu host. what should I do? Can any other virtualization software he

How to access Apache from host (on VirtualBox guest)?

urok93 I have Apache installed on an Ubuntu VM. When I go into the client machine and load Firefox, I can see that Apache is running fine when I browse to localhost. I want to access the same page through the host. I tried using the guest's IP address, but not

How to access Apache from host (on VirtualBox guest)?

urok93 I have Apache installed on an Ubuntu VM. When I go into the client machine and load Firefox, I can see that Apache is running fine when I browse to localhost. I want to access the same page through the host. I tried using the guest's IP address, but not

VirtualBox: Find out host IP from NAT mode Linux guest

username I need to SSH from a guest VM (Linux/Debian 9) to a host running VirtualBox on a Windows 10 machine. Network configuration: NAT. Which Linux command can I use to find out the host's IP from the guest? betib Displays the internal IP address of the Virt