[libvirt-users] Kickstart file doesn't work

Sarath P R sarath.amrita at gmail.com
Sat Jan 21 10:39:49 UTC 2012


I am starting an instance passing xml configuration like this. Contents
inside my kickstart file is this *apt-get install vim --assume-yes* . But I
think kickstart is not considered while booting instance though I am able
to start instance. Please help. Thanks in advance

"<domain type='xen'>"
               + "  <name>testVM-server</name>"
               +"   <description></description>"
               +"   <memory>524288</memory>"
               +"   <currentMemory>524288</currentMemory>"
               +"   <vcpu>1</vcpu>"
               + "  <os>"
            *   + "    <type>hvm</type**>"
               + "    <kernel>/home/x**entest/Desktop/**vmlinuz</kernel**>"
               + "    <initrd>/home/x**entest/Desktop/**initrd</initrd>**"
               + "    <loader>/usr/li**b/xen-4.1/boot/**hvmloader</load**
er>"
               + "    <boot dev='hd'/>"
               + "    <cmdline>ks=http://10.30.6.3/testVM-server.cfg
</cmdline>"
               + "  </os>"*
               + "  <on_poweroff>destroy</on_poweroff>"
               + "  <on_reboot>destroy</on_reboot>"
               + "  <on_crash>destroy</on_crash>"
               + "  <devices>"
               + "    <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>"
               + "    <disk type='file' device='disk'>"
               + "      <driver name='tap' type='aio'/>"
               + "      <source
file='/home/xentest/Desktop/ubuntu-server.img'/>"
               + "      <target dev='xvda'/>"
               + "    </disk>"
               + "    <interface type='bridge'>"
               + "      <source bridge='br0'/>"
               + "      <script path='/etc/xen/scripts/vif-bridge'/>"
               + "    </interface>"
               + "    <serial type='pty'>"
               + "      <target port='0'/>"
               + "    </serial>"
               + "    <console type='pty'>"
               + "      <target type='serial' port='0'/>"
               + "    </console>"
               + "    <input type='mouse' bus='ps2'/>"
               + "    <graphics type='vnc' port='5900' autoport='yes'
keymap='en-us'/>"
               + "    <sound model='es1370'/>"
               + "  </devices>"
               + "</domain>";

-- 
Thank You
Sarath P R | cell +91.999.502.4287
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120121/4a1a4db3/attachment.htm>


More information about the libvirt-users mailing list