Skip to content

Instantly share code, notes, and snippets.

@ntfc
Last active September 29, 2017 08:44
Show Gist options
  • Select an option

  • Save ntfc/77a5160eb69c3ce4fa88 to your computer and use it in GitHub Desktop.

Select an option

Save ntfc/77a5160eb69c3ce4fa88 to your computer and use it in GitHub Desktop.

Revisions

  1. ntfc revised this gist Sep 13, 2016. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -9,11 +9,7 @@ Install these packages to mount host volumes on the VMs

    Load modules:

    * `vboxdrv`
    * `vboxnetadp`
    * `vboxnetflt`
    * `vboxpci`
    * `vboxnetadp` (it's the fix from the problem below)
    * `modprobe vboxdrv vboxnetadp vboxnetflt vboxpci`

    # Problems

  2. ntfc revised this gist Jan 23, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,11 @@
    # VirtualBox

    Install these packages to mount host volumes on the VMs
    * `virtualbox`
    * `virtualbox-host-modules`
    * `virtualbox-guest-modules`
    * `virtualbox-guest-iso`
    * `virtualbox-guest-utils`

    Load modules:

  3. ntfc revised this gist Jan 23, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ Load modules:
    * `vboxnetadp`
    * `vboxnetflt`
    * `vboxpci`
    * `vboxnetadp` (it's the fix from the problem below)

    # Problems

  4. ntfc revised this gist Nov 22, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    # VirtualBox

    Install package `virtualbox-guest-modules` to mount host volumes on the VMs
    Install these packages to mount host volumes on the VMs
    * `virtualbox-guest-modules`
    * `virtualbox-guest-iso`

    Load modules:

  5. ntfc revised this gist Nov 22, 2015. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,13 @@
    # VirtualBox

    Install package `virtualbox-guest-modules`
    Install package `virtualbox-guest-modules` to mount host volumes on the VMs

    Load modules:

    * `vboxdrv`
    * `vboxnetadp`
    * `vboxnetflt`
    * `vboxpci`
    * `vboxsf`
    * `vboxguest`
    * `vboxvideo`

    # Problems

  6. ntfc revised this gist Nov 22, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,15 @@
    # VirtualBox

    Install package `virtualbox-guest-modules`
    Load modules:

    * `vboxdrv`
    * `vboxnetadp`
    * `vboxnetflt`
    * `vboxpci`
    * `vboxsf`
    * `vboxguest`
    * `vboxvideo`

    # Problems

  7. ntfc revised this gist Nov 18, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,10 @@

    Load modules:

    * `sudo modprobe vboxdrv`
    * `sudo modprobe vboxnetadp`
    * `vboxdrv`
    * `vboxnetadp`
    * `vboxnetflt`
    * `vboxpci`

    # Problems

  8. ntfc revised this gist Nov 18, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,4 @@ VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNe
    VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 71 of file VBoxManageHostonly.cpp
    ```

    *Solution:* modprobe `vboxnetadp`
    **Solution:** modprobe `vboxnetadp`
  9. ntfc revised this gist Nov 18, 2015. No changes.
  10. ntfc created this gist Nov 18, 2015.
    24 changes: 24 additions & 0 deletions vagrant_ansible.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # VirtualBox

    Load modules:

    * `sudo modprobe vboxdrv`
    * `sudo modprobe vboxnetadp`

    # Problems

    ```
    There was an error while executing `VBoxManage`, a CLI used by Vagrant
    for controlling VirtualBox. The command and stderr is shown below.
    Command: ["hostonlyif", "create"]
    Stderr: 0%...
    Progress state: NS_ERROR_FAILURE
    VBoxManage: error: Failed to create the host-only adapter
    VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
    VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
    VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 71 of file VBoxManageHostonly.cpp
    ```

    *Solution:* modprobe `vboxnetadp`