VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMa

1,646 views
Skip to first unread message

Steven Langlois

unread,
Sep 12, 2016, 4:53:53 PM9/12/16
to Packer
Hi,

I am experimenting with packer and based on the previous post I thought I'd try the bento, https://github.com/chef/bento, Centos 7.2 json file just to see if I could get it to work however it is failing with an error. Virtual Box 5.1 is freshly installed.

I am trying it on a VMWare VM 4GB memory/32GB storage. The default json allocated a 40GB drive so I reduced that to 16GB and my VM has 22GB free.

Will this just not work, creating a VM within a VM? Or should it work. I ran packer in debug mode but it didn't help much and there is nothing in the Centos journalctl (var/log/messages) to indicate why Virtual Box is failing to start the VM.


[root@localhost bento-master]# /usr/bin/packer build -debug -only=virtualbox-iso centos-7.2-x86_64.json

Debug mode enabled. Builds will not be parallelized.

virtualbox-iso output will be in this color.


==> virtualbox-iso: Downloading or copying Guest additions

    virtualbox-iso: Downloading or copying: file:///usr/share/virtualbox/VBoxGuestAdditions.iso

==> virtualbox-iso: Pausing after run of step 'StepDownloadGuestAdditions'. Press enter to continue. 

==> virtualbox-iso: Downloading or copying ISO

    virtualbox-iso: Downloading or copying: http://mirrors.kernel.org/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso

==> virtualbox-iso: Pausing after run of step 'StepDownload'. Press enter to continue. 

==> virtualbox-iso: Pausing after run of step 'StepOutputDir'. Press enter to continue. 

==> virtualbox-iso: Pausing after run of step 'StepCreateFloppy'. Press enter to continue. 

==> virtualbox-iso: Starting HTTP server on port 8381

==> virtualbox-iso: Pausing after run of step 'StepHTTPServer'. Press enter to continue. 

==> virtualbox-iso: Pausing after run of step 'StepSuppressMessages'. Press enter to continue. 

==> virtualbox-iso: Creating virtual machine...

==> virtualbox-iso: Pausing after run of step 'stepCreateVM'. Press enter to continue. 

==> virtualbox-iso: Creating hard drive...

==> virtualbox-iso: Pausing after run of step 'stepCreateDisk'. Press enter to continue. 

==> virtualbox-iso: Pausing after run of step 'stepAttachISO'. Press enter to continue. 

==> virtualbox-iso: Pausing after run of step 'StepAttachGuestAdditions'. Press enter to continue. 

==> virtualbox-iso: Pausing after run of step 'StepConfigureVRDP'. Press enter to continue. 

==> virtualbox-iso: Pausing after run of step 'StepAttachFloppy'. Press enter to continue. 

==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 2857)

==> virtualbox-iso: Pausing after run of step 'StepForwardSSH'. Press enter to continue. 

==> virtualbox-iso: Executing custom VBoxManage commands...

    virtualbox-iso: Executing: modifyvm centos-7.2-x86_64 --memory 512

    virtualbox-iso: Executing: modifyvm centos-7.2-x86_64 --cpus 1

==> virtualbox-iso: Pausing after run of step 'StepVBoxManage'. Press enter to continue. 

==> virtualbox-iso: Starting the virtual machine...

==> virtualbox-iso: Error starting VM: VBoxManage error: VBoxManage: error: The virtual machine 'centos-7.2-x86_64' has terminated unexpectedly during startup because of signal 6

==> virtualbox-iso: VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine

Alvaro Miranda Aguilera

unread,
Sep 12, 2016, 5:20:54 PM9/12/16
to packe...@googlegroups.com
nested VM ?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6564c6ae-808b-4195-9bca-aa4f982d506e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Steven Langlois

unread,
Sep 12, 2016, 5:31:27 PM9/12/16
to Packer
Yes, a VM within a VM. It is suppose to be possible.

Alvaro Miranda Aguilera

unread,
Sep 12, 2016, 6:15:23 PM9/12/16
to packe...@googlegroups.com
in the theory yes.

Not sure if out of the box as is will work.

You can do 32 bit inside 64 bits easily, but 64 bits require some parameters that usually aren't enabled by default.

It works, and its doable, just need some parameters ie VT, etc.

Alvaro.

On Mon, Sep 12, 2016 at 11:31 PM, Steven Langlois <acad...@gmail.com> wrote:
Yes, a VM within a VM. It is suppose to be possible.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Rickard von Essen

unread,
Sep 13, 2016, 12:22:51 AM9/13/16
to packe...@googlegroups.com

You have to enable nested virtualization in VMware, see
https://communities.vmware.com/docs/DOC-8970


Reply all
Reply to author
Forward
0 new messages