Menu

Remote vboxwebsrv

Help
2016-02-27
2016-04-02
  • Chris Kurlinski

    Chris Kurlinski - 2016-02-27

    If you are running a separate web server to access the vboxwebsrv service, for phpvirtualbox-5.0.3 on funtoo linux,
    I had to set in /etc/conf.d/vboxwebsrv service config file
    VBOXWEBSRV_HOST="0.0.0.0"

    It will not respond to any address, not sure why, tried FQDN's, bridged address's, vbox bridge address's, direct eth0 adress.
    Set it to 0.0.0.0, and bam! works.
    Secure access to service though firewall. But finally got it to work.
    BTW, it is connecting from a LXC container running on the host, Host is running the virtualbox vboxwebsrv service instance.
    Haven't got a LXC container to run virtualbox yet, working on that.

     
  • Chris Kurlinski

    Chris Kurlinski - 2016-04-02

    I now have VirtualBox working in a LXC container.
    Autostarting the LXC on boot, and autostarting the VM on boot.

    Gave LXC access to the VB modules

    lxc.cgroup.devices.allow = c 10:57 rwm # /dev/vboxdrv
    lxc.cgroup.devices.allow = c 10:56 rwm # /dev/vboxdrvu
    lxc.cgroup.devices.allow = c 10:55 rwm # /dev/vboxnetctl
    

    Loaded modules at boot inside lxc with a local.d script.
    cat /etc/local.d/vbox_mod.start

    1
    2
    3
    4
    #!/bin/bash
    mknod -m 660 /dev/vboxdrv c 10 57
    mknod -m 660 /dev/vboxdrvu c 10 56
    mknod -m 660 /dev/vboxnetctl c 10 55
    

    Can't attest to the security of this setup yet, but it works.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.