I need to transfer the kickstart file to xml to create 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 it correct? I followed the steps described in this tutorial. But I get the following error:
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1029, to create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirt.libvirtError: unable to stat:
/boot/vmlinuz-3.10.0-327.el7.x86_64: There is no such file or directory
source
share