Vagrant starting Ubuntu Vm through VirtualBox on a Windows machine not able to set up network configuration

63 views
Skip to first unread message

Paul Davidson

unread,
Feb 3, 2016, 6:00:33 AM2/3/16
to Vagrant
I have a Windows 8.1 machine. I have installed Vagrant and VirtualBox. If I start an Ubuntu VM (ubuntu/trusty32) up using VirtualBox it seems to start fine. I can then use the following command to connect:

    > vagrant ssh

However, if I instead use Vagrant to start the VM, it times out. The command I use is:

    > vagrant up

When this times out, I use VirtualBox to connect to the VM, and I see the following issues:

    waiting for network device
    gave up waiting for network device
    route info failed

    waiting for network configuration
    booting system without full Network Configuration

This to me, looks like a problem with my Vagrant configuration setup for the network. However, I use the basic config file from using:

    > vagrant init ubuntu/trusty32

I have the following network config on my Windows machine:

    Ethernet - using 10.1.2.91 (static)
    WiFi     - disabled

The network set up seems identical when I run showvminfo from VBoxManage. However, if I log into the Ubuntu VM, and run "ifconfig -a" the VM that is started with Vagrant is missing the following line:

    inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0

Any ideas? Network issues are not my strong point.

Paul Davidson

unread,
Feb 3, 2016, 9:04:22 AM2/3/16
to Vagrant

Problem resolved by running this command in an elavated command prompt 

bcdedit /set hypervisorlaunchtype off


Robert Lilly

unread,
Feb 3, 2016, 12:18:03 PM2/3/16
to Vagrant
That's an important item to note. If the Windows machine has Hyper-V running it has to be turned off in order for VirtualBox to run correctly, especially when run through Vagrant. This applies to Windows 8.x and 10.
Reply all
Reply to author
Forward
0 new messages