libp2p / testlab

A testlab built with Nomad and Consul to analyze the behavior of p2p networks at scale
Other
22 stars 8 forks source link

Set guest_os_type to "Ubuntu_64" for VirtualBox packer build #12

Closed jimpick closed 5 years ago

jimpick commented 5 years ago

When building on OS X, the VirtualBox build would get stuck with the message:

“This kernel requires an x86-64 CPU, but only detected an i686 CPU.”

Screenshot 2019-06-03 15 18 48

In the Packer docs for virtualbox-iso, it says:

https://www.packer.io/docs/builders/virtualbox-iso.html#guest_os_type

guest_os_type (string) - The guest OS type being installed. By default this is other, but you can get dramatic performance improvements by setting this to the proper value. To view all available values for this run VBoxManage list ostypes. Setting the correct value hints to VirtualBox how to optimize the virtual hardware to work best with that operating system.

Setting this value to Ubuntu_64 fixes the build problem.

lanzafame commented 5 years ago

@jimpick I also had this problem but tried to solve it by passing the --os-type flag directly to VBoxManage which didn't help. Glad someone read the documentation correctly :)