Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Add VirtualBox tools support #143

Closed
wlan0 opened this issue Apr 9, 2015 · 13 comments
Closed

Add VirtualBox tools support #143

wlan0 opened this issue Apr 9, 2015 · 13 comments

Comments

@wlan0
Copy link
Contributor

wlan0 commented Apr 9, 2015

https://www.virtualbox.org/manual/ch04.html

@miztiik
Copy link

miztiik commented Aug 16, 2015

I second this, I would really like built in support for VirtualBox Tools

@ibuildthecloud
Copy link
Contributor

This request has been coming more and more. Especially since RancherOS works in docker-machine and people expect folder sharing to work like b2d. We are in the process of releasing v0.4 now and we can't squeeze in this feature. But it think we can get it in the next release.

@miztiik
Copy link

miztiik commented Aug 16, 2015

Thanks for the update,

I am seriously considering this platform to host some of my applications, so would like to know what is the expected time frame. I have been researching rancher os only recently so not sure about your release cycles, Can you please tell us about your release cycle, When would be the next release 'tentatively'

@ibuildthecloud
Copy link
Contributor

We don't have a fixed release cycle yet. We should create one soon, but releases have been pretty ad hoc right now . V0.4 should be released by the 26th. The vbox support I won't expect until 4 weeks after that. After v0.4 you should expect a monthly release. We'd like to get that shorter but we've found testing all the permutations of clouds and baremetal to be pretty time consuming.

@philipz
Copy link

philipz commented Oct 30, 2015

I used docker-machine to create RancherOS on VMware vShpere was timeout. And by docker-machine just create a VM, it didn't run ros install -d /dev/sda automatic. So, I couldn't use docker-machine to ssh this VM.
https://gist.github.com/philipz/2eb126f6c68568a1ef57
http://docs.rancher.com/os/running-rancheros/workstation/docker-machine/
http://docs.rancher.com/os/running-rancheros/server/install-to-disk/

@deniseschannon deniseschannon modified the milestones: Milestone Nov 18, 2015, Milestone Dec 23, 2015 Nov 10, 2015
@deniseschannon deniseschannon modified the milestones: Milestone Dec 2, 2015, Milestone Dec 23, 2015 Dec 3, 2015
@deniseschannon deniseschannon modified the milestones: v0.4.3 , v0.4.4 or v0.5.0 Jan 20, 2016
@deniseschannon deniseschannon modified the milestones: v0.5.0, v0.5.1 Jun 17, 2016
@deniseschannon deniseschannon modified the milestones: v0.5.1, v0.5.2 Jul 11, 2016
@deniseschannon deniseschannon modified the milestone: Upcoming milestone Sep 1, 2016
@zot24
Copy link

zot24 commented Nov 21, 2016

Have being a while since the last time this thread was update (we are now on RancherOS 0.7.1) I was wondering if there is any news or have anyone manage to make RancherOS works properly with VirtualBox and share local folders?

@xinity
Copy link

xinity commented May 18, 2017

tried with rancherOS LTS, nothing comes up :(
That's a pity as i wished for replacing boot2docker with RancherOS.

Please do something for us rancherOS fans !!!

@niusmallnan
Copy link
Contributor

@kingsd041 we need to do something like this: https://github.com/boot2docker/boot2docker/blob/master/Dockerfile#L362-L380
May need to introduce it through os-services.

@kingsd041
Copy link
Contributor

We have supported VirtualBox tools in the RancherOS v1.5.1-rc1 version.

How to use

First, you need to start the virtualbox-tools service in rancheros.

sudo ros service enable virtualbox-tools
sudo ros service up virtualbox-tools

Note: if you switch consoles, you may need to re-run ros service restart virtualbox-tools.

After the virtualbox-tools service starts, it will automatically load the vbox module and start the VBoxService process.

lsmod | grep -i vbox
vboxsf                 49152  0
vboxguest             258048  2 vboxsf

ps -ef | grep VBoxService
root      1898     1  0 09:12 ?        00:00:00 [VBoxService] <defunct>
root      1900     1  0 09:12 ?        00:00:00 /sbin/VBoxService --disable-automount

At this point, you can mount the shared folder with mount.vboxsf test /mnt. If you want to mount it automatically, you can also do the following:

#cloud-config
write_files:
  - path: /etc/rc.local
    permissions: "0755"
    owner: root
    content: |
      #!/bin/bash
      for _ in {1..10}
      do
          if [ -f /sbin/mount.vboxsf ];then
              mount.vboxsf ansible /mnt/ansible
              break
          else
              sleep 1
          fi
      done

Note:

  1. We do not support the auto-mount feature of shared folders.
  2. Using mount.vboxsf in the alpine console is not yet supported.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests