Hello

The 2nd screenshot still shows the wrong ip on the network

Have you tried with a diferent packer template with a different json file?

My suggestion will be try a different project and see if works
or try a different machine

Alvaro.

On Fri, Jan 18, 2019 at 6:22 AM Dhatchinamoorthy M <[email protected]>
wrote:

> Hi,
>
> Still same issue no luck. I have changed host ip in json file and removed
> loop back 10.0.2.2 getting same issue.
>
> please find the screen shot. Build and Qemu logs
> [image: image.png]
>
>
> On Fri, Jan 18, 2019 at 12:39 AM Alvaro Miranda Aguilera <
> [email protected]> wrote:
>
>> it seeem your host is having a ip that is confusing packer
>>
>> you seems to have 10.2.x ip on lo interface
>>
>> replace the .HTTPIP with 192.168.4.61 on the boot command a try again
>>
>>
>>    "boot_command": [
>>         "<tab> text ks=http://192.168.4.61:{{ .HTTPPort
>> }}/centos7-ks.cfg<enter><wait>"
>>       ]
>>
>>
>> Alvaro
>>
>> On Thu, Jan 17, 2019 at 11:57 AM Dhatchinamoorthy M <
>> [email protected]> wrote:
>>
>>> Hi ,
>>>
>>> Im running packer machine(vm)  in ESXi Host and its has ip address
>>> 192.168.4.61 and im tying to create centos image using attached file json
>>> and kickstart file. the problem is when i run the packer build command qemu
>>> emulator coming up and kvm vm is launching but its unable to fetch the
>>> kickstart file from
>>> 10.0.2.2/ks.cfg file. due to this build failing.
>>>
>>> Error screen shot:
>>> .
>>> [image: image.png]
>>>
>>> My machine network
>>> [image: image.png]
>>>
>>> Jason file:
>>> {
>>>   "builders":
>>>   [
>>>     {
>>>       "type": "qemu",
>>>       "iso_url": "
>>> http://mirror.dhakacom.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso
>>> ",
>>>       "iso_checksum":
>>> "6d44331cc4f6c506c7bbe9feb8468fad6c51a88ca1393ca6b8b486ea04bec3c1",
>>>       "iso_checksum_type": "SHA256",
>>>       "output_directory": "/root/lab-dev/output",
>>>       "shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
>>>       "disk_size": 50,
>>>       "format": "qcow2",
>>>       "accelerator": "kvm",
>>>       "http_directory": "/root/lab-dev/http",
>>>       "ssh_username": "root",
>>>       "ssh_password": "root123",
>>>       "ssh_timeout": "20m",
>>>       "vm_name": "Dhatch-centos",
>>>       "net_device": "virtio-net",
>>>       "disk_interface": "virtio",
>>>       "boot_wait": "10s",
>>>       "boot_command": [
>>>         "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort
>>> }}/centos7-ks.cfg<enter><wait>"
>>>       ]
>>>     }
>>>   ]
>>> }
>>>
>>> ----------------------------
>>> Ks.cfg file
>>> # Run the installer
>>> install
>>> # Use CDROM installation media
>>> cdrom
>>> # System language
>>> lang en_US.UTF-8
>>> # Keyboard layouts
>>> keyboard us
>>> # Enable more hardware support
>>> unsupported_hardware
>>> # System authorization information
>>> auth --enableshadow --passalgo=sha512
>>>
>>> # Use network installation
>>> # Run the Setup Agent on first boot
>>> firstboot --enable
>>> ignoredisk --only-use=sda
>>> # Keyboard layouts
>>> keyboard --vckeymap=us --xlayouts='us'
>>> # System language
>>> lang en_US.UTF-8
>>>
>>> # Network information
>>> network  --bootproto=dhcp --device=eth0 --ipv6=auto --activate
>>> network  --hostname=testing
>>> # Root password
>>> rootpw root123
>>> # System timezone
>>> timezone America/New_York --isUtc
>>> # System bootloader configuration
>>> bootloader --location=mbr --boot-drive=sda
>>> autopart --type=lvm
>>> # Partition clearing information
>>> clearpart --all --initlabel --drives=sda
>>> autopart
>>>
>>> %packages
>>> @base
>>> @compat-libraries
>>> @core
>>> @development
>>> @virtualization-hypervisor
>>> @virtualization-platform
>>> @virtualization-tools
>>>
>>> %end
>>>
>>>
>>> On Wed, Jan 16, 2019 at 8:53 PM Alvaro Miranda Aguilera <
>>> [email protected]> wrote:
>>>
>>>> hello
>>>>
>>>> is very unluckely you are hitting 100% the same issue
>>>>
>>>> so will be better if you send a new email share information on what you
>>>> want to do, what you have done, what work what doesnt and where you need
>>>> help.
>>>>
>>>> without any code or explanation, is very hard to know what need to be
>>>> updated.
>>>>
>>>> Alvaro.
>>>>
>>>> On Wed, Jan 16, 2019 at 7:42 AM Dhatchinamoorthy M <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am also facing same issue my vm is running in ESXi host and if i
>>>>> create vm using KVM able to create it but using packer ssh time out issue
>>>>> im getting. Cloud please tell me and network settings i need to change in
>>>>> host machine. my kickstart file serving using 10.0.2.2 this ip address.
>>>>>
>>>>> On Fri, Jan 11, 2019 at 12:31 AM Alvaro Miranda Aguilera <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> hello
>>>>>>
>>>>>> without packer, if you do a VM manually with this kickstart, does the
>>>>>> kickstart work?
>>>>>>
>>>>>> can you ssh to the vm after the reboot?
>>>>>>
>>>>>> alvaro
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jan 10, 2019 at 3:22 PM Tim Bodhini <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> So, after some time and other tasks I finally managed to attach my
>>>>>>> GUI to the VNC ... The only thing I can report is:
>>>>>>> It starts the anaconda installer and returns messages like:
>>>>>>> - Running pre-installation scripts
>>>>>>> - Not asking for VNC because of an automated install
>>>>>>> - Not asking for VNC because text mode explicitly asked for in
>>>>>>> kickstart
>>>>>>> - Starting automated install ...
>>>>>>> after that it just repeats the dots and is timing out. I've now
>>>>>>> increased the timeout and will wait until I get some proper error ....
>>>>>>>
>>>>>>> And by the way: this is another try to post my ks ->
>>>>>>>
>>>>>>> #version=DEVEL
>>>>>>> # System authorization information
>>>>>>> auth --enableshadow --passalgo=sha512
>>>>>>> # Install OS instead of upgrade
>>>>>>> install
>>>>>>> # Use network installation
>>>>>>> url --url="http://pulp.mydomain.com/pulp/repos/stable/centos/7/base/
>>>>>>> "
>>>>>>> repo --name="CentOS" --baseurl=
>>>>>>> http://pulp.mydomain.com/pulp/repos/stable/centos/7/base/
>>>>>>> repo --name="CentOS-Updates" --baseurl=
>>>>>>> http://pulp.mydomain.com/pulp/repos/stable/centos/7/updates/
>>>>>>> # Use text mode install
>>>>>>> text
>>>>>>> # Firewall configuration
>>>>>>> firewall --disabled
>>>>>>> firstboot --disable
>>>>>>> ignoredisk --only-use=vda
>>>>>>> # Keyboard layouts
>>>>>>> # old format: keyboard us
>>>>>>> # new format:
>>>>>>> keyboard --vckeymap=us --xlayouts=''
>>>>>>> # System language
>>>>>>> lang en_US.UTF-8
>>>>>>>
>>>>>>> # Network information
>>>>>>> network  --bootproto=dhcp --device=eth0 --ipv6=auto --activate
>>>>>>> network  --hostname=localhost.localdomain
>>>>>>> # Reboot after installation
>>>>>>> reboot
>>>>>>> # Root password
>>>>>>> rootpw SomePass
>>>>>>> # SELinux configuration
>>>>>>> selinux --disabled
>>>>>>> # System services
>>>>>>> services --enabled="network,sshd/postfix,chronyd"
>>>>>>> # Do not configure the X Window System
>>>>>>> skipx
>>>>>>> # System timezone
>>>>>>> timezone Etc/UTC
>>>>>>> # System bootloader configuration
>>>>>>> bootloader --append="nomodeset crashkernel=auto" --location=mbr
>>>>>>> --driveorder="vda" --boot-drive=vda
>>>>>>> # Clear the Master Boot Record
>>>>>>> zerombr
>>>>>>> # Partition clearing information
>>>>>>> clearpart --all --initlabel
>>>>>>> # Disk partitioning information
>>>>>>> part /boot --fstype="ext2" --ondisk=vda --size=512
>>>>>>> --fsoptions="relatime,nodev"
>>>>>>> part / --fstype="xfs" --ondisk=vda --size=9487
>>>>>>>
>>>>>>> %pre
>>>>>>> bootdrive=vda
>>>>>>>
>>>>>>> if [ -f "/dev/$bootdrive" ] ; then
>>>>>>>   exec < /dev/tty3 > /dev/tty3
>>>>>>>   chvt 3
>>>>>>>   echo "ERROR: Drive device does not exist at /dev/$bootdrive!"
>>>>>>>   sleep 5
>>>>>>>   halt -f
>>>>>>> fi
>>>>>>>
>>>>>>> cat >/tmp/kspre.cfg <<CFG
>>>>>>> zerombr
>>>>>>> bootloader --location=mbr --driveorder=$bootdrive
>>>>>>> --append="nomodeset"
>>>>>>> clearpart --all --initlabel
>>>>>>> part /boot --ondrive=$bootdrive --fstype ext2
>>>>>>> --fsoptions="relatime,nodev" --size=512
>>>>>>> part / --ondrive=$bootdrive --fstype xfs --size 1 --grow
>>>>>>> CFG
>>>>>>>
>>>>>>> %end
>>>>>>>
>>>>>>> %packages
>>>>>>> acpid
>>>>>>> at
>>>>>>> chrony
>>>>>>> cronie-noanacron
>>>>>>> crontabs
>>>>>>> kexec-tools
>>>>>>> logrotate
>>>>>>> mailx
>>>>>>> mlocate
>>>>>>> net-tools
>>>>>>> openssh-clients
>>>>>>> openssh-server
>>>>>>> postfix
>>>>>>> rsync
>>>>>>> tmpwatch
>>>>>>> vixie-cron
>>>>>>> wget
>>>>>>> which
>>>>>>> yum
>>>>>>> yum-cron
>>>>>>> yum-utils
>>>>>>> -aic94xx-firmware
>>>>>>> -atmel-firmware
>>>>>>> -bfa-firmware
>>>>>>> -biosdevname
>>>>>>> -ipw2100-firmware
>>>>>>> -ipw2200-firmware
>>>>>>> -ivtv-firmware
>>>>>>> -iwl100-firmware
>>>>>>> -iwl1000-firmware
>>>>>>> -iwl3945-firmware
>>>>>>> -iwl4965-firmware
>>>>>>> -iwl5000-firmware
>>>>>>> -iwl5150-firmware
>>>>>>> -iwl6000-firmware
>>>>>>> -iwl6000g2a-firmware
>>>>>>> -iwl6050-firmware
>>>>>>> -kernel-firmware
>>>>>>> -libertas-usb8388-firmware
>>>>>>> -prelink
>>>>>>> -ql2100-firmware
>>>>>>> -ql2200-firmware
>>>>>>> -ql23xx-firmware
>>>>>>> -ql2400-firmware
>>>>>>> -ql2500-firmware
>>>>>>> -rt61pci-firmware
>>>>>>> -rt73usb-firmware
>>>>>>> -sendmail
>>>>>>> -xorg-x11-drv-ati-firmware
>>>>>>> -zd1211-firmware
>>>>>>>
>>>>>>> %end
>>>>>>>
>>>>>>> %addon com_redhat_kdump --enable --reserve-mb='auto'
>>>>>>>
>>>>>>> %end
>>>>>>>
>>>>>>> On Monday, 7 January 2019 14:39:57 UTC+1, Rickard von Essen wrote:
>>>>>>>>
>>>>>>>> You can install "vncsnapshot" on the machine running Packer and
>>>>>>>> capture some images and transfer back. Most likely you kickstart 
>>>>>>>> doesn't
>>>>>>>> complete correctly, the installed OS doesn't startup correctly etc. Or 
>>>>>>>> your
>>>>>>>> SSH credentials are incorrect.
>>>>>>>>
>>>>>>>> It can also be an idea to run the build locally first to get it
>>>>>>>> working properly, since debugging locally is much simpler.
>>>>>>>>
>>>>>>>> And by the way you can tunnel VNC over SSH.
>>>>>>>>
>>>>>>>> On Mon, Jan 7, 2019 at 2:17 PM Tim Bücher <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> So, I'm actually working behind a firewall and am not able to
>>>>>>>>> connect to the vnc. Is there any other way how to debug this?
>>>>>>>>>
>>>>>>>>> Another little thing: I just posted my centos7-ks.cfg here and the
>>>>>>>>> message was deleted just a few minutes ago. why though?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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 [email protected].
>>>>>>>>> To view this discussion on the web visit
>>>>>>>>> https://groups.google.com/d/msgid/packer-tool/6cf53037-f0d7-4b07-b2fe-b236ca46fd7a%40googlegroups.com
>>>>>>>>> <https://groups.google.com/d/msgid/packer-tool/6cf53037-f0d7-4b07-b2fe-b236ca46fd7a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>> .
>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>> --
>>>>>>> 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 [email protected].
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/packer-tool/27ed6196-1878-4d8f-9fdd-d88ec750d0f8%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/packer-tool/27ed6196-1878-4d8f-9fdd-d88ec750d0f8%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 [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/packer-tool/CAHqq0ez36tzrETY-VQm50dTrPENUAc5m2wTjAecP92vMaDRVXA%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ez36tzrETY-VQm50dTrPENUAc5m2wTjAecP92vMaDRVXA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> --
>>>>> 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 [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/packer-tool/CAJfgnVHJESUACjhxsLpR9qicmqD-X9_aik-xfK7nPvNNYzVxNw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/packer-tool/CAJfgnVHJESUACjhxsLpR9qicmqD-X9_aik-xfK7nPvNNYzVxNw%40mail.gmail.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 [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/packer-tool/CAHqq0ewM3T%3DWAJT%2B%3DrYVzCnW3J0qp0-KqnQSLENqdt2-bP5d1g%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ewM3T%3DWAJT%2B%3DrYVzCnW3J0qp0-KqnQSLENqdt2-bP5d1g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/packer-tool/CAJfgnVG%3DNaza%3DLPA-9ip%2B5FUy4zVep11e3qpBjY%2BHikjvdpvCw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/packer-tool/CAJfgnVG%3DNaza%3DLPA-9ip%2B5FUy4zVep11e3qpBjY%2BHikjvdpvCw%40mail.gmail.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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/packer-tool/CAHqq0ezV3b%2BZd%2BYJce2nppPOpgTnCFD_%3Dk4txXObO8Ku-swnWQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ezV3b%2BZd%2BYJce2nppPOpgTnCFD_%3Dk4txXObO8Ku-swnWQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/CAJfgnVHzb23qDnDzxvxFnc6nApN1htkOhwwsHTjeACQJmxpVMQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/packer-tool/CAJfgnVHzb23qDnDzxvxFnc6nApN1htkOhwwsHTjeACQJmxpVMQ%40mail.gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ewaehpRxH-12Zg0DJvQ5L6s60gt503MsEEZDjBYdbRdGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to