I need to pass kickstart file to xml for creating a virtual device using virt-install.
<os>
<type arch="x86_64" machine="pc-i440fx-xenial">hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<kernal>/boot/vmlinuz-3.10.0-327.el7.x86_64</kernal>
<initrd>/boot/initrd.img-4.4.0-59-generic</initrd>
<cmdline>ks=http://ipaddr/try.cfg ip=ip netmask=255.255.255.0</cmdline>
<bootmenu enable="yes" />
</os>
Is this the right way? I followed the steps given in this tutorial. But I get the following error:
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1029, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirt.libvirtError: unable to stat:
/boot/vmlinuz-3.10.0-327.el7.x86_64: No such file or directory