Packer build fails on VBoxManage error: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)

henryfbp's Avatar

henryfbp

16 Mar, 2019 02:10 AM

The image for AppVeyor is Ubuntu1804.

Repo is at https://github.com/HenryFBP/2019-team-07f-mirror (Note: The odd name is because the main repository is private.)

The build fails because VT-x is not enabled on the machine I'm running packer build ... on.

Is there an image that has VT-x enabled or any other way around this short of using Docker to build images?

Thanks!

==> virtualbox-iso: Starting HTTP server on port 8319
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2342)
==> virtualbox-iso: Executing custom VBoxManage commands...
    virtualbox-iso: Executing: modifyvm packer-ubuntu-16.04.6-amd64_mysql --memory 4096
    virtualbox-iso: Executing: modifyvm packer-ubuntu-16.04.6-amd64_mysql --cpus 4
==> virtualbox-iso: Starting the virtual machine...
    virtualbox-iso: The VM will be run headless, without a GUI. If you want to
    virtualbox-iso: view the screen of the VM, connect via VRDP without a password to
    virtualbox-iso: rdp://127.0.0.1:5916
==> virtualbox-iso: Error starting VM: VBoxManage error: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
==> virtualbox-iso: VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error starting VM: VBoxManage error: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error starting VM: VBoxManage error: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
==> Builds finished but no artifacts were created.
Command exited with code 1
Build failed
  1. 1 Posted by henryfbp on 16 Mar, 2019 06:15 AM

    henryfbp's Avatar

    Update: Windows box returns the SAME error!

    
        virtualbox-iso: Transferred: http://releases.ubuntu.com/16.04/ubuntu-16.04.6-server-amd64.iso
    ==> virtualbox-iso: Starting HTTP server on port 8662
    ==> virtualbox-iso: Creating virtual machine...
    ==> virtualbox-iso: Creating hard drive...
    ==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2720)
    ==> virtualbox-iso: Executing custom VBoxManage commands...
        virtualbox-iso: Executing: modifyvm packer-ubuntu-16.04.6-amd64_mysql --memory 4096
        virtualbox-iso: Executing: modifyvm packer-ubuntu-16.04.6-amd64_mysql --cpus 4
    ==> virtualbox-iso: Starting the virtual machine...
        virtualbox-iso: The VM will be run headless, without a GUI. If you want to
        virtualbox-iso: view the screen of the VM, connect via VRDP without a password to
        virtualbox-iso: rdp://127.0.0.1:5953
    ==> virtualbox-iso: Error starting VM: VBoxManage error: VBoxManage.exe: error: The native API dll was not found (C:\windows\system32\WinHvPlatform.dll) (VERR_NEM_NOT_AVAILABLE).
    ==> virtualbox-iso: VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
    ==> virtualbox-iso: VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
    ==> virtualbox-iso: Deregistering and deleting VM...
    ==> virtualbox-iso: Deleting output directory...
    Build 'virtualbox-iso' errored: Error starting VM: VBoxManage error: VBoxManage.exe: error: The native API dll was not found (C:\windows\system32\WinHvPlatform.dll) (VERR_NEM_NOT_AVAILABLE).
    VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
    VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Mar, 2019 01:15 PM
20 Mar, 2019 11:09 AM
20 Mar, 2019 10:37 AM
20 Mar, 2019 09:01 AM
20 Mar, 2019 08:51 AM

 

20 Mar, 2019 02:33 AM
19 Mar, 2019 06:21 PM
19 Mar, 2019 06:03 PM
19 Mar, 2019 05:22 PM
19 Mar, 2019 05:08 PM
19 Mar, 2019 05:00 PM