VirtualBox rcvboxdrv setup error "Bad argument setup"

From a comment on the ticket, run the following command:

sudo /usr/lib/virtualbox/vboxdrv.sh setup

instead of the command given by VirtualBox.


On the Oracle's bugtracker I found that the issue is already fixed in the "test" build: https://www.virtualbox.org/wiki/Testbuilds.

Ref: https://www.virtualbox.org/ticket/15055


Until this is fixed, you could edit the /sbin/rcvboxdrv file (e. g. in a terminal using Nano editor via sudo nano /sbin/rcvboxdrv) and add some lines:

[…]
while test -n "${1}"; do
    case "${1}" in
        --nostart)
            START=
            ;;
        # START Workaround for https://www.virtualbox.org/ticket/15055
        setup)
            /usr/lib/virtualbox/vboxdrv.sh setup
            ;;
        # END
        *)
            echo "Bad argument ${1}" >&2
            exit 1
            ;;
    esac
    shift
done
[…]

Use CTRL+O to save the changes. After this, you should be able to run sudo /sbin/rcvboxdrv setup again.

Tags:

Virtualbox