error: VT-x is not available (VERR_VMX_NO_VMX)


DONG ZHOU
 

Dear Experts,

We are going to install CF by BOSH-Lite, i have vagrant_1.9.3_x86_64 and virtualbox-5.1_5.1.18 installed on Ubuntu 14.

When i try to vagrant up --provider=virtualbox follow the guide below, i get the error message that VM can not created.
Could you please advise how can i fix this?

https://github.com/cloudfoundry/bosh-lite/blob/master/README.md#install-bosh-lite

~/workspace/bosh-lite$ vagrant up --provider=virtualbox

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'cloudfoundry/bosh-lite' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "5fa64433-4b6a-4b81-9d14-fb7fb2e59f8b", "--type", "headless"]

Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole


Tushar Dadlani
 

On Tue, Apr 18, 2017 at 2:12 AM DONG ZHOU <wlbcheng(a)gmail.com> wrote:

Dear Experts,

We are going to install CF by BOSH-Lite, i have vagrant_1.9.3_x86_64 and
virtualbox-5.1_5.1.18 installed on Ubuntu 14.

When i try to vagrant up --provider=virtualbox follow the guide below, i
get the error message that VM can not created.
Could you please advise how can i fix this?


https://github.com/cloudfoundry/bosh-lite/blob/master/README.md#install-bosh-lite

~/workspace/bosh-lite$ vagrant up --provider=virtualbox

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'cloudfoundry/bosh-lite' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "5fa64433-4b6a-4b81-9d14-fb7fb2e59f8b", "--type",
"headless"]

Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component
ConsoleWrap, interface IConsole


DONG ZHOU
 

Thank you Tushar, I have checked BIOS and virtualbox setting, all looks as expected.
But the issue persistence.

My test environment is i installed Ubuntu in a virtualbox on my local PC. and now i'm going to install BOTH-LITE into the Ubuntu. (both is trying to startup VMs in the Ubuntu, then i get the error)
There is a hint from internet that CPU can not be nested virtual.
Is this true?
If there is any way to overcome this limitation?

Thank you.


DONG ZHOU
 

Thank you Tushar, I have checked BIOS and virtualbox setting, all looks as expected.
But the issue persistence.

My test environment is i installed Ubuntu in a virtualbox on my local PC. and now i'm going to install BOTH-LITE into the Ubuntu. (both is trying to startup VMs in the Ubuntu, then i get the error)
There is a hint from internet that CPU can not be nested virtual.
Is this true?
If there is any way to overcome this limitation?

Thank you.


Adrian.Kurt@...
 

I suggest to try to run your bosh-lite vm from the same host OS your starting your Ubuntu vm.
If you connect both to the same virtual network you can interact with your bosh-lite from the Ubuntu machine.

It is possible to nest virtualization but it's not recommended. You would have to enable the virtualization inside the advanced cpu config of virtualbox.

-----Original Message-----
From: DONG ZHOU [mailto:wlbcheng(a)gmail.com]
Sent: Donnerstag, 20. April 2017 03:14
To: cf-bosh(a)lists.cloudfoundry.org
Subject: [cf-bosh] Re: error: VT-x is not available (VERR_VMX_NO_VMX)

Thank you Tushar, I have checked BIOS and virtualbox setting, all looks as expected.
But the issue persistence.

My test environment is i installed Ubuntu in a virtualbox on my local PC. and now i'm going to install BOTH-LITE into the Ubuntu. (both is trying to startup VMs in the Ubuntu, then i get the error) There is a hint from internet that CPU can not be nested virtual.
Is this true?
If there is any way to overcome this limitation?

Thank you.


DONG ZHOU
 

Dear Adrian,

Thanks a lot for your feedback.
because i do not have enough HW resource, i can not install Ubuntu to a phical server.

Could you please share how can i "enable the virtualization inside the advanced cpu config of virtualbox"? does that mean i should do something in my Ubuntu machine (virtual machine), and how?

Thanks in advance.
Wish you have a nice weekend.


Adrian.Kurt@...
 

I'd not install it in the vm. Just use vagrant to start the bosh-lite on the same host. So you have two vms: 1. You Ubuntu vm, 2. A bosh-lite

I used this setup myself to start developing bosh releases.



You should be able to enable virtualization inside your vm using the advanced setting of the processer configuration. I've added a screenshot of the config.

Select the 'Enable VT-x/AMD-V' option.

[cid:image002.png(a)01D2BA95.826E5D10]



I'm pretty sure you won't be happy with the nested virtualization as it is really slow due to the huge amount of overhead.

So please just start the bosh-lite in the same virualbox instance as your Ubuntu vm is running in.



Have a nice weekend as well!

Kind regards

Adrian

-----Original Message-----
From: DONG ZHOU [mailto:wlbcheng(a)gmail.com]
Sent: Freitag, 21. April 2017 10:53
To: cf-bosh(a)lists.cloudfoundry.org
Subject: [cf-bosh] Re: Re: Re: error: VT-x is not available (VERR_VMX_NO_VMX)



Dear Adrian,



Thanks a lot for your feedback.

because i do not have enough HW resource, i can not install Ubuntu to a phical server.



Could you please share how can i "enable the virtualization inside the advanced cpu config of virtualbox"? does that mean i should do something in my Ubuntu machine (virtual machine), and how?



Thanks in advance.

Wish you have a nice weekend.


Stanislav German-Evtushenko
 

VirtualBox does not support nested virtualization https://www.virtualbox.org/ticket/4032.


DONG ZHOU
 

Dear Adrian,

Thanks for your feedback.
The screenshot didnot showup in the web. Could you please send again?

about you mentioned: Select the 'Enable VT-x/AMD-V' option, because i'm in the VM Ubuntu, and now i'm stopped at BOTS-LITE installation, it installed a new VM automaticlly, i do not know where can i select the option..... :(

Please advise. Thanks..


Sze Siong Teo <szesiong@...>
 

Unless you really have problem using vagrant to setup bosh-lite, then you can setup the bosh-lite VM is a slightly more manual way.

You can download this and create a VM manually then use it as your disk image:
https://atlas.hashicorp.com/cloudfoundry/boxes/bosh-lite/versions/9000.137.0/providers/virtualbox.box

In any case if you want to import into AWS or some other cloud, just rename virtualbox.box to virtualbox.tar.gz, unpack it and you will get VMDK file inside.

Regards,
Teo


DONG ZHOU
 

Thanks Sze Siong Teo,

I will test this.


DONG ZHOU
 

Thanks Stanislav,
this is a bad news. :(
I'm trying to use vSphere to do the installation.

Thanks again.