hi,
i am trying to create hvm in xen via libvirt but i am facing some error. i
installed the packages like bltap-utils, blktap-dkms in my dom0.
virsh create tiny_core.xml
p11-kit: invalid config filename, will be ignored in the future:
/etc/pkcs11/modules/gnome-keyring-module
error: Failed to create domain from tiny_core.xml
error: internal error: libxenlight failed to create new domain 'tiny'
config.xml file:
<domain type='xen'>
<name>tiny</name>
<uuid>cc5b436b-a04b-4fc3-b145-e91df494fd26</uuid>
<memory unit='KiB'>262144</memory>
<currentMemory unit='KiB'>262144</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='xenfv'>hvm</type>
<loader>/usr/local/lib/xen/boot/hvmloader</loader>
<boot dev='hd'/>
</os>
<pae/>
<acpi/>
<apic/>
<clock offset='variable' adjustment='0'
basis='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/local/lib/xen/bin/qemu-dm</emulator>
<disk type='file' device='disk'>
<driver name='file'/>
<source file='/opt/tinyos/tiny_core_plus.img'/>
<target dev='hda'/>
</disk>
<interface type='bridge'>
<mac address='00:11:3e:64:2f:cf'/>
<source bridge='xenbr0'/>
<ip address='dhcp'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='usb'/>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
</devices>
</domain>
Error.log
libxl: debug: libxl_create.c:1342:do_domain_create: ao 0x7ff010003e00:
create: how=(nil) callback=(nil) poller=0x7ff01000cb70
libxl: debug: libxl_device.c:251:libxl__device_disk_set_backend: Disk
vdev=hda spec.backend=tap
libxl: debug: libxl_device.c:210:disk_try_backend: Disk vdev=hda, backend
tap unsuitable because blktap not available
libxl: error: libxl_device.c:289:libxl__device_disk_set_backend: no
suitable backend for disk hda
libxl: error: libxl_dm.c:1467:kill_device_model: unable to find device
model pid in /local/domain/1151/image/device-model-pid
libxl: error: libxl.c:1421:libxl__destroy_domid:
libxl__destroy_device_model failed for 1151
libxl: debug: libxl_event.c:1591:libxl__ao_complete: ao 0x7ff010003e00:
complete, rc=-3
libxl: debug: libxl_create.c:1356:do_domain_create: ao 0x7ff010003e00:
inprogress: poller=0x7ff01000cb70, flags=ic
libxl: debug: libxl_event.c:1563:libxl__ao__destroy: ao 0x7ff010003e00:
destroy
xc: debug: hypercall buffer: total allocations:19 total releases:19
xc: debug: hypercall buffer: current allocations:0 maximum allocations:2
xc: debug: hypercall buffer: cache current size:2
xc: debug: hypercall buffer: cache hits:15 misses:2 toobig:2
any suggestion to crate hvm in xen.
thanks & regards,
cooldharma06 ..:)