Transfer kickstart file to virtual manager xml file

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

+1
source share
1 answer

, , , , . , <initrd> option - initrd. , ​​+ initrd OS /boot . ​​+ initrd . Fedora ,

http://dl.fedoraproject.org/pub/fedora/linux/releases/25/Server/x86_64/os/images/pxeboot/

/var/lib/libvirt/images/ XML .

+1

Source: https://habr.com/ru/post/1694200/


All Articles