Hi
I was trying out the libxl backend of xen 4.3 with libvirt, but I found it
very unstable and unusable.
I'm in xen 4.3 dom0 and starting:
1. xen stuff:
echo "Starting Xen..."
/etc/init.d/xencommons start
#/etc/init.d/xend start
. /etc/rc.d/rc.xen_bridge start
/etc/init.d/xendomains start
#libvirtd -l -d
hsflowd
2. Starting libvirt -v to see what is going on.
After that I'm using virsh to do some simple tasks:
virsh # list
Id Name State
----------------------------------------------------
Where is dom0?
virsh # create debian_pv.xml
error: Failed to create domain from debian_pv.xml
error: End of file while reading data: Input/output error
error: One or more references were leaked after disconnect from the
hypervisor
error: Failed to reconnect to the hypervisor
And log from libvirt:
2013-10-06 11:24:17.693+0000: 2162: debug :
remoteDispatchDomainCreateXMLHelper:3017 : server=0x7fe92c017760
client=0x7fe92c029970 msg=0x7fe92c029520 rerr=0x7fe92511bd50
args=0x7fe90c000af0 ret=0x7fe90c000930
2013-10-06 11:24:17.693+0000: 2162: debug : virDomainCreateXML:1996 :
conn=0x7fe904000a80, xmlDesc=<domain type='xen'>
<name>debian_pv</name>
<uuid>4590a985-69c1-4407-8517-da3da4673d9b</uuid>
<memory unit='KiB'>262144</memory>
<currentMemory unit='KiB'>262144</currentMemory>
<vcpu placement='static' cpuset='1'>1</vcpu>
<bootloader>pygrub</bootloader>
<os>
<type arch='x86_64' machine='xenpv'>linux</type>
</os>
<clock offset='utc' adjustment='reset'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<disk type='file' device='disk'>
<driver name='file'/>
<source file='/root/vms/debian_pv/debian_pv.img'/>
<target dev='sda' bus='xen'/>
</disk>
<interface type='bridge'>
<mac address='00:16:3e:59:78:01'/>
<source bridge='xenbr0'/>
</interface>
<console type='pty'>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' autoport='no' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
</devices>
</domain>
, flags=0
2013-10-06 11:24:17.693+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe92c012fb0
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c012fb0(name=stack)
driver=xenlight domain=0x7fe90c009130 perm=2
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c017360(name=none)
driver=xenlight domain=0x7fe90c009130 perm=2
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c012fb0(name=stack)
driver=xenlight domain=0x7fe90c009130 perm=4
2013-10-06 11:24:17.694+0000: 2162: debug :
virAccessManagerCheckDomain:231 : manager=0x7fe92c017360(name=none)
driver=xenlight domain=0x7fe90c009130 perm=4
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe92c012fb0
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectNew:199 : OBJECT_NEW:
obj=0x7fe90c002d10 classname=virDomainObj
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectNew:199 : OBJECT_NEW:
obj=0x7fe90c005b60 classname=libxlDomainObjPrivate
2013-10-06 11:24:17.694+0000: 2162: debug : virDomainObjNew:2063 :
obj=0x7fe90c002d10
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe914075300
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCleanupTimeouts:517 : Cleanup 2
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollCleanupHandles:565
: Cleanup 11
2013-10-06 11:24:17.694+0000: 2158: debug : virEventRunDefaultImpl:271 :
running default event implementation
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCleanupTimeouts:517 : Cleanup 2
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollCleanupHandles:565
: Cleanup 11
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=0 w=1, f=5 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=1 w=2, f=7 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=2 w=3, f=9 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=3 w=4, f=10 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=4 w=5, f=11 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=5 w=6, f=12 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=6 w=7, f=13 e=0 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=7 w=8, f=13 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=8 w=9, f=14 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=9 w=34, f=21 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollMakePollFDs:394 :
Prepare n=10 w=36, f=22 e=1 d=0
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:332 : Calculate expiry of 2 timers
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:340 : Got a timeout scheduled for
1381058662693
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:353 : Schedule timeout then=1381058662693
now=1381058657694
2013-10-06 11:24:17.694+0000: 2158: debug :
virEventPollCalculateTimeout:362 : Timeout at 1381058662693 due in 4999 ms
2013-10-06 11:24:17.694+0000: 2158: debug : virEventPollRunOnce:630 :
EVENT_POLL_RUN: nhandles=10 timeout=4999
2013-10-06 11:24:17.707+0000: 2162: debug : virFileClose:90 : Closed fd 28
2013-10-06 11:24:17.726+0000: 2162: error : libxlVmStart:627 : internal
error: libxenlight failed to create new domain 'debian_pv'
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe914075300
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectRef:293 : OBJECT_REF:
obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virObjectUnref:258 :
OBJECT_DISPOSE: obj=0x7fe90c002d10
2013-10-06 11:24:17.726+0000: 2162: debug : virDomainObjDispose:2029 :
obj=0x7fe90c002d10
2013-10-06 11:24:17.727+0000: 2162: debug : virObjectUnref:256 :
OBJECT_UNREF: obj=0x7fe90c005b60
2013-10-06 11:24:17.727+0000: 2162: debug : virObjectUnref:258 :
OBJECT_DISPOSE: obj=0x7fe90c005b60
====== end of log =====
Segmentation fault
Why crash?
Am I doing something wrong?
--
pozdr0
dienet
"Old C programmers never die. They're just cast into void."