One more thing I figured out is 

/etc/sysconfig/network-scripts/ifcfg-eth0 is symlink of 

/etc/sysconfig/networking/devices/ifcfg-eth0

Would it cause any issue?

Thanks,
Siva
On Tuesday, October 18, 2016 at 11:51:57 AM UTC-7, Siva Abbannagari wrote:
>
> Hi Alvaro, 
>
> I started the VMX manually and checked the same the IP is on eth0 
> interface and it does not have the persistent rules file.(note that I have 
> changed the IP)
>
> [root@localhost ~]# ifconfig
>
> eth0      Link encap:Ethernet  HWaddr 00:0D:26:49:17:EC  
>
>           inet addr:1.1.1.1  Bcast:10.10.3.255  Mask:255.255.252.0
>
>           inet6 addr: fe80::20c:29ff:fe49:97dc/64 Scope:Link
>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>
>           RX packets:964 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:1000 
>
>           RX bytes:173576 (169.5 KiB)  TX bytes:14317 (13.9 KiB)
>
>
> lo        Link encap:Local Loopback  
>
>           inet addr:127.0.0.1  Mask:255.0.0.0
>
>           inet6 addr: ::1/128 Scope:Host
>
>           UP LOOPBACK RUNNING  MTU:65536  Metric:1
>
>           RX packets:54 errors:0 dropped:0 overruns:0 frame:0
>
>           TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
>
>           collisions:0 txqueuelen:0 
>
>           RX bytes:23888 (23.3 KiB)  TX bytes:23888 (23.3 KiB)
>
>
> [root@localhost ~]# ls -arlth /etc/udev/rules.d/
>
> total 20K
>
> -rw-r--r--. 1 root root  316 May 10 22:58 60-raw.rules
>
> -rw-r--r--. 1 root root  304 May 10 23:55 98-kexec.rules
>
> drwxr-xr-x. 2 root root 4.0K Jun 23 15:47 .
>
> drwxr-xr-x. 4 root root 4.0K Jun 23 19:39 ..
>
> -rw-r--r--  1 root root  341 Jun 23 19:47 99-vmware-scsi-udev.rules
>
> [root@localhost ~]# ls  /etc/sysconfig/network-scripts/ifcfg*
>
> /etc/sysconfig/network-scripts/ifcfg-eth0  
> /etc/sysconfig/network-scripts/ifcfg-lo
>
> [root@localhost ~]# 
>
> On Tuesday, October 18, 2016 at 1:05:03 AM UTC-7, Alvaro Miranda Aguilera 
> wrote:
>>
>> hello
>>
>> when you pack the box, do you make sure its possible to reuse a clone ?
>>
>> When you start manually this new VM and login, can you share the output 
>> of 
>>
>> ifconfig -a
>>
>> if you see the dhcp ip on the eth1 instead of eth0 that probably will 
>> show that you are not packing the box properly.
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth0
>> /etc/udev/rules.d/70-persitent-net.rule
>>
>> Those files usually prevent the clone to start properly
>>
>> Alvaro.
>>
>> On Tue, Oct 18, 2016 at 12:24 AM, Siva Abbannagari <siva.abb...@gmail.com
>> > wrote:
>>
>>> Sorry Centos6.8
>>>
>>>
>>> On Monday, October 17, 2016 at 3:23:58 PM UTC-7, Siva Abbannagari wrote:
>>>>
>>>> It is Centos 6.6,
>>>>
>>>> It is getting the IP , Actually I see the Ip on the VMWARE welcome 
>>>> screen and can connect to it as well.
>>>> Whether that ip is returned back to packer or no  I am not aware of it.
>>>>
>>>> This What I have done,  In VMWARE workstation I opened the Instances 
>>>> and went to console on the VMWARE login screen it has the IP ,I can login 
>>>> to that IP.
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> Siva
>>>>
>>>> On Monday, October 17, 2016 at 1:56:17 PM UTC-7, Alvaro Miranda 
>>>> Aguilera wrote:
>>>>>
>>>>> seems the VM is not starting the network, so packer can't ssh into.
>>>>>
>>>>> When you turn this VM on does get ip from dhcp and you can ssh to the 
>>>>> IP it gets?
>>>>>
>>>>> Whats the OS ?
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Oct 17, 2016 at 9:36 PM, Siva Abbannagari <
>>>>> siva.abb...@gmail.com> wrote:
>>>>>
>>>>>> Hi Alvaro,
>>>>>>
>>>>>> Please find logs below:
>>>>>> My Packer version is 0.10.1
>>>>>>
>>>>>> *Warnings for build 'vmware-vmx':*
>>>>>>
>>>>>>
>>>>>> ** A shutdown_command was not specified. Without a shutdown command, 
>>>>>> Packer*
>>>>>>
>>>>>> *will forcibly halt the virtual machine, which may result in data 
>>>>>> loss.*
>>>>>>
>>>>>>
>>>>>> *==> vmware-vmx: Pausing after run of step 'StepPrepareTools'. Press 
>>>>>> enter to continue.*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing after run of step 'StepOutputDir'. Press 
>>>>>> enter to continue.*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing after run of step 'StepCreateFloppy'. Press 
>>>>>> enter to continue.*
>>>>>>
>>>>>> *==> vmware-vmx: Cloning source VM...*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing after run of step 'StepCloneVMX'. Press 
>>>>>> enter to continue.* *==> vmware-vmx: Pausing after run of step 
>>>>>> 'StepConfigureVMX'. Press enter to continue.* *==> vmware-vmx: 
>>>>>> Pausing after run of step 'StepSuppressMessages'. Press enter to 
>>>>>> continue.* *==> 
>>>>>> vmware-vmx: Starting HTTP server on port 9001*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing after run of step 'StepHTTPServer'. Press 
>>>>>> enter to continue.* *==> vmware-vmx: Pausing after run of step 
>>>>>> 'StepConfigureVNC'. Press enter to continue.* *==> vmware-vmx: 
>>>>>> Starting virtual machine...*
>>>>>>
>>>>>>     vmware-vmx: The VM will be run headless, without a GUI. If you 
>>>>>> want to
>>>>>>
>>>>>>     vmware-vmx: view the screen of the VM, connect via VNC without a 
>>>>>> password to
>>>>>>
>>>>>>     vmware-vmx: 127.0.0.1:5928
>>>>>>
>>>>>> *==> vmware-vmx: Waiting 10s for boot...*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing after run of step 'StepRun'. Press enter to 
>>>>>> continue.* *==> vmware-vmx: Connecting to VM via VNC*
>>>>>>
>>>>>> *==> vmware-vmx: Typing the boot command over VNC...*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing after run of step 'StepTypeBootCommand'. 
>>>>>> Press enter to continue.* *==> vmware-vmx: Waiting for SSH to become 
>>>>>> available...*
>>>>>>
>>>>>> *==> vmware-vmx: Timeout waiting for SSH.*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing before cleanup of step 
>>>>>> 'StepTypeBootCommand'. Press enter to continue.* *==> vmware-vmx: 
>>>>>> Pausing before cleanup of step 'StepRun'. Press enter to continue.* *==> 
>>>>>> vmware-vmx: Stopping virtual machine...*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing before cleanup of step 'StepConfigureVNC'. 
>>>>>> Press enter to continue.* *==> vmware-vmx: Pausing before cleanup of 
>>>>>> step 'StepHTTPServer'. Press enter to continue.* *==> vmware-vmx: 
>>>>>> Pausing before cleanup of step 'StepSuppressMessages'. Press enter to 
>>>>>> continue.* *==> vmware-vmx: Pausing before cleanup of step 
>>>>>> 'StepConfigureVMX'. Press enter to continue.* *==> vmware-vmx: 
>>>>>> Pausing before cleanup of step 'StepCloneVMX'. Press enter to continue.* 
>>>>>> *==> 
>>>>>> vmware-vmx: Pausing before cleanup of step 'StepCreateFloppy'. Press 
>>>>>> enter 
>>>>>> to continue.* *==> vmware-vmx: Pausing before cleanup of step 
>>>>>> 'StepOutputDir'. Press enter to continue.* *==> vmware-vmx: Deleting 
>>>>>> output directory...*
>>>>>>
>>>>>> *==> vmware-vmx: Pausing before cleanup of step 'StepPrepareTools'. 
>>>>>> Press enter to continue.* *Build 'vmware-vmx' errored: Timeout 
>>>>>> waiting for SSH.*
>>>>>>
>>>>>>
>>>>>> ==> Some builds didn't complete successfully and had errors:
>>>>>>
>>>>>> --> vmware-vmx: Timeout waiting for SSH.
>>>>>>
>>>>>>
>>>>>> ==> Builds finished but no artifacts were created.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Friday, October 14, 2016 at 12:37:44 AM UTC-7, Alvaro Miranda 
>>>>>> Aguilera wrote:
>>>>>>>
>>>>>>> hello
>>>>>>>
>>>>>>> assuming there is a vmx file here: /tmp/abc.vmx
>>>>>>>
>>>>>>> when you run packer build
>>>>>>>
>>>>>>> what happens?
>>>>>>> What should be happening and is not happening?
>>>>>>>
>>>>>>> PACKER_LOG=1 packer build <templatename> 
>>>>>>>
>>>>>>> that should provide more information.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Alvaro.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Oct 13, 2016 at 11:55 PM, Siva Abbannagari <
>>>>>>> siva.abb...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi Thanks for reply below is my build.json file
>>>>>>>>
>>>>>>>> {
>>>>>>>>
>>>>>>>> "builders": [
>>>>>>>>
>>>>>>>> {
>>>>>>>>
>>>>>>>>   "type": "vmware-vmx",
>>>>>>>>
>>>>>>>>   "source_path": "/tmp/abc.vmx",
>>>>>>>>
>>>>>>>>   "vm_name": "abc-test-vm",
>>>>>>>>
>>>>>>>>   "ssh_username": "root",
>>>>>>>>
>>>>>>>>   "ssh_password": "ProspectHills",
>>>>>>>>
>>>>>>>>   "http_directory" : "preseeds",
>>>>>>>>
>>>>>>>>   "http_port_min" : 9001,
>>>>>>>>
>>>>>>>>   "http_port_max" : 9001,
>>>>>>>>
>>>>>>>>   "ssh_wait_timeout": "1000s",
>>>>>>>>
>>>>>>>>   "headless": true
>>>>>>>>
>>>>>>>> }
>>>>>>>>
>>>>>>>> ]
>>>>>>>>
>>>>>>>> }
>>>>>>>>
>>>>>>>> On Tuesday, October 11, 2016 at 3:59:41 AM UTC-7, Alvaro Miranda 
>>>>>>>> Aguilera wrote:
>>>>>>>>>
>>>>>>>>> hello
>>>>>>>>>
>>>>>>>>> not enough information i am afraid.
>>>>>>>>>
>>>>>>>>> Can you share a copy of your files in a github repo for review?
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> Alvaro.
>>>>>>>>>
>>>>>>>>> On Mon, Oct 10, 2016 at 8:22 PM, Siva Abbannagari <
>>>>>>>>> siva.abb...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> I am trying to build an vmware appliance with packer.
>>>>>>>>>>
>>>>>>>>>> I have a base vmx file  which i am just trying to connect to the 
>>>>>>>>>> machine with SSH after launching with packer, but its failing to ssh 
>>>>>>>>>> though 
>>>>>>>>>> I manually can do ssh to that box, But packer is not able to.
>>>>>>>>>>
>>>>>>>>>> any inputs?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> *Build 'vmware-vmx' errored: Timeout waiting for SSH*
>>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>>>> 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.
>>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>>> https://groups.google.com/d/msgid/packer-tool/4cf38050-1c9e-4996-8ba1-8cca319617d8%40googlegroups.com
>>>>>>>>>>  
>>>>>>>>>> <https://groups.google.com/d/msgid/packer-tool/4cf38050-1c9e-4996-8ba1-8cca319617d8%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>> .
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>>> Alvaro
>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>> 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.
>>>>>>>> To view this discussion on the web visit 
>>>>>>>> https://groups.google.com/d/msgid/packer-tool/7a083a53-49ed-4dba-a66c-1e1f2a81d9e6%40googlegroups.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/packer-tool/7a083a53-49ed-4dba-a66c-1e1f2a81d9e6%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -- 
>>>>>>> Alvaro
>>>>>>>
>>>>>>> -- 
>>>>>> 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.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/packer-tool/26d53d03-75ce-43c3-a8c3-21977c489d2d%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/packer-tool/26d53d03-75ce-43c3-a8c3-21977c489d2d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Alvaro
>>>>>
>>>>> -- 
>>> 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.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/packer-tool/bd0a988d-07fa-4df9-b4e6-e0df1b513cda%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/packer-tool/bd0a988d-07fa-4df9-b4e6-e0df1b513cda%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Alvaro
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/bf1d9fe1-b2af-4534-863b-12b80a63586c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to