kickstart of VM failing

I'm trying to kickstart a VM using virt-install but it is failing as outlined below; IP and loopback showing different failure reasons.  Any feedback would be appreciated.

Using IP:

virt-install -n centos7.0-template -r 2048 --vcpus=1 --network bridge=virbr0 --os-variant=rhel7 --disk path=/opt/kickstart/images/centos7.0-template.qcow2,format=qcow2,size=25 -l http://10.169.107.0/CENTOS7.0-x86_64-ES -x "ks=http://10.169.107.0/client_files/openstack/image-templates/centos7.0-template.cfg text console=tty0 utf8 console=ttyS0,115200"
.........
.........
dracut-initqueue[575]: RTNETLINK answers: File exists
dracut-initqueue[575]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dracut-initqueue[575]: Dload  Upload   Total   Spent    Left  Speed
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: 10.169.107.0; Unknown error
dracut-initqueue[575]: Warning: failed to fetch kickstart from http://10.1i69.107.0/client_files/openstack/image-templates/centos7.0-template.cfg
dracut-initqueue[575]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dracut-initqueue[575]: Dload  Upload   Total   Spent    Left  Speed
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to 10.169.107.0:80; No route to host
dracut-initqueue[575]: Warning: Downloading 'http://10.169.107.0/CENTOS7.0-x86_64-ES/.treeinfo' failed!
dracut-initqueue[575]: Warning: can't find installer mainimage path in .treeinfo
dracut-initqueue[575]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dracut-initqueue[575]: Dload  Upload   Total   Spent    Left  Speed
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to 10.169.107.0:80; No route to host
dracut-initqueue[575]: Warning: Downloading 'http://10.169.107.0/CENTOS7.0-x86_64-ES/LiveOS/squashfs.img' failed!

curl http://10.169.107.0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /</title>
 </head>
 <body>
<h1>Index of /</h1>
  <table>
   <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="CENTOS7.0-x86_64-ES/">CENTOS7.0-x86_64-ES/</a>   </td><td align="right">2015-05-15 15:37  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="OL7.1/">OL7.1/</a>                 </td><td align="right">2015-05-14 17:29  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="client_files/">client_files/</a>          </td><td align="right">2015-05-15 16:36  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="images/">images/</a>                </td><td align="right">2015-05-15 15:51  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="iso/">iso/</a>                   </td><td align="right">2015-05-15 08:49  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="mnt/">mnt/</a>                   </td><td align="right">2015-05-14 16:32  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="scripts/">scripts/</a>               </td><td align="right">2015-05-15 08:38  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="tmp/">tmp/</a>                   </td><td align="right">2015-05-14 16:32  </td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>

Using 127.0.0.1:

virt-install -n centos7.0-template -r 2048 --vcpus=1 --network bridge=virbr0 --os-variant=rhel7 --disk path=/opt/kickstart/images/centos7.0-template.qcow2,format=qcow2,size=25 -l http://127.0.0.1/CENTOS7.0-x86_64-ES -x "ks=http://127.0.0.1/client_files/openstack/image-templates/centos7.0-template.cfg text console=tty0 utf8 console=ttyS0,115200"
.........
.........
dracut-initqueue[575]: RTNETLINK answers: File exists
dracut-initqueue[575]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dracut-initqueue[575]: Dload  Upload   Total   Spent    Left  Speed
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to 127.0.0.1:80; Connection refused
dracut-initqueue[575]: Warning: failed to fetch kickstart from http://127.0.0.1/client_files/openstack/image-templates/centos7.0-template.cfg
dracut-initqueue[575]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dracut-initqueue[575]: Dload  Upload   Total   Spent    Left  Speed
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to 127.0.0.1:80; Connection refused
dracut-initqueue[575]: Warning: Downloading 'http://127.0.0.1/CENTOS7.0-x86_64-ES/.treeinfo' failed!
dracut-initqueue[575]: Warning: can't find installer mainimage path in .treeinfo
dracut-initqueue[575]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
dracut-initqueue[575]: Dload  Upload   Total   Spent    Left  Speed
dracut-initqueue[575]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to 127.0.0.1:80; Connection refused
dracut-initqueue[575]: Warning: Downloading 'http://127.0.0.1/CENTOS7.0-x86_64-ES/LiveOS/squashfs.img' failed!

curl http://127.0.0.1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /</title>
 </head>
 <body>
<h1>Index of /</h1>
  <table>
   <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="CENTOS7.0-x86_64-ES/">CENTOS7.0-x86_64-ES/</a>   </td><td align="right">2015-05-15 15:37  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="OL7.1/">OL7.1/</a>                 </td><td align="right">2015-05-14 17:29  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="client_files/">client_files/</a>          </td><td align="right">2015-05-15 16:36  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="images/">images/</a>                </td><td align="right">2015-05-15 15:51  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="iso/">iso/</a>                   </td><td align="right">2015-05-15 08:49  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="mnt/">mnt/</a>                   </td><td align="right">2015-05-14 16:32  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="scripts/">scripts/</a>               </td><td align="right">2015-05-15 08:38  </td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="tmp/">tmp/</a>                   </td><td align="right">2015-05-14 16:32  </td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>


Running services:
systemctl status httpd xinetd tftp
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: active (running) since Fri 2015-05-15 15:59:36 IST; 1h 18min ago
 Main PID: 1468 (httpd)
   Status: "Total requests: 215; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─1468 /usr/sbin/httpd -DFOREGROUND
           ├─2560 /usr/sbin/httpd -DFOREGROUND
           ├─2561 /usr/sbin/httpd -DFOREGROUND
           ├─2562 /usr/sbin/httpd -DFOREGROUND
           ├─2563 /usr/sbin/httpd -DFOREGROUND
           ├─2564 /usr/sbin/httpd -DFOREGROUND
           └─3023 /usr/sbin/httpd -DFOREGROUND

May 15 15:59:35 mick-workstation httpd[1468]: AH00557: httpd: apr_sockaddr_info_get() failed for mick-workstation
May 15 15:59:35 mick-workstation httpd[1468]: AH00558: httpd: Could not reliably determine the server's fully qualified do...essage
May 15 15:59:36 mick-workstation systemd[1]: Started The Apache HTTP Server.

xinetd.service - Xinetd A Powerful Replacement For Inetd
   Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled)
   Active: active (running) since Fri 2015-05-15 15:59:29 IST; 1h 18min ago
 Main PID: 1386 (xinetd)
   CGroup: /system.slice/xinetd.service
           └─1386 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid

May 15 15:59:29 mick-workstation xinetd[1386]: removing daytime
May 15 15:59:29 mick-workstation xinetd[1386]: removing discard
May 15 15:59:29 mick-workstation xinetd[1386]: removing discard
May 15 15:59:29 mick-workstation xinetd[1386]: removing echo
May 15 15:59:29 mick-workstation xinetd[1386]: removing echo
May 15 15:59:29 mick-workstation xinetd[1386]: removing tcpmux
May 15 15:59:29 mick-workstation xinetd[1386]: removing time
May 15 15:59:29 mick-workstation xinetd[1386]: removing time
May 15 15:59:29 mick-workstation xinetd[1386]: xinetd Version 2.3.15 started with libwrap loadavg labeled-networking optio...ed in.
May 15 15:59:29 mick-workstation xinetd[1386]: Started working: 1 available service

tftp.service - Tftp Server
   Loaded: loaded (/usr/lib/systemd/system/tftp.service; static)
   Active: active (running) since Fri 2015-05-15 17:16:41 IST; 1min 39s ago
 Main PID: 4291 (in.tftpd)
   CGroup: /system.slice/tftp.service
           └─4291 /usr/sbin/in.tftpd -s /var/lib/tftpboot

May 15 17:16:41 mick-workstation systemd[1]: Starting Tftp Server...
May 15 17:16:41 mick-workstation systemd[1]: Started Tftp Server.
Hint: Some lines were ellipsized, use -l to show in full.
micktAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
IMO not a valid IP or domain name:

dracut-initqueue[575]: Warning: failed to fetch kickstart from http://10.1i69.107.0/client_files/openstack/image-templates/centos7.0-template.cfg
0
micktAuthor Commented:
The example given above had a typo in the IP address, 10.1i69.107.0 but this was irrelevant to the issue.

I had actually resolved this issue some time ago and forgot about it.  It is iptables related.  I deleted the rules that prohibit.

    if [[ `iptables-save | grep icmp-host-prohibited` ]]
      then
        echo " Editing iptables ...."
        iptables -D INPUT -j REJECT --reject-with icmp-host-prohibited
        iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited
        service iptables save > /dev/null 2>&1

    fi

Note: This resolved for me but it may not suit every instance as you might not be able to remove these rules.


I altered the command slightly to include network detail, i.e. DHCP in my case:
virt-install -n centos7.0-template -r 2048 --vcpus=1 --network bridge=virbr0 --os-variant=rhel7 --disk path=/opt/kickstart/images/centos7.0-template.qcow2,format=qcow2,size=25 -l http://<MY_IP>/CENTOS7.0-x86_64-ES -x "ks=http://<MY_IP>/client_files/openstack/image-templates/centos7.0-template.cfg ksdevice=eth0 ip=dhcp text console=tty0 utf8 console=ttyS0,115200"


centos7.0-template.cfg:
#Do not install X system
skipx

#System  language
lang en_IE.UTF-8

#System keyboard
keyboard uk

#Sytem timezone
timezone --utc Europe/Dublin

#Root password
rootpw --iscrypted $6$0WIFBHWb$VmmUVkdG.1Fw9/FrMHPOm0IikLhURPKYOesDPwen/SrM7DSShsniTwIkqAgTQsO7IshClwi0hyxQKk1lUGv.//

#Reboot after installation
reboot

#Install OS instead of upgrade
install

#Use NFS installation Media
url --url=http://<MY_IP>/CENTOS7.0-x86_64-ES


#System bootloader configuration
bootloader --location mbr --append "rhgb quiet"

#Clear the Master Boot Record
zerombr

#Partition clearing information
clearpart --all --initlabel
#Partioning information
part /boot      --fstype ext2   --size=200
part swap                       --size=2000
part pv.01      --fstype ext4   --size=1 --grow
#LVM information
volgroup sysvg pv.01
logvol /        --vgname=sysvg --size=1  --grow --name=lv_root


#Firewall configuration
firewall --disabled

#SELinux configuration
selinux --permissive

#Package install information
%packages
@base
@core
@network-file-system-client
@virtualization-hypervisor
@virtualization-platform
@virtualization-tools
-biosdevname
%end

%post
#!/bin/sh

%end
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
micktAuthor Commented:
It resolved issue.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.