How to config "ubuntu/trusty64" Vagrant box properly on Windows 10?

2

I know this question has been asked several times. But all answers on those questions haven't worked for me.

I'm trying to install a new virtual machine using VirtualBox 5.1.4 (VirtualBox-5.1.14-112924-Win) and Vagrant 1.9.1 on my Windows 10.

The error is the following:

Timed out while waiting for the machine to boot

In order to avoid it I add a new line in vagrantfile:

config.vm.boot_timeout = 900

But error persists.

I also enabled the GUI removing the comment (according to the answer here):

vb.gui = true

However it returns a new error:

The guest machine entered an invalid state while waiting for it to boot…

I also followed this answer:

select Ubuntu server, click on Settings, go to Network tab and make sure that your Cable Connected option is selected

…and cable connected option was selected. However it shows this notifications:

invalid configuration detected

This is my Vagrantfile.

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.boot_timeout = 900

  config.vm.provider "virtualbox" do |vb|
    vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
    vb.memory = "2048"
  end

end

Is there another method to solve this problem?

Ramiro Tormenta

Posted 2017-02-26T03:26:49.647

Reputation: 125

@techraf I did it a few times. Now I did it in a new directory but without luck. – Ramiro Tormenta – 2017-02-26T04:18:58.937

What version of VirtualBox 5.1 do you have? It’s up to VirtualBox 5.1.4 at this point. There are a lot of different patch versions out there that fix all kinds of stuff.

– JakeGould – 2017-02-26T04:23:52.683

@JakeGould This is the version: VirtualBox-5.1.14-112924-Win – Ramiro Tormenta – 2017-02-26T04:26:43.240

Answers

2

For what I can see: you need to enable virtualization technology (VT-X) extensions in BIOS in order to run virtual machines.

Your Vagrantfile is fine to configure a new box. However, the problem about:

Timed out while waiting for the machine to boot...

...sounds like VT-X is disabled in your windows configuration (Basic Input/ Output System).

Try to enable this feature and box installation should works now.

estebanpdl

Posted 2017-02-26T03:26:49.647

Reputation: 136