Packer VMware guest options

268 views
Skip to first unread message

James Elmes

unread,
Jul 31, 2017, 3:35:56 AM7/31/17
to Packer
Hi i want to be able to add a USB controlled as part of the build process, usually you do this in vSphere..

i couldn't find much on this but I was hoping some one had figured out how to add a USB controller as part of the build process.. this helps with mouse control when booting up the VM for the first time from console.

any response appreciated

James

Alvaro Miranda Aguilera

unread,
Jul 31, 2017, 3:57:35 AM7/31/17
to packe...@googlegroups.com
Hello,

Check the VMX file before/after you do the change so you can see the lines you need to add.

Then using 
  • vmx_data_post (object of key/value strings) - Identical to vmx_data, except that it is run after the virtual machine is shutdown, and before the virtual machine is exported.

You can add those extra VMX values.

Virusvrij. www.avast.com

Rickard von Essen

unread,
Jul 31, 2017, 4:51:15 AM7/31/17
to packe...@googlegroups.com
And see this PR for some hints on how to configure USB. 

--
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/CAHqq0eztGooCQw9RDc21azk7Lx%2BOKESQoBQPozJvfEWE39mMfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

James Elmes

unread,
Aug 1, 2017, 7:03:34 PM8/1/17
to Packer
thanks again guys.

I don't really want to use the VMX builder in a separate template.. i am trying to do everything in my current vmware-iso template

Also i am building on a remote ESX host and i don't think vmware-vmx builder can do this??

I can live without the USB for now but really struggling to use the VMXNET3 adapter on boot as it requires specific drivers or VMtools installed during windows setup (unattend - before the machine has an IP address.) 

"Floppy" section to upload the whole VMtools executable and run it from there.. that might work






Rickard von Essen

unread,
Aug 2, 2017, 2:28:10 AM8/2/17
to packe...@googlegroups.com
You don't need vmware-vmx for this, see https://www.packer.io/docs/builders/vmware-iso.html#vmx_data

--
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.

James Elmes

unread,
Aug 2, 2017, 9:56:38 AM8/2/17
to Packer
i swear that wasn't there last week..

ill give that a go.. hopefully it works with remote esx5 build enabled

thanks team


On Wednesday, 2 August 2017 16:28:10 UTC+10, Rickard von Essen wrote:
You don't need vmware-vmx for this, see https://www.packer.io/docs/builders/vmware-iso.html#vmx_data
On Aug 2, 2017 01:03, "James Elmes" <jamesro...@gmail.com> wrote:
thanks again guys.

I don't really want to use the VMX builder in a separate template.. i am trying to do everything in my current vmware-iso template

Also i am building on a remote ESX host and i don't think vmware-vmx builder can do this??

I can live without the USB for now but really struggling to use the VMXNET3 adapter on boot as it requires specific drivers or VMtools installed during windows setup (unattend - before the machine has an IP address.) 

"Floppy" section to upload the whole VMtools executable and run it from there.. that might work






--
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.

James Elmes

unread,
Aug 7, 2017, 10:17:25 PM8/7/17
to Packer
this works a treat by the way.. thank you
Reply all
Reply to author
Forward
0 new messages