Can't create a packer build on Linux

170 views
Skip to first unread message

kav...@gmail.com

unread,
Aug 17, 2016, 6:16:21 PM8/17/16
to Packer
I'm running on Linux with a licensed copy of VMware workstation 12 for linux and get the following when I try to build:

    Build 'cats-fs' errored: Cloning is not supported with VMware WS version 9. Please use VMware WS version 10, or greater.

I ran the following clone command and it seemed to work:
    vmrun -T ws clone build/centos72/centos72.vmx build/test -cloneName test full

I set the options to debug packer, and I get debug output, but it doesn't show me what VMware commands it is running.

Thanks for any help

Rickard von Essen

unread,
Aug 18, 2016, 12:09:47 AM8/18/16
to packe...@googlegroups.com

Try running with: PACKER_LOG=1 packer build template.json

That will give you all the commands packer run. If that doesn't help. Gist the log and send a follow up here with a link.

/ Rickard


--
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/662fa272-8779-4465-bdfa-e54b5cad1f26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kav...@gmail.com

unread,
Aug 18, 2016, 10:46:29 AM8/18/16
to Packer
Thank you, Rickard


The build runs find under vmware fusion. I have run with debug. Even at debug level 10 I don't see what command is being run.


On Wednesday, August 17, 2016 at 11:09:47 PM UTC-5, Rickard von Essen wrote:

Try running with: PACKER_LOG=1 packer build template.json

That will give you all the commands packer run. If that doesn't help. Gist the log and send a follow up here with a link.

/ Rickard

On Aug 18, 2016 12:16 AM, <kav...@gmail.com> wrote:
I'm running on Linux with a licensed copy of VMware workstation 12 for linux and get the following when I try to build:

    Build 'cats-fs' errored: Cloning is not supported with VMware WS version 9. Please use VMware WS version 10, or greater.

I ran the following clone command and it seemed to work:
    vmrun -T ws clone build/centos72/centos72.vmx build/test -cloneName test full

I set the options to debug packer, and I get debug output, but it doesn't show me what VMware commands it is running.

Thanks for any help

--
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...@googlegroups.com.

Rickard von Essen

unread,
Aug 18, 2016, 11:08:55 AM8/18/16
to packe...@googlegroups.com
What's the output of:
/usr/lib/vmware/bin/vmware-vmx -v
?

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/2df575a9-a837-4749-abb7-5f9ffedc19f1%40googlegroups.com.

kav...@gmail.com

unread,
Aug 18, 2016, 11:47:56 AM8/18/16
to Packer
I got:

/usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

So it looks like I'm going on a dependency hunt for vmware. 

Thank you

kav...@gmail.com

unread,
Aug 18, 2016, 12:15:57 PM8/18/16
to Packer
I installed a couple of packages and got vmware to get further:
   yum install libXinerama
   yum install libXinerama-devel
  yum install libXcursor

Then, I failed until I added "headless": true to my template.json
Now the headless vmrun command is failing:

# /usr/bin/vmrun -T ws start build/vmx/cats-fs.vmx nogui
Error: The operation was canceled

kav...@gmail.com

unread,
Aug 18, 2016, 6:33:35 PM8/18/16
to Packer
I still can't build my vmx. The system is timing out while waiting for ssh. I've logged into the box and found that it never gets an ip address. 

I've installed more X11 packages, but not sure that I needed to.
You cannot connect to VNC using OSX's vnc viewer. It doesn't work with password-less connections. I installed realvnc's viewer and was able to connect.
 
I was missing a kernel module that vmware needs:
  yum install kernel-devel
  yum install gcc
  vmware-modconfig --console --install-all


  yum groupinstall "X Window System"
  yum groupinstall "Fonts"
  yum groupinstall "Gnome Desktop"

Seems strange I have to install more dependencies and build kernel modules after I install vmware in order to get it to run.

kav...@gmail.com

unread,
Aug 18, 2016, 6:35:17 PM8/18/16
to Packer
So far none of the problems have been packer related. They've all been vmware and vmware gives horrible logs.

Alvaro Miranda Aguilera

unread,
Aug 19, 2016, 5:15:54 AM8/19/16
to packe...@googlegroups.com
the vm gets ip now ??

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/14bea955-b819-4e03-b6bc-0474cae9bf12%40googlegroups.com.

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



--

kav...@gmail.com

unread,
Aug 19, 2016, 10:44:46 AM8/19/16
to Packer
Very strange thing. I had some entries in vmx_data:


        "ethernet0.present" : "TRUE",

        "ethernet0.startConnected" : "TRUE",

        "ethernet0.virtualdev" : "vmxnet3",

        "ethernet0.networkName" : "Network 1",


I had to reduce these to

        "ethernet0.virtualdev" : "vmxnet3",


and then my vm got an ip address. Everything is working now.
If I get some time, I'll do a clean build and post a summary of all the things I had to do to get vmware working correctly.



--
Reply all
Reply to author
Forward
0 new messages