vmware-iso with VMware Player on linux - no display issue

1,177 views
Skip to first unread message

Ryan B.

unread,
Oct 22, 2014, 2:42:42 PM10/22/14
to packe...@googlegroups.com
Hi All,

I have VMware Player installed with the VIX Bundle as well as qemu-img on Centos 6.4.  When I attemp a build from a template that works on my mac with vmware fusion I get the following on the linux box (headless) ...

==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Starting HTTP server on port 8587
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Error starting VM: VMware error: Error: Cannot launch the UI because no display server is present in the current environment
==> vmware-iso: Waiting 4.184298786s to give VMware time to clean up...
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: Error starting VM: VMware error: Error: Cannot launch the UI because no display server is present in the current environment

==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Error starting VM: VMware error: Error: Cannot launch the UI because no display server is present in the current environment

==> Builds finished but no artifacts were created.

Is there a way to launch the VM without UI?  I know vmrun has a nogui option.  Not sure if that's what's needed.  If it is how can i pass that in thru packer?

Thanks.

-r

Alvaro Miranda Aguilera

unread,
Oct 22, 2014, 4:42:38 PM10/22/14
to packe...@googlegroups.com
Headless
 
 
  • headless (boolean) - Packer defaults to building VMware virtual machines by launching a GUI that shows the console of the machine being built. When this value is set to true, the machine will start without a console. For VMware machines, Packer will output VNC connection information in case you need to connect to the console to debug the build process.

put a parameter headless true in the json template and that should do the trick.
 
Alvaro

--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan B.

unread,
Oct 22, 2014, 7:54:31 PM10/22/14
to packe...@googlegroups.com
found it.. 

Add
"headless": true,

to the vmware-iso builder

-r

Ryan B.

unread,
Oct 22, 2014, 7:55:19 PM10/22/14
to packe...@googlegroups.com
thanks!
Reply all
Reply to author
Forward
0 new messages