Hi,
Hi I am trying to install centos 7 on a vm using kickstart through Virtual Manager.The vm drops to a dracut emergency shell after 2-3 minutes giving logs on the console for the failure of the installation. It also produces a file /run/initramfs/rdsosreport.txt. I am unable to copy the file to my host machine using scp or cp command.
Error on the vm console :
Code:
Warning: failed to fetch kickstart from inst.ks=http://192.168.122.1/pub/dvd/vmkickstart-ks.cfg
failed to connect to 192.168.122.1:80; No route to host
Warning:Downloading 'http://192.168.122.1/pub/dvd//.treeinfo failed!
Warning: Cant's find installer mainimage path in .treeinfo
Failed: Connect to 192.168.122.1:80; No route to host
The dracut emergency shell gives the ip address of the vm as 192.168.122.23/24 . My host machine is running Apache server on the virbr0 interface with IP address 192.168.122.1.The CentOS image is in /var/www/html/pub/dvd/
I am able to ping the host machine from the dra shell of the vm.
Verified whether the Apache server is functional on the host by typing
http://192.168.122.1/pub/dvd/ on the browser. Things are fine and Apache web server is able to show the contents.
Used Virtual Manager to spawn a New VM.In the Virtual Manager wizard gave the URL as
http://192.168.122.1/pub/dvd/
and Kickstart URL as : inst.ks=http://192.168.122.1/pub/dvd/vmkickstart-ks.cfg
As the logs suggest it seems the virtual manager has picked the url path correctly.
used a kickstart file generated by successful installation of another vm. modified the directive url accordingly to initiate kickstart.
Can anybody suggest why the kickstart fetching is going wrong?
My Kickstart file:
Code:
#version=RHEL7
# System authorization information
auth --enableshadow --passalgo=sha512
# Use Network installation
url --url="http://192.168.122.1/pub/dvd/"
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=eth0 --onboot=off --ipv6=auto
network --hostname=vmkickstart.example.com
# Root password
rootpw --iscrypted $6$yO.qsFDtH0H1/oqf$7aHXiM4rpuhQNKv2.b5wqvRihYqqvLMmXfYt8gngpijxATOhpqWqmIcFEoxuQO.Vfy.D1GnTp62tnQ7iDqwZ00
# System timezone
timezone Asia/Kolkata --isUtc --nontp
# X Window System configuration information
xconfig --startxonboot
# System bootloader configuration
bootloader --location=mbr --boot-drive=vda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
%packages
...
...
%end