All of lore.kernel.org
 help / color / mirror / Atom feed
* xend does not start
@ 2010-10-27 19:57 David Cemin
  2010-10-28 13:17 ` David Cemin
  0 siblings, 1 reply; 9+ messages in thread
From: David Cemin @ 2010-10-27 19:57 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 3932 bytes --]

Hello,

I've downloaded the xen 4.0.1 version as it is explained here:
http://wiki.xensource.com/xenwiki/Xen4.0

<http://wiki.xensource.com/xenwiki/Xen4.0>So, I've made a clone from
repository, with the following command:

hg clone -r RELEASE-4.0.1 http://xenbits.xen.org/xen-4.0-testing.hg

And finally I've built xen, tools and stubdom.


I was looking for a paravirtualized domain, and so I follow the instructions
from here:
http://wiki.xensource.com/xenwiki/XenParavirtOps


<http://wiki.xensource.com/xenwiki/XenParavirtOps>So, I am able to boot dom0
successfully, but apparently xend its not starting.

A few things that I have noticed:

1) lsmod does not list evtchn and neither gntdev, and they are not compiled
as a Module. I have tried also to insert them with lsmod, and of course, I
dont have them.
2) The nodes appear in both /proc/misc and /dev/xen, and the numbers are
correct

% cat /proc/misc
 52 freefall
224 tpm0
 53 network_throughput
 54 network_latency
 55 cpu_dma_latency
 56 device-mapper
  1 psaux
200 tun
 57 pktcdvd
228 hpet
 58 blktap-control
 59 xen/gntdev
 60 xen/evtchn
229 fuse
 61 ecryptfs
231 snapshot
227 mcelog
 62 rfkill
 63 vga_arbiter
% ll /dev/xen
total 0
crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev

3) I am really running dom)
% cat /proc/xen/capabilities
control_d

4) /var/log/xen shows the following errors:

xend.log

[2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon started
[2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset: Wed Aug 25
09:22:42 2010 +0100 21324:b536ebfba183.
[2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception starting xend
((13, 'Permission denied'))
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line
339, in run
    servers = SrvServer.create()
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line
251, in create
    root.putChild('xend', SrvRoot())
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line
40, in __init__
    self.get(name)
  File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in get
    val = val.getobj()
  File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
getobj
    self.obj = klassobj()
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line
30, in __init__
    self.xn = XendNode.instance()
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752, in
instance
    inst = XendNode()
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87, in
__init__
    self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741, in
xeninfo_dict
    return dict(self.xeninfo())
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685, in
xeninfo
    info['xen_scheduler'] = self.xenschedinfo()
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675, in
xenschedinfo
    sched_id = self.xc.sched_id_get()
Error: (13, 'Permission denied')


xend-debug.log

Xend started at Wed Oct 27 17:32:31 2010.
domctl operation failed -- need to rebuild the user-space tool set?
sysctl operation failed -- need to rebuild the user-space tool set?
Exception starting xend: (13, 'Permission denied')
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line 230,
in run
    for domid, cputimes in self._get_cpu_stats().items():
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line 208,
in _get_cpu_stats
    for domain in self.xc.domain_getinfo():
Error: (13, 'Permission denied')



Does anyone have any Idea of how can I start xend correctly ?

Thank you!

--
David Cemin

[-- Attachment #1.2: Type: text/html, Size: 6541 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xend does not start
  2010-10-27 19:57 xend does not start David Cemin
@ 2010-10-28 13:17 ` David Cemin
  2010-10-28 13:22   ` Keir Fraser
  0 siblings, 1 reply; 9+ messages in thread
From: David Cemin @ 2010-10-28 13:17 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 7101 bytes --]

I tried another approach.

Since I assume that my problem is with modules loading, I've compiled the
kernel with xen-evtchn and xen-gntdev as modules. Now, I can load them with
modprobe. They do appear loaded in lsmod

% lsmod | grep xen
xen_gntdev              7486  0
xen_evtchn              4617  1

It seems that xend is running, as we can see in a ps:

% ps ax | grep xen
   24 ?        S      0:00 [xenwatch]
   25 ?        S      0:00 [xenbus]
  851 ?        S      0:00 avahi-daemon: running [xenserver-laptop.local]
 2101 ?        S      0:00 xenstored --pid-file /var/run/xenstore.pid
 2105 ?        SLl    0:00 xenconsoled
 2109 ?        S      0:00 /usr/bin/python /usr/sbin/xend start
 2110 ?        Sl     0:00 /usr/bin/python /usr/sbin/xend start
 2254 pts/0    S+     0:00 grep --color xen


But /var/log/xend.log shows that I have an exception during xend start:

[2010-10-28 11:10:52 2110] INFO (SrvDaemon:331) Xend Daemon started
[2010-10-28 11:10:52 2110] INFO (SrvDaemon:335) Xend changeset: Wed Aug 25
09:22:42 2010 +0100 21324:b536ebfba183.
[2010-10-28 11:10:52 2110] ERROR (SrvDaemon:347) Exception starting xend
((13, 'Permission denied'))
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line
339, in run
    servers = SrvServer.create()
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line
251, in create
    root.putChild('xend', SrvRoot())
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line
40, in __init__
    self.get(name)
  File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in get
    val = val.getobj()
  File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
getobj
    self.obj = klassobj()
  File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line
30, in __init__
    self.xn = XendNode.instance()
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752, in
instance
    inst = XendNode()
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87, in
__init__
    self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741, in
xeninfo_dict
    return dict(self.xeninfo())
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685, in
xeninfo
    info['xen_scheduler'] = self.xenschedinfo()
  File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675, in
xenschedinfo
    sched_id = self.xc.sched_id_get()
Error: (13, 'Permission denied')

And I cant call any xm bin, as for example:

% xm list
Error: Unable to connect to xend: No such file or directory. Is xend
running?
(1) %


So, I'm kind of stuck here. Any Ideas?

Thank you all,

--
David



2010/10/27 David Cemin <davidcemin@gmail.com>

> Hello,
>
> I've downloaded the xen 4.0.1 version as it is explained here:
> http://wiki.xensource.com/xenwiki/Xen4.0
>
> <http://wiki.xensource.com/xenwiki/Xen4.0>So, I've made a clone from
> repository, with the following command:
>
> hg clone -r RELEASE-4.0.1 http://xenbits.xen.org/xen-4.0-testing.hg
>
> And finally I've built xen, tools and stubdom.
>
>
> I was looking for a paravirtualized domain, and so I follow the
> instructions from here:
> http://wiki.xensource.com/xenwiki/XenParavirtOps
>
>
> <http://wiki.xensource.com/xenwiki/XenParavirtOps>So, I am able to boot
> dom0 successfully, but apparently xend its not starting.
>
> A few things that I have noticed:
>
> 1) lsmod does not list evtchn and neither gntdev, and they are not compiled
> as a Module. I have tried also to insert them with lsmod, and of course, I
> dont have them.
> 2) The nodes appear in both /proc/misc and /dev/xen, and the numbers are
> correct
>
> % cat /proc/misc
>  52 freefall
> 224 tpm0
>  53 network_throughput
>  54 network_latency
>  55 cpu_dma_latency
>  56 device-mapper
>   1 psaux
> 200 tun
>  57 pktcdvd
> 228 hpet
>  58 blktap-control
>  59 xen/gntdev
>  60 xen/evtchn
> 229 fuse
>  61 ecryptfs
> 231 snapshot
> 227 mcelog
>  62 rfkill
>  63 vga_arbiter
> % ll /dev/xen
> total 0
> crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
> crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev
>
> 3) I am really running dom)
> % cat /proc/xen/capabilities
> control_d
>
> 4) /var/log/xen shows the following errors:
>
> xend.log
>
> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon started
> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset: Wed Aug 25
> 09:22:42 2010 +0100 21324:b536ebfba183.
> [2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception starting xend
> ((13, 'Permission denied'))
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> line 339, in run
>     servers = SrvServer.create()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> line 251, in create
>     root.putChild('xend', SrvRoot())
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line
> 40, in __init__
>     self.get(name)
>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in
> get
>     val = val.getobj()
>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
> getobj
>     self.obj = klassobj()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line
> 30, in __init__
>     self.xn = XendNode.instance()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752,
> in instance
>     inst = XendNode()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87, in
> __init__
>     self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741,
> in xeninfo_dict
>     return dict(self.xeninfo())
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685,
> in xeninfo
>     info['xen_scheduler'] = self.xenschedinfo()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675,
> in xenschedinfo
>     sched_id = self.xc.sched_id_get()
> Error: (13, 'Permission denied')
>
>
> xend-debug.log
>
> Xend started at Wed Oct 27 17:32:31 2010.
> domctl operation failed -- need to rebuild the user-space tool set?
> sysctl operation failed -- need to rebuild the user-space tool set?
> Exception starting xend: (13, 'Permission denied')
> Exception in thread Thread-2:
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
>     self.run()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line
> 230, in run
>     for domid, cputimes in self._get_cpu_stats().items():
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line
> 208, in _get_cpu_stats
>     for domain in self.xc.domain_getinfo():
> Error: (13, 'Permission denied')
>
>
>
> Does anyone have any Idea of how can I start xend correctly ?
>
> Thank you!
>
> --
> David Cemin
>
>


-- 
David Cemin
mobile: +55 51 93523097
home:   +55 51 32763785
email: davidcemin@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 10649 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: xend does not start
  2010-10-28 13:17 ` David Cemin
@ 2010-10-28 13:22   ` Keir Fraser
  2010-10-28 13:46     ` David Cemin
  0 siblings, 1 reply; 9+ messages in thread
From: Keir Fraser @ 2010-10-28 13:22 UTC (permalink / raw)
  To: David Cemin, xen-devel

Do you have /proc/xen/privcmd? You might need to configure that into your
dom0 kernel build or something.

 -- Keir

On 28/10/2010 14:17, "David Cemin" <davidcemin@gmail.com> wrote:

> I tried another approach. 
> 
> Since I assume that my problem is with modules loading, I've compiled the
> kernel with xen-evtchn and xen-gntdev as modules. Now, I can load them with
> modprobe. They do appear loaded in lsmod
> 
> % lsmod | grep xen              
> xen_gntdev              7486  0 
> xen_evtchn              4617  1 
> 
> It seems that xend is running, as we can see in a ps:
> 
> % ps ax | grep xen 
>    24 ?        S      0:00 [xenwatch]
>    25 ?        S      0:00 [xenbus]
>   851 ?        S      0:00 avahi-daemon: running [xenserver-laptop.local]
>  2101 ?        S      0:00 xenstored --pid-file /var/run/xenstore.pid
>  2105 ?        SLl    0:00 xenconsoled 
>  2109 ?        S      0:00 /usr/bin/python /usr/sbin/xend start
>  2110 ?        Sl     0:00 /usr/bin/python /usr/sbin/xend start
>  2254 pts/0    S+     0:00 grep --color xen
> 
> 
> But /var/log/xend.log shows that I have an exception during xend start:
> 
> [2010-10-28 11:10:52 2110] INFO (SrvDaemon:331) Xend Daemon started
> [2010-10-28 11:10:52 2110] INFO (SrvDaemon:335) Xend changeset: Wed Aug 25
> 09:22:42 2010 +0100 21324:b536ebfba183.
> [2010-10-28 11:10:52 2110] ERROR (SrvDaemon:347) Exception starting xend ((13,
> 'Permission denied'))
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line
> 339, in run
>     servers = SrvServer.create()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line
> 251, in create
>     root.putChild('xend', SrvRoot())
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line 40,
> in __init__
>     self.get(name)
>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in get
>     val = val.getobj()
>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
> getobj
>     self.obj = klassobj()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line 30,
> in __init__
>     self.xn = XendNode.instance()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752, in
> instance
>     inst = XendNode()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87, in
> __init__
>     self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741, in
> xeninfo_dict
>     return dict(self.xeninfo())
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685, in
> xeninfo
>     info['xen_scheduler'] = self.xenschedinfo()
>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675, in
> xenschedinfo
>     sched_id = self.xc.sched_id_get()
> Error: (13, 'Permission denied')
> 
> And I cant call any xm bin, as for example:
> 
> % xm list
> Error: Unable to connect to xend: No such file or directory. Is xend running?
> (1) % 
> 
> 
> So, I'm kind of stuck here. Any Ideas? 
> 
> Thank you all, 
> 
> --
> David
> 
> 
> 
> 2010/10/27 David Cemin <davidcemin@gmail.com>
>> Hello, 
>> 
>> I've downloaded the xen 4.0.1 version as it is explained here:
>> http://wiki.xensource.com/xenwiki/Xen4.0
>> 
>>  <http://wiki.xensource.com/xenwiki/Xen4.0> So, I've made a clone from
>> repository, with the following command:
>> 
>> hg clone -r RELEASE-4.0.1 http://xenbits.xen.org/xen-4.0-testing.hg
>> And finally I've built xen, tools and stubdom.
>> 
>> 
>> I was looking for a paravirtualized domain, and so I follow the instructions
>> from here:
>> http://wiki.xensource.com/xenwiki/XenParavirtOps
>> 
>> 
>>  <http://wiki.xensource.com/xenwiki/XenParavirtOps> So, I am able to boot
>> dom0 successfully, but apparently xend its not starting.
>> 
>> A few things that I have noticed: 
>> 
>> 1) lsmod does not list evtchn and neither gntdev, and they are not compiled
>> as a Module. I have tried also to insert them with lsmod, and of course, I
>> dont have them.
>> 2) The nodes appear in both /proc/misc and /dev/xen, and the numbers are
>> correct
>> 
>> % cat /proc/misc 
>>  52 freefall
>> 224 tpm0
>>  53 network_throughput
>>  54 network_latency
>>  55 cpu_dma_latency
>>  56 device-mapper
>>   1 psaux
>> 200 tun
>>  57 pktcdvd
>> 228 hpet
>>  58 blktap-control
>>  59 xen/gntdev
>>  60 xen/evtchn
>> 229 fuse
>>  61 ecryptfs
>> 231 snapshot
>> 227 mcelog
>>  62 rfkill
>>  63 vga_arbiter
>> % ll /dev/xen 
>> total 0
>> crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
>> crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev
>> 
>> 3) I am really running dom)
>> % cat /proc/xen/capabilities   
>> control_d
>> 
>> 4) /var/log/xen shows the following errors:
>> 
>> xend.log
>> 
>> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon started
>> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset: Wed Aug 25
>> 09:22:42 2010 +0100 21324:b536ebfba183.
>> [2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception starting xend
>> ((13, 'Permission denied'))
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line
>> 339, in run
>>     servers = SrvServer.create()
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line
>> 251, in create
>>     root.putChild('xend', SrvRoot())
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line
>> 40, in __init__
>>     self.get(name)
>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in get
>>     val = val.getobj()
>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
>> getobj
>>     self.obj = klassobj()
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line
>> 30, in __init__
>>     self.xn = XendNode.instance()
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752, in
>> instance
>>     inst = XendNode()
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87, in
>> __init__
>>     self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741, in
>> xeninfo_dict
>>     return dict(self.xeninfo())
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685, in
>> xeninfo
>>     info['xen_scheduler'] = self.xenschedinfo()
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675, in
>> xenschedinfo
>>     sched_id = self.xc.sched_id_get()
>> Error: (13, 'Permission denied')
>> 
>> 
>> xend-debug.log
>> 
>> Xend started at Wed Oct 27 17:32:31 2010.
>> domctl operation failed -- need to rebuild the user-space tool set?
>> sysctl operation failed -- need to rebuild the user-space tool set?
>> Exception starting xend: (13, 'Permission denied')
>> Exception in thread Thread-2:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
>>     self.run()
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line 230,
>> in run
>>     for domid, cputimes in self._get_cpu_stats().items():
>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line 208,
>> in _get_cpu_stats
>>     for domain in self.xc.domain_getinfo():
>> Error: (13, 'Permission denied')
>> 
>> 
>> 
>> Does anyone have any Idea of how can I start xend correctly ?
>> 
>> Thank you!
>> 
>> --
>> David Cemin
>> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: xend does not start
  2010-10-28 13:22   ` Keir Fraser
@ 2010-10-28 13:46     ` David Cemin
  2010-10-28 14:14       ` Pasi Kärkkäinen
  2010-10-28 14:40       ` Keir Fraser
  0 siblings, 2 replies; 9+ messages in thread
From: David Cemin @ 2010-10-28 13:46 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 8597 bytes --]

Yes, I do have /proc/xen/privcmd. I suspect that something is missing in my
config. I'm not sure if I understand what you said. What do you mean by
configure privcmd into dom0 kernel?

% ll /proc/xen
total 0
-r--r--r-- 1 root root 0 2010-10-28 11:08 capabilities
-rw------- 1 root root 0 2010-10-28 11:08 privcmd
-rw------- 1 root root 0 2010-10-28 11:08 xenbus
-rw------- 1 root root 0 2010-10-28 11:08 xsd_kva
-rw------- 1 root root 0 2010-10-28 11:08 xsd_port

Thank you!

--
David


2010/10/28 Keir Fraser <keir@xen.org>

> Do you have /proc/xen/privcmd? You might need to configure that into your
> dom0 kernel build or something.
>
>  -- Keir
>
> On 28/10/2010 14:17, "David Cemin" <davidcemin@gmail.com> wrote:
>
> > I tried another approach.
> >
> > Since I assume that my problem is with modules loading, I've compiled the
> > kernel with xen-evtchn and xen-gntdev as modules. Now, I can load them
> with
> > modprobe. They do appear loaded in lsmod
> >
> > % lsmod | grep xen
> > xen_gntdev              7486  0
> > xen_evtchn              4617  1
> >
> > It seems that xend is running, as we can see in a ps:
> >
> > % ps ax | grep xen
> >    24 ?        S      0:00 [xenwatch]
> >    25 ?        S      0:00 [xenbus]
> >   851 ?        S      0:00 avahi-daemon: running [xenserver-laptop.local]
> >  2101 ?        S      0:00 xenstored --pid-file /var/run/xenstore.pid
> >  2105 ?        SLl    0:00 xenconsoled
> >  2109 ?        S      0:00 /usr/bin/python /usr/sbin/xend start
> >  2110 ?        Sl     0:00 /usr/bin/python /usr/sbin/xend start
> >  2254 pts/0    S+     0:00 grep --color xen
> >
> >
> > But /var/log/xend.log shows that I have an exception during xend start:
> >
> > [2010-10-28 11:10:52 2110] INFO (SrvDaemon:331) Xend Daemon started
> > [2010-10-28 11:10:52 2110] INFO (SrvDaemon:335) Xend changeset: Wed Aug
> 25
> > 09:22:42 2010 +0100 21324:b536ebfba183.
> > [2010-10-28 11:10:52 2110] ERROR (SrvDaemon:347) Exception starting xend
> ((13,
> > 'Permission denied'))
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> line
> > 339, in run
> >     servers = SrvServer.create()
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> line
> > 251, in create
> >     root.putChild('xend', SrvRoot())
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
> line 40,
> > in __init__
> >     self.get(name)
> >   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in
> get
> >     val = val.getobj()
> >   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
> > getobj
> >     self.obj = klassobj()
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
> line 30,
> > in __init__
> >     self.xn = XendNode.instance()
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752,
> in
> > instance
> >     inst = XendNode()
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87,
> in
> > __init__
> >     self.other_config["xen_pagesize"] =
> self.xeninfo_dict()["xen_pagesize"]
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741,
> in
> > xeninfo_dict
> >     return dict(self.xeninfo())
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685,
> in
> > xeninfo
> >     info['xen_scheduler'] = self.xenschedinfo()
> >   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675,
> in
> > xenschedinfo
> >     sched_id = self.xc.sched_id_get()
> > Error: (13, 'Permission denied')
> >
> > And I cant call any xm bin, as for example:
> >
> > % xm list
> > Error: Unable to connect to xend: No such file or directory. Is xend
> running?
> > (1) %
> >
> >
> > So, I'm kind of stuck here. Any Ideas?
> >
> > Thank you all,
> >
> > --
> > David
> >
> >
> >
> > 2010/10/27 David Cemin <davidcemin@gmail.com>
> >> Hello,
> >>
> >> I've downloaded the xen 4.0.1 version as it is explained here:
> >> http://wiki.xensource.com/xenwiki/Xen4.0
> >>
> >>  <http://wiki.xensource.com/xenwiki/Xen4.0> So, I've made a clone from
> >> repository, with the following command:
> >>
> >> hg clone -r RELEASE-4.0.1 http://xenbits.xen.org/xen-4.0-testing.hg
> >> And finally I've built xen, tools and stubdom.
> >>
> >>
> >> I was looking for a paravirtualized domain, and so I follow the
> instructions
> >> from here:
> >> http://wiki.xensource.com/xenwiki/XenParavirtOps
> >>
> >>
> >>  <http://wiki.xensource.com/xenwiki/XenParavirtOps> So, I am able to
> boot
> >> dom0 successfully, but apparently xend its not starting.
> >>
> >> A few things that I have noticed:
> >>
> >> 1) lsmod does not list evtchn and neither gntdev, and they are not
> compiled
> >> as a Module. I have tried also to insert them with lsmod, and of course,
> I
> >> dont have them.
> >> 2) The nodes appear in both /proc/misc and /dev/xen, and the numbers are
> >> correct
> >>
> >> % cat /proc/misc
> >>  52 freefall
> >> 224 tpm0
> >>  53 network_throughput
> >>  54 network_latency
> >>  55 cpu_dma_latency
> >>  56 device-mapper
> >>   1 psaux
> >> 200 tun
> >>  57 pktcdvd
> >> 228 hpet
> >>  58 blktap-control
> >>  59 xen/gntdev
> >>  60 xen/evtchn
> >> 229 fuse
> >>  61 ecryptfs
> >> 231 snapshot
> >> 227 mcelog
> >>  62 rfkill
> >>  63 vga_arbiter
> >> % ll /dev/xen
> >> total 0
> >> crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
> >> crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev
> >>
> >> 3) I am really running dom)
> >> % cat /proc/xen/capabilities
> >> control_d
> >>
> >> 4) /var/log/xen shows the following errors:
> >>
> >> xend.log
> >>
> >> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon started
> >> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset: Wed Aug
> 25
> >> 09:22:42 2010 +0100 21324:b536ebfba183.
> >> [2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception starting xend
> >> ((13, 'Permission denied'))
> >> Traceback (most recent call last):
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> line
> >> 339, in run
> >>     servers = SrvServer.create()
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> line
> >> 251, in create
> >>     root.putChild('xend', SrvRoot())
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
> line
> >> 40, in __init__
> >>     self.get(name)
> >>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in
> get
> >>     val = val.getobj()
> >>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
> >> getobj
> >>     self.obj = klassobj()
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
> line
> >> 30, in __init__
> >>     self.xn = XendNode.instance()
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 752, in
> >> instance
> >>     inst = XendNode()
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87,
> in
> >> __init__
> >>     self.other_config["xen_pagesize"] =
> self.xeninfo_dict()["xen_pagesize"]
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 741, in
> >> xeninfo_dict
> >>     return dict(self.xeninfo())
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 685, in
> >> xeninfo
> >>     info['xen_scheduler'] = self.xenschedinfo()
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 675, in
> >> xenschedinfo
> >>     sched_id = self.xc.sched_id_get()
> >> Error: (13, 'Permission denied')
> >>
> >>
> >> xend-debug.log
> >>
> >> Xend started at Wed Oct 27 17:32:31 2010.
> >> domctl operation failed -- need to rebuild the user-space tool set?
> >> sysctl operation failed -- need to rebuild the user-space tool set?
> >> Exception starting xend: (13, 'Permission denied')
> >> Exception in thread Thread-2:
> >> Traceback (most recent call last):
> >>   File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
> >>     self.run()
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line
> 230,
> >> in run
> >>     for domid, cputimes in self._get_cpu_stats().items():
> >>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line
> 208,
> >> in _get_cpu_stats
> >>     for domain in self.xc.domain_getinfo():
> >> Error: (13, 'Permission denied')
> >>
> >>
> >>
> >> Does anyone have any Idea of how can I start xend correctly ?
> >>
> >> Thank you!
> >>
> >> --
> >> David Cemin
> >>
> >
> >
>
>
>


-- 
David Cemin
mobile: +55 51 93523097
home:   +55 51 32763785
email: davidcemin@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 11752 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: xend does not start
  2010-10-28 13:46     ` David Cemin
@ 2010-10-28 14:14       ` Pasi Kärkkäinen
  2010-10-28 14:47         ` David Cemin
  2010-10-28 14:40       ` Keir Fraser
  1 sibling, 1 reply; 9+ messages in thread
From: Pasi Kärkkäinen @ 2010-10-28 14:14 UTC (permalink / raw)
  To: David Cemin; +Cc: xen-devel, Keir Fraser

On Thu, Oct 28, 2010 at 11:46:58AM -0200, David Cemin wrote:
>    Yes, I do have /proc/xen/privcmd. I suspect that something is missing in
>    my config. I'm not sure if I understand what you said. What do you mean by
>    configure privcmd into dom0 kernel?*
>    % ll /proc/xen
>    total 0
>    -r--r--r-- 1 root root 0 2010-10-28 11:08 capabilities
>    -rw------- 1 root root 0 2010-10-28 11:08 privcmd
>    -rw------- 1 root root 0 2010-10-28 11:08 xenbus
>    -rw------- 1 root root 0 2010-10-28 11:08 xsd_kva
>    -rw------- 1 root root 0 2010-10-28 11:08 xsd_port
>    Thank you!

Have you checked the troubleshooting section from:
http://wiki.xensource.com/xenwiki/XenParavirtOps

and from:
http://wiki.xensource.com/xenwiki/XenCommonProblems

-- Pasi

>    --
>    David
>    2010/10/28 Keir Fraser <[1]keir@xen.org>
> 
>      Do you have /proc/xen/privcmd? You might need to configure that into
>      your
>      dom0 kernel build or something.
>      *-- Keir
>      On 28/10/2010 14:17, "David Cemin" <[2]davidcemin@gmail.com> wrote:
> 
>      > I tried another approach.*
>      >
>      > Since I assume that my problem is with modules loading, I've compiled
>      the
>      > kernel with xen-evtchn and xen-gntdev as modules. Now, I can load them
>      with
>      > modprobe. They do appear loaded in lsmod
>      >
>      > % lsmod | grep xen * * * * * * *
>      > xen_gntdev * * * * * * *7486 *0*
>      > xen_evtchn * * * * * * *4617 *1*
>      >
>      > It seems that xend is running, as we can see in a ps:
>      >
>      > % ps ax | grep xen*
>      > ** 24 ? * * * *S * * *0:00 [xenwatch]
>      > ** 25 ? * * * *S * * *0:00 [xenbus]
>      > **851 ? * * * *S * * *0:00 avahi-daemon: running
>      [xenserver-laptop.local]
>      > *2101 ? * * * *S * * *0:00 xenstored --pid-file /var/run/xenstore.pid
>      > *2105 ? * * * *SLl * *0:00 xenconsoled*
>      > *2109 ? * * * *S * * *0:00 /usr/bin/python /usr/sbin/xend start
>      > *2110 ? * * * *Sl * * 0:00 /usr/bin/python /usr/sbin/xend start
>      > *2254 pts/0 * *S+ * * 0:00 grep --color xen
>      >
>      >
>      > But /var/log/xend.log shows that I have an exception during xend
>      start:
>      >
>      > [2010-10-28 11:10:52 2110] INFO (SrvDaemon:331) Xend Daemon started
>      > [2010-10-28 11:10:52 2110] INFO (SrvDaemon:335) Xend changeset: Wed
>      Aug 25
>      > 09:22:42 2010 +0100 21324:b536ebfba183.
>      > [2010-10-28 11:10:52 2110] ERROR (SrvDaemon:347) Exception starting
>      xend ((13,
>      > 'Permission denied'))
>      > Traceback (most recent call last):
>      > **File
>      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line
>      > 339, in run
>      > ** *servers = SrvServer.create()
>      > **File
>      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line
>      > 251, in create
>      > ** *root.putChild('xend', SrvRoot())
>      > **File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
>      line 40,
>      > in __init__
>      > ** *self.get(name)
>      > **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82,
>      in get
>      > ** *val = val.getobj()
>      > **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52,
>      in
>      > getobj
>      > ** *self.obj = klassobj()
>      > **File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
>      line 30,
>      > in __init__
>      > ** *self.xn = XendNode.instance()
>      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      752, in
>      > instance
>      > ** *inst = XendNode()
>      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      87, in
>      > __init__
>      > ** *self.other_config["xen_pagesize"] =
>      self.xeninfo_dict()["xen_pagesize"]
>      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      741, in
>      > xeninfo_dict
>      > ** *return dict(self.xeninfo())
>      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      685, in
>      > xeninfo
>      > ** *info['xen_scheduler'] = self.xenschedinfo()
>      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      675, in
>      > xenschedinfo
>      > ** *sched_id = self.xc.sched_id_get()
>      > Error: (13, 'Permission denied')
>      >
>      > And I cant call any xm bin, as for example:
>      >
>      > % xm list
>      > Error: Unable to connect to xend: No such file or directory. Is xend
>      running?
>      > (1) %*
>      >
>      >
>      > So, I'm kind of stuck here. Any Ideas?*
>      >
>      > Thank you all,*
>      >
>      > --
>      > David
>      >
>      >
>      >
>      > 2010/10/27 David Cemin <[3]davidcemin@gmail.com>
>      >> Hello,*
>      >>
>      >> I've downloaded the xen 4.0.1 version as it is explained here:
>      >> [4]http://wiki.xensource.com/xenwiki/Xen4.0
>      >>
>      >> *<[5]http://wiki.xensource.com/xenwiki/Xen4.0> So, I've made a clone
>      from
>      >> repository, with the following command:
>      >>
>      >> hg clone -r RELEASE-4.0.1
>      [6]http://xenbits.xen.org/xen-4.0-testing.hg
>      >> And finally I've built xen, tools and stubdom.
>      >>
>      >>
>      >> I was looking for a paravirtualized domain, and so I follow the
>      instructions
>      >> from here:
>      >> [7]http://wiki.xensource.com/xenwiki/XenParavirtOps
>      >>
>      >>
>      >> *<[8]http://wiki.xensource.com/xenwiki/XenParavirtOps> So, I am able
>      to boot
>      >> dom0 successfully, but apparently xend its not starting.
>      >>
>      >> A few things that I have noticed:*
>      >>
>      >> 1) lsmod does not list evtchn and neither gntdev, and they are not
>      compiled
>      >> as a Module. I have tried also to insert them with lsmod, and of
>      course, I
>      >> dont have them.
>      >> 2) The nodes appear in both /proc/misc and /dev/xen, and the numbers
>      are
>      >> correct
>      >>
>      >> % cat /proc/misc*
>      >> *52 freefall
>      >> 224 tpm0
>      >> *53 network_throughput
>      >> *54 network_latency
>      >> *55 cpu_dma_latency
>      >> *56 device-mapper
>      >> **1 psaux
>      >> 200 tun
>      >> *57 pktcdvd
>      >> 228 hpet
>      >> *58 blktap-control
>      >> *59 xen/gntdev
>      >> *60 xen/evtchn
>      >> 229 fuse
>      >> *61 ecryptfs
>      >> 231 snapshot
>      >> 227 mcelog
>      >> *62 rfkill
>      >> *63 vga_arbiter
>      >> % ll /dev/xen*
>      >> total 0
>      >> crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
>      >> crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev
>      >>
>      >> 3) I am really running dom)
>      >> % cat /proc/xen/capabilities **
>      >> control_d
>      >>
>      >> 4) /var/log/xen shows the following errors:
>      >>
>      >> xend.log
>      >>
>      >> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon started
>      >> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset: Wed
>      Aug 25
>      >> 09:22:42 2010 +0100 21324:b536ebfba183.
>      >> [2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception starting
>      xend
>      >> ((13, 'Permission denied'))
>      >> Traceback (most recent call last):
>      >> **File
>      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line
>      >> 339, in run
>      >> ** *servers = SrvServer.create()
>      >> **File
>      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line
>      >> 251, in create
>      >> ** *root.putChild('xend', SrvRoot())
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
>      line
>      >> 40, in __init__
>      >> ** *self.get(name)
>      >> **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82,
>      in get
>      >> ** *val = val.getobj()
>      >> **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52,
>      in
>      >> getobj
>      >> ** *self.obj = klassobj()
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
>      line
>      >> 30, in __init__
>      >> ** *self.xn = XendNode.instance()
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      752, in
>      >> instance
>      >> ** *inst = XendNode()
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      87, in
>      >> __init__
>      >> ** *self.other_config["xen_pagesize"] =
>      self.xeninfo_dict()["xen_pagesize"]
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      741, in
>      >> xeninfo_dict
>      >> ** *return dict(self.xeninfo())
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      685, in
>      >> xeninfo
>      >> ** *info['xen_scheduler'] = self.xenschedinfo()
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
>      675, in
>      >> xenschedinfo
>      >> ** *sched_id = self.xc.sched_id_get()
>      >> Error: (13, 'Permission denied')
>      >>
>      >>
>      >> xend-debug.log
>      >>
>      >> Xend started at Wed Oct 27 17:32:31 2010.
>      >> domctl operation failed -- need to rebuild the user-space tool set?
>      >> sysctl operation failed -- need to rebuild the user-space tool set?
>      >> Exception starting xend: (13, 'Permission denied')
>      >> Exception in thread Thread-2:
>      >> Traceback (most recent call last):
>      >> **File "/usr/lib/python2.6/threading.py", line 532, in
>      __bootstrap_inner
>      >> ** *self.run()
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py",
>      line 230,
>      >> in run
>      >> ** *for domid, cputimes in self._get_cpu_stats().items():
>      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py",
>      line 208,
>      >> in _get_cpu_stats
>      >> ** *for domain in self.xc.domain_getinfo():
>      >> Error: (13, 'Permission denied')
>      >>
>      >>
>      >>
>      >> Does anyone have any Idea of how can I start xend correctly ?
>      >>
>      >> Thank you!
>      >>
>      >> --
>      >> David Cemin
>      >>
>      >
>      >
> 
>    --
>    David Cemin
>    mobile: +55 51 93523097
>    home:** +55 51 32763785
>    email: [9]davidcemin@gmail.com
> 
> References
> 
>    Visible links
>    1. mailto:keir@xen.org
>    2. mailto:davidcemin@gmail.com
>    3. mailto:davidcemin@gmail.com
>    4. http://wiki.xensource.com/xenwiki/Xen4.0
>    5. http://wiki.xensource.com/xenwiki/Xen4.0
>    6. http://xenbits.xen.org/xen-4.0-testing.hg
>    7. http://wiki.xensource.com/xenwiki/XenParavirtOps
>    8. http://wiki.xensource.com/xenwiki/XenParavirtOps
>    9. mailto:davidcemin@gmail.com

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: xend does not start
  2010-10-28 13:46     ` David Cemin
  2010-10-28 14:14       ` Pasi Kärkkäinen
@ 2010-10-28 14:40       ` Keir Fraser
  2010-10-28 14:47         ` David Cemin
  1 sibling, 1 reply; 9+ messages in thread
From: Keir Fraser @ 2010-10-28 14:40 UTC (permalink / raw)
  To: David Cemin; +Cc: xen-devel

Oh, hang on, the problem is probably that you have a version mismatch
between your hypercvisor and your tools in dom0. They need to be installed
from the exact same Xen version. This query should have been posted to
xen-users by the way - it doesn;'t belong on xen-devel.

 -- Keir

On 28/10/2010 14:46, "David Cemin" <davidcemin@gmail.com> wrote:

> Yes, I do have /proc/xen/privcmd. I suspect that something is missing in my
> config. I'm not sure if I understand what you said. What do you mean by
> configure privcmd into dom0 kernel? 
> 
> % ll /proc/xen
> total 0
> -r--r--r-- 1 root root 0 2010-10-28 11:08 capabilities
> -rw------- 1 root root 0 2010-10-28 11:08 privcmd
> -rw------- 1 root root 0 2010-10-28 11:08 xenbus
> -rw------- 1 root root 0 2010-10-28 11:08 xsd_kva
> -rw------- 1 root root 0 2010-10-28 11:08 xsd_port
> 
> Thank you!
> 
> --
> David
> 
> 
> 2010/10/28 Keir Fraser <keir@xen.org>
>> Do you have /proc/xen/privcmd? You might need to configure that into your
>> dom0 kernel build or something.
>> 
>>  -- Keir
>> 
>> On 28/10/2010 14:17, "David Cemin" <davidcemin@gmail.com> wrote:
>> 
>>> I tried another approach. 
>>> 
>>> Since I assume that my problem is with modules loading, I've compiled the
>>> kernel with xen-evtchn and xen-gntdev as modules. Now, I can load them with
>>> modprobe. They do appear loaded in lsmod
>>> 
>>> % lsmod | grep xen              
>>> xen_gntdev              7486  0 
>>> xen_evtchn              4617  1 
>>> 
>>> It seems that xend is running, as we can see in a ps:
>>> 
>>> % ps ax | grep xen 
>>>    24 ?        S      0:00 [xenwatch]
>>>    25 ?        S      0:00 [xenbus]
>>>   851 ?        S      0:00 avahi-daemon: running [xenserver-laptop.local]
>>>  2101 ?        S      0:00 xenstored --pid-file /var/run/xenstore.pid
>>>  2105 ?        SLl    0:00 xenconsoled 
>>>  2109 ?        S      0:00 /usr/bin/python /usr/sbin/xend start
>>>  2110 ?        Sl     0:00 /usr/bin/python /usr/sbin/xend start
>>>  2254 pts/0    S+     0:00 grep --color xen
>>> 
>>> 
>>> But /var/log/xend.log shows that I have an exception during xend start:
>>> 
>>> [2010-10-28 11:10:52 2110] INFO (SrvDaemon:331) Xend Daemon started
>>> [2010-10-28 11:10:52 2110] INFO (SrvDaemon:335) Xend changeset: Wed Aug 25
>>> 09:22:42 2010 +0100 21324:b536ebfba183.
>>> [2010-10-28 11:10:52 2110] ERROR (SrvDaemon:347) Exception starting xend
>>> ((13,
>>> 'Permission denied'))
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py", line
>>> 339, in run
>>>     servers = SrvServer.create()
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py", line
>>> 251, in create
>>>     root.putChild('xend', SrvRoot())
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line
>>> 40,
>>> in __init__
>>>     self.get(name)
>>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in get
>>>     val = val.getobj()
>>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
>>> getobj
>>>     self.obj = klassobj()
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line
>>> 30,
>>> in __init__
>>>     self.xn = XendNode.instance()
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752, in
>>> instance
>>>     inst = XendNode()
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87, in
>>> __init__
>>>     self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741, in
>>> xeninfo_dict
>>>     return dict(self.xeninfo())
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685, in
>>> xeninfo
>>>     info['xen_scheduler'] = self.xenschedinfo()
>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675, in
>>> xenschedinfo
>>>     sched_id = self.xc.sched_id_get()
>>> Error: (13, 'Permission denied')
>>> 
>>> And I cant call any xm bin, as for example:
>>> 
>>> % xm list
>>> Error: Unable to connect to xend: No such file or directory. Is xend
>>> running?
>>> (1) % 
>>> 
>>> 
>>> So, I'm kind of stuck here. Any Ideas? 
>>> 
>>> Thank you all, 
>>> 
>>> --
>>> David
>>> 
>>> 
>>> 
>>> 2010/10/27 David Cemin <davidcemin@gmail.com>
>>>> Hello, 
>>>> 
>>>> I've downloaded the xen 4.0.1 version as it is explained here:
>>>> http://wiki.xensource.com/xenwiki/Xen4.0
>>>> 
>>>>  <http://wiki.xensource.com/xenwiki/Xen4.0> So, I've made a clone from
>>>> repository, with the following command:
>>>> 
>>>> hg clone -r RELEASE-4.0.1 http://xenbits.xen.org/xen-4.0-testing.hg
>>>> And finally I've built xen, tools and stubdom.
>>>> 
>>>> 
>>>> I was looking for a paravirtualized domain, and so I follow the
>>>> instructions
>>>> from here:
>>>> http://wiki.xensource.com/xenwiki/XenParavirtOps
>>>> 
>>>> 
>>>>  <http://wiki.xensource.com/xenwiki/XenParavirtOps> So, I am able to boot
>>>> dom0 successfully, but apparently xend its not starting.
>>>> 
>>>> A few things that I have noticed: 
>>>> 
>>>> 1) lsmod does not list evtchn and neither gntdev, and they are not compiled
>>>> as a Module. I have tried also to insert them with lsmod, and of course, I
>>>> dont have them.
>>>> 2) The nodes appear in both /proc/misc and /dev/xen, and the numbers are
>>>> correct
>>>> 
>>>> % cat /proc/misc 
>>>>  52 freefall
>>>> 224 tpm0
>>>>  53 network_throughput
>>>>  54 network_latency
>>>>  55 cpu_dma_latency
>>>>  56 device-mapper
>>>>   1 psaux
>>>> 200 tun
>>>>  57 pktcdvd
>>>> 228 hpet
>>>>  58 blktap-control
>>>>  59 xen/gntdev
>>>>  60 xen/evtchn
>>>> 229 fuse
>>>>  61 ecryptfs
>>>> 231 snapshot
>>>> 227 mcelog
>>>>  62 rfkill
>>>>  63 vga_arbiter
>>>> % ll /dev/xen 
>>>> total 0
>>>> crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
>>>> crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev
>>>> 
>>>> 3) I am really running dom)
>>>> % cat /proc/xen/capabilities   
>>>> control_d
>>>> 
>>>> 4) /var/log/xen shows the following errors:
>>>> 
>>>> xend.log
>>>> 
>>>> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon started
>>>> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset: Wed Aug 25
>>>> 09:22:42 2010 +0100 21324:b536ebfba183.
>>>> [2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception starting xend
>>>> ((13, 'Permission denied'))
>>>> Traceback (most recent call last):
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
>>>> line
>>>> 339, in run
>>>>     servers = SrvServer.create()
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
>>>> line
>>>> 251, in create
>>>>     root.putChild('xend', SrvRoot())
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py", line
>>>> 40, in __init__
>>>>     self.get(name)
>>>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82, in
>>>> get
>>>>     val = val.getobj()
>>>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52, in
>>>> getobj
>>>>     self.obj = klassobj()
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py", line
>>>> 30, in __init__
>>>>     self.xn = XendNode.instance()
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 752,
>>>> in
>>>> instance
>>>>     inst = XendNode()
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 87, in
>>>> __init__
>>>>     self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 741,
>>>> in
>>>> xeninfo_dict
>>>>     return dict(self.xeninfo())
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 685,
>>>> in
>>>> xeninfo
>>>>     info['xen_scheduler'] = self.xenschedinfo()
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line 675,
>>>> in
>>>> xenschedinfo
>>>>     sched_id = self.xc.sched_id_get()
>>>> Error: (13, 'Permission denied')
>>>> 
>>>> 
>>>> xend-debug.log
>>>> 
>>>> Xend started at Wed Oct 27 17:32:31 2010.
>>>> domctl operation failed -- need to rebuild the user-space tool set?
>>>> sysctl operation failed -- need to rebuild the user-space tool set?
>>>> Exception starting xend: (13, 'Permission denied')
>>>> Exception in thread Thread-2:
>>>> Traceback (most recent call last):
>>>>   File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
>>>>     self.run()
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line
>>>> 230,
>>>> in run
>>>>     for domid, cputimes in self._get_cpu_stats().items():
>>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py", line
>>>> 208,
>>>> in _get_cpu_stats
>>>>     for domain in self.xc.domain_getinfo():
>>>> Error: (13, 'Permission denied')
>>>> 
>>>> 
>>>> 
>>>> Does anyone have any Idea of how can I start xend correctly ?
>>>> 
>>>> Thank you!
>>>> 
>>>> --
>>>> David Cemin
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: xend does not start
  2010-10-28 14:14       ` Pasi Kärkkäinen
@ 2010-10-28 14:47         ` David Cemin
  0 siblings, 0 replies; 9+ messages in thread
From: David Cemin @ 2010-10-28 14:47 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel, Keir Fraser


[-- Attachment #1.1: Type: text/plain, Size: 12120 bytes --]

Yes .. I tried that.

thank you

2010/10/28 Pasi Kärkkäinen <pasik@iki.fi>

> On Thu, Oct 28, 2010 at 11:46:58AM -0200, David Cemin wrote:
> >    Yes, I do have /proc/xen/privcmd. I suspect that something is missing
> in
> >    my config. I'm not sure if I understand what you said. What do you
> mean by
> >    configure privcmd into dom0 kernel?*
> >    % ll /proc/xen
> >    total 0
> >    -r--r--r-- 1 root root 0 2010-10-28 11:08 capabilities
> >    -rw------- 1 root root 0 2010-10-28 11:08 privcmd
> >    -rw------- 1 root root 0 2010-10-28 11:08 xenbus
> >    -rw------- 1 root root 0 2010-10-28 11:08 xsd_kva
> >    -rw------- 1 root root 0 2010-10-28 11:08 xsd_port
> >    Thank you!
>
> Have you checked the troubleshooting section from:
> http://wiki.xensource.com/xenwiki/XenParavirtOps
>
> and from:
> http://wiki.xensource.com/xenwiki/XenCommonProblems
>
> -- Pasi
>
> >    --
> >    David
> >    2010/10/28 Keir Fraser <[1]keir@xen.org>
> >
> >      Do you have /proc/xen/privcmd? You might need to configure that into
> >      your
> >      dom0 kernel build or something.
> >      *-- Keir
> >      On 28/10/2010 14:17, "David Cemin" <[2]davidcemin@gmail.com> wrote:
> >
> >      > I tried another approach.*
> >      >
> >      > Since I assume that my problem is with modules loading, I've
> compiled
> >      the
> >      > kernel with xen-evtchn and xen-gntdev as modules. Now, I can load
> them
> >      with
> >      > modprobe. They do appear loaded in lsmod
> >      >
> >      > % lsmod | grep xen * * * * * * *
> >      > xen_gntdev * * * * * * *7486 *0*
> >      > xen_evtchn * * * * * * *4617 *1*
> >      >
> >      > It seems that xend is running, as we can see in a ps:
> >      >
> >      > % ps ax | grep xen*
> >      > ** 24 ? * * * *S * * *0:00 [xenwatch]
> >      > ** 25 ? * * * *S * * *0:00 [xenbus]
> >      > **851 ? * * * *S * * *0:00 avahi-daemon: running
> >      [xenserver-laptop.local]
> >      > *2101 ? * * * *S * * *0:00 xenstored --pid-file
> /var/run/xenstore.pid
> >      > *2105 ? * * * *SLl * *0:00 xenconsoled*
> >      > *2109 ? * * * *S * * *0:00 /usr/bin/python /usr/sbin/xend start
> >      > *2110 ? * * * *Sl * * 0:00 /usr/bin/python /usr/sbin/xend start
> >      > *2254 pts/0 * *S+ * * 0:00 grep --color xen
> >      >
> >      >
> >      > But /var/log/xend.log shows that I have an exception during xend
> >      start:
> >      >
> >      > [2010-10-28 11:10:52 2110] INFO (SrvDaemon:331) Xend Daemon
> started
> >      > [2010-10-28 11:10:52 2110] INFO (SrvDaemon:335) Xend changeset:
> Wed
> >      Aug 25
> >      > 09:22:42 2010 +0100 21324:b536ebfba183.
> >      > [2010-10-28 11:10:52 2110] ERROR (SrvDaemon:347) Exception
> starting
> >      xend ((13,
> >      > 'Permission denied'))
> >      > Traceback (most recent call last):
> >      > **File
> >      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> line
> >      > 339, in run
> >      > ** *servers = SrvServer.create()
> >      > **File
> >      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> line
> >      > 251, in create
> >      > ** *root.putChild('xend', SrvRoot())
> >      > **File
> "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
> >      line 40,
> >      > in __init__
> >      > ** *self.get(name)
> >      > **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line
> 82,
> >      in get
> >      > ** *val = val.getobj()
> >      > **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line
> 52,
> >      in
> >      > getobj
> >      > ** *self.obj = klassobj()
> >      > **File
> "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
> >      line 30,
> >      > in __init__
> >      > ** *self.xn = XendNode.instance()
> >      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      752, in
> >      > instance
> >      > ** *inst = XendNode()
> >      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      87, in
> >      > __init__
> >      > ** *self.other_config["xen_pagesize"] =
> >      self.xeninfo_dict()["xen_pagesize"]
> >      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      741, in
> >      > xeninfo_dict
> >      > ** *return dict(self.xeninfo())
> >      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      685, in
> >      > xeninfo
> >      > ** *info['xen_scheduler'] = self.xenschedinfo()
> >      > **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      675, in
> >      > xenschedinfo
> >      > ** *sched_id = self.xc.sched_id_get()
> >      > Error: (13, 'Permission denied')
> >      >
> >      > And I cant call any xm bin, as for example:
> >      >
> >      > % xm list
> >      > Error: Unable to connect to xend: No such file or directory. Is
> xend
> >      running?
> >      > (1) %*
> >      >
> >      >
> >      > So, I'm kind of stuck here. Any Ideas?*
> >      >
> >      > Thank you all,*
> >      >
> >      > --
> >      > David
> >      >
> >      >
> >      >
> >      > 2010/10/27 David Cemin <[3]davidcemin@gmail.com>
> >      >> Hello,*
> >      >>
> >      >> I've downloaded the xen 4.0.1 version as it is explained here:
> >      >> [4]http://wiki.xensource.com/xenwiki/Xen4.0
> >      >>
> >      >> *<[5]http://wiki.xensource.com/xenwiki/Xen4.0> So, I've made a
> clone
> >      from
> >      >> repository, with the following command:
> >      >>
> >      >> hg clone -r RELEASE-4.0.1
> >      [6]http://xenbits.xen.org/xen-4.0-testing.hg
> >      >> And finally I've built xen, tools and stubdom.
> >      >>
> >      >>
> >      >> I was looking for a paravirtualized domain, and so I follow the
> >      instructions
> >      >> from here:
> >      >> [7]http://wiki.xensource.com/xenwiki/XenParavirtOps
> >      >>
> >      >>
> >      >> *<[8]http://wiki.xensource.com/xenwiki/XenParavirtOps> So, I am
> able
> >      to boot
> >      >> dom0 successfully, but apparently xend its not starting.
> >      >>
> >      >> A few things that I have noticed:*
> >      >>
> >      >> 1) lsmod does not list evtchn and neither gntdev, and they are
> not
> >      compiled
> >      >> as a Module. I have tried also to insert them with lsmod, and of
> >      course, I
> >      >> dont have them.
> >      >> 2) The nodes appear in both /proc/misc and /dev/xen, and the
> numbers
> >      are
> >      >> correct
> >      >>
> >      >> % cat /proc/misc*
> >      >> *52 freefall
> >      >> 224 tpm0
> >      >> *53 network_throughput
> >      >> *54 network_latency
> >      >> *55 cpu_dma_latency
> >      >> *56 device-mapper
> >      >> **1 psaux
> >      >> 200 tun
> >      >> *57 pktcdvd
> >      >> 228 hpet
> >      >> *58 blktap-control
> >      >> *59 xen/gntdev
> >      >> *60 xen/evtchn
> >      >> 229 fuse
> >      >> *61 ecryptfs
> >      >> 231 snapshot
> >      >> 227 mcelog
> >      >> *62 rfkill
> >      >> *63 vga_arbiter
> >      >> % ll /dev/xen*
> >      >> total 0
> >      >> crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
> >      >> crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev
> >      >>
> >      >> 3) I am really running dom)
> >      >> % cat /proc/xen/capabilities **
> >      >> control_d
> >      >>
> >      >> 4) /var/log/xen shows the following errors:
> >      >>
> >      >> xend.log
> >      >>
> >      >> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon
> started
> >      >> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset:
> Wed
> >      Aug 25
> >      >> 09:22:42 2010 +0100 21324:b536ebfba183.
> >      >> [2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception
> starting
> >      xend
> >      >> ((13, 'Permission denied'))
> >      >> Traceback (most recent call last):
> >      >> **File
> >      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> line
> >      >> 339, in run
> >      >> ** *servers = SrvServer.create()
> >      >> **File
> >      "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> line
> >      >> 251, in create
> >      >> ** *root.putChild('xend', SrvRoot())
> >      >> **File
> "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
> >      line
> >      >> 40, in __init__
> >      >> ** *self.get(name)
> >      >> **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line
> 82,
> >      in get
> >      >> ** *val = val.getobj()
> >      >> **File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line
> 52,
> >      in
> >      >> getobj
> >      >> ** *self.obj = klassobj()
> >      >> **File
> "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
> >      line
> >      >> 30, in __init__
> >      >> ** *self.xn = XendNode.instance()
> >      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      752, in
> >      >> instance
> >      >> ** *inst = XendNode()
> >      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      87, in
> >      >> __init__
> >      >> ** *self.other_config["xen_pagesize"] =
> >      self.xeninfo_dict()["xen_pagesize"]
> >      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      741, in
> >      >> xeninfo_dict
> >      >> ** *return dict(self.xeninfo())
> >      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      685, in
> >      >> xeninfo
> >      >> ** *info['xen_scheduler'] = self.xenschedinfo()
> >      >> **File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py",
> line
> >      675, in
> >      >> xenschedinfo
> >      >> ** *sched_id = self.xc.sched_id_get()
> >      >> Error: (13, 'Permission denied')
> >      >>
> >      >>
> >      >> xend-debug.log
> >      >>
> >      >> Xend started at Wed Oct 27 17:32:31 2010.
> >      >> domctl operation failed -- need to rebuild the user-space tool
> set?
> >      >> sysctl operation failed -- need to rebuild the user-space tool
> set?
> >      >> Exception starting xend: (13, 'Permission denied')
> >      >> Exception in thread Thread-2:
> >      >> Traceback (most recent call last):
> >      >> **File "/usr/lib/python2.6/threading.py", line 532, in
> >      __bootstrap_inner
> >      >> ** *self.run()
> >      >> **File
> "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py",
> >      line 230,
> >      >> in run
> >      >> ** *for domid, cputimes in self._get_cpu_stats().items():
> >      >> **File
> "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py",
> >      line 208,
> >      >> in _get_cpu_stats
> >      >> ** *for domain in self.xc.domain_getinfo():
> >      >> Error: (13, 'Permission denied')
> >      >>
> >      >>
> >      >>
> >      >> Does anyone have any Idea of how can I start xend correctly ?
> >      >>
> >      >> Thank you!
> >      >>
> >      >> --
> >      >> David Cemin
> >      >>
> >      >
> >      >
> >
> >    --
> >    David Cemin
> >    mobile: +55 51 93523097
> >    home:** +55 51 32763785
> >    email: [9]davidcemin@gmail.com
> >
> > References
> >
> >    Visible links
> >    1. mailto:keir@xen.org
> >    2. mailto:davidcemin@gmail.com
> >    3. mailto:davidcemin@gmail.com
> >    4. http://wiki.xensource.com/xenwiki/Xen4.0
> >    5. http://wiki.xensource.com/xenwiki/Xen4.0
> >    6. http://xenbits.xen.org/xen-4.0-testing.hg
> >    7. http://wiki.xensource.com/xenwiki/XenParavirtOps
> >    8. http://wiki.xensource.com/xenwiki/XenParavirtOps
> >    9. mailto:davidcemin@gmail.com
>
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
>
>


-- 
David Cemin
mobile: +55 51 93523097
home:   +55 51 32763785
email: davidcemin@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 16859 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: xend does not start
  2010-10-28 14:40       ` Keir Fraser
@ 2010-10-28 14:47         ` David Cemin
  0 siblings, 0 replies; 9+ messages in thread
From: David Cemin @ 2010-10-28 14:47 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 9732 bytes --]

Ok, sorry. I'll open this thread on xen-users list as well.

Thank you for your help.

2010/10/28 Keir Fraser <keir@xen.org>

> Oh, hang on, the problem is probably that you have a version mismatch
> between your hypercvisor and your tools in dom0. They need to be installed
> from the exact same Xen version. This query should have been posted to
> xen-users by the way - it doesn;'t belong on xen-devel.
>
>  -- Keir
>
> On 28/10/2010 14:46, "David Cemin" <davidcemin@gmail.com> wrote:
>
> > Yes, I do have /proc/xen/privcmd. I suspect that something is missing in
> my
> > config. I'm not sure if I understand what you said. What do you mean by
> > configure privcmd into dom0 kernel?
> >
> > % ll /proc/xen
> > total 0
> > -r--r--r-- 1 root root 0 2010-10-28 11:08 capabilities
> > -rw------- 1 root root 0 2010-10-28 11:08 privcmd
> > -rw------- 1 root root 0 2010-10-28 11:08 xenbus
> > -rw------- 1 root root 0 2010-10-28 11:08 xsd_kva
> > -rw------- 1 root root 0 2010-10-28 11:08 xsd_port
> >
> > Thank you!
> >
> > --
> > David
> >
> >
> > 2010/10/28 Keir Fraser <keir@xen.org>
> >> Do you have /proc/xen/privcmd? You might need to configure that into
> your
> >> dom0 kernel build or something.
> >>
> >>  -- Keir
> >>
> >> On 28/10/2010 14:17, "David Cemin" <davidcemin@gmail.com> wrote:
> >>
> >>> I tried another approach.
> >>>
> >>> Since I assume that my problem is with modules loading, I've compiled
> the
> >>> kernel with xen-evtchn and xen-gntdev as modules. Now, I can load them
> with
> >>> modprobe. They do appear loaded in lsmod
> >>>
> >>> % lsmod | grep xen
> >>> xen_gntdev              7486  0
> >>> xen_evtchn              4617  1
> >>>
> >>> It seems that xend is running, as we can see in a ps:
> >>>
> >>> % ps ax | grep xen
> >>>    24 ?        S      0:00 [xenwatch]
> >>>    25 ?        S      0:00 [xenbus]
> >>>   851 ?        S      0:00 avahi-daemon: running
> [xenserver-laptop.local]
> >>>  2101 ?        S      0:00 xenstored --pid-file /var/run/xenstore.pid
> >>>  2105 ?        SLl    0:00 xenconsoled
> >>>  2109 ?        S      0:00 /usr/bin/python /usr/sbin/xend start
> >>>  2110 ?        Sl     0:00 /usr/bin/python /usr/sbin/xend start
> >>>  2254 pts/0    S+     0:00 grep --color xen
> >>>
> >>>
> >>> But /var/log/xend.log shows that I have an exception during xend start:
> >>>
> >>> [2010-10-28 11:10:52 2110] INFO (SrvDaemon:331) Xend Daemon started
> >>> [2010-10-28 11:10:52 2110] INFO (SrvDaemon:335) Xend changeset: Wed Aug
> 25
> >>> 09:22:42 2010 +0100 21324:b536ebfba183.
> >>> [2010-10-28 11:10:52 2110] ERROR (SrvDaemon:347) Exception starting
> xend
> >>> ((13,
> >>> 'Permission denied'))
> >>> Traceback (most recent call last):
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> line
> >>> 339, in run
> >>>     servers = SrvServer.create()
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> line
> >>> 251, in create
> >>>     root.putChild('xend', SrvRoot())
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
> line
> >>> 40,
> >>> in __init__
> >>>     self.get(name)
> >>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82,
> in get
> >>>     val = val.getobj()
> >>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52,
> in
> >>> getobj
> >>>     self.obj = klassobj()
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
> line
> >>> 30,
> >>> in __init__
> >>>     self.xn = XendNode.instance()
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 752, in
> >>> instance
> >>>     inst = XendNode()
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 87, in
> >>> __init__
> >>>     self.other_config["xen_pagesize"] =
> self.xeninfo_dict()["xen_pagesize"]
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 741, in
> >>> xeninfo_dict
> >>>     return dict(self.xeninfo())
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 685, in
> >>> xeninfo
> >>>     info['xen_scheduler'] = self.xenschedinfo()
> >>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 675, in
> >>> xenschedinfo
> >>>     sched_id = self.xc.sched_id_get()
> >>> Error: (13, 'Permission denied')
> >>>
> >>> And I cant call any xm bin, as for example:
> >>>
> >>> % xm list
> >>> Error: Unable to connect to xend: No such file or directory. Is xend
> >>> running?
> >>> (1) %
> >>>
> >>>
> >>> So, I'm kind of stuck here. Any Ideas?
> >>>
> >>> Thank you all,
> >>>
> >>> --
> >>> David
> >>>
> >>>
> >>>
> >>> 2010/10/27 David Cemin <davidcemin@gmail.com>
> >>>> Hello,
> >>>>
> >>>> I've downloaded the xen 4.0.1 version as it is explained here:
> >>>> http://wiki.xensource.com/xenwiki/Xen4.0
> >>>>
> >>>>  <http://wiki.xensource.com/xenwiki/Xen4.0> So, I've made a clone
> from
> >>>> repository, with the following command:
> >>>>
> >>>> hg clone -r RELEASE-4.0.1 http://xenbits.xen.org/xen-4.0-testing.hg
> >>>> And finally I've built xen, tools and stubdom.
> >>>>
> >>>>
> >>>> I was looking for a paravirtualized domain, and so I follow the
> >>>> instructions
> >>>> from here:
> >>>> http://wiki.xensource.com/xenwiki/XenParavirtOps
> >>>>
> >>>>
> >>>>  <http://wiki.xensource.com/xenwiki/XenParavirtOps> So, I am able to
> boot
> >>>> dom0 successfully, but apparently xend its not starting.
> >>>>
> >>>> A few things that I have noticed:
> >>>>
> >>>> 1) lsmod does not list evtchn and neither gntdev, and they are not
> compiled
> >>>> as a Module. I have tried also to insert them with lsmod, and of
> course, I
> >>>> dont have them.
> >>>> 2) The nodes appear in both /proc/misc and /dev/xen, and the numbers
> are
> >>>> correct
> >>>>
> >>>> % cat /proc/misc
> >>>>  52 freefall
> >>>> 224 tpm0
> >>>>  53 network_throughput
> >>>>  54 network_latency
> >>>>  55 cpu_dma_latency
> >>>>  56 device-mapper
> >>>>   1 psaux
> >>>> 200 tun
> >>>>  57 pktcdvd
> >>>> 228 hpet
> >>>>  58 blktap-control
> >>>>  59 xen/gntdev
> >>>>  60 xen/evtchn
> >>>> 229 fuse
> >>>>  61 ecryptfs
> >>>> 231 snapshot
> >>>> 227 mcelog
> >>>>  62 rfkill
> >>>>  63 vga_arbiter
> >>>> % ll /dev/xen
> >>>> total 0
> >>>> crw-rw---- 1 root root 10, 60 2010-10-27 17:32 evtchn
> >>>> crw-rw---- 1 root root 10, 59 2010-10-27 17:32 gntdev
> >>>>
> >>>> 3) I am really running dom)
> >>>> % cat /proc/xen/capabilities
> >>>> control_d
> >>>>
> >>>> 4) /var/log/xen shows the following errors:
> >>>>
> >>>> xend.log
> >>>>
> >>>> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:331) Xend Daemon started
> >>>> [2010-10-27 17:32:31 1307] INFO (SrvDaemon:335) Xend changeset: Wed
> Aug 25
> >>>> 09:22:42 2010 +0100 21324:b536ebfba183.
> >>>> [2010-10-27 17:32:31 1307] ERROR (SrvDaemon:347) Exception starting
> xend
> >>>> ((13, 'Permission denied'))
> >>>> Traceback (most recent call last):
> >>>>   File
> "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvDaemon.py",
> >>>> line
> >>>> 339, in run
> >>>>     servers = SrvServer.create()
> >>>>   File
> "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvServer.py",
> >>>> line
> >>>> 251, in create
> >>>>     root.putChild('xend', SrvRoot())
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvRoot.py",
> line
> >>>> 40, in __init__
> >>>>     self.get(name)
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 82,
> in
> >>>> get
> >>>>     val = val.getobj()
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/web/SrvDir.py", line 52,
> in
> >>>> getobj
> >>>>     self.obj = klassobj()
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/server/SrvNode.py",
> line
> >>>> 30, in __init__
> >>>>     self.xn = XendNode.instance()
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 752,
> >>>> in
> >>>> instance
> >>>>     inst = XendNode()
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 87, in
> >>>> __init__
> >>>>     self.other_config["xen_pagesize"] =
> self.xeninfo_dict()["xen_pagesize"]
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 741,
> >>>> in
> >>>> xeninfo_dict
> >>>>     return dict(self.xeninfo())
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 685,
> >>>> in
> >>>> xeninfo
> >>>>     info['xen_scheduler'] = self.xenschedinfo()
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendNode.py", line
> 675,
> >>>> in
> >>>> xenschedinfo
> >>>>     sched_id = self.xc.sched_id_get()
> >>>> Error: (13, 'Permission denied')
> >>>>
> >>>>
> >>>> xend-debug.log
> >>>>
> >>>> Xend started at Wed Oct 27 17:32:31 2010.
> >>>> domctl operation failed -- need to rebuild the user-space tool set?
> >>>> sysctl operation failed -- need to rebuild the user-space tool set?
> >>>> Exception starting xend: (13, 'Permission denied')
> >>>> Exception in thread Thread-2:
> >>>> Traceback (most recent call last):
> >>>>   File "/usr/lib/python2.6/threading.py", line 532, in
> __bootstrap_inner
> >>>>     self.run()
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py",
> line
> >>>> 230,
> >>>> in run
> >>>>     for domid, cputimes in self._get_cpu_stats().items():
> >>>>   File "/usr/lib/python2.6/dist-packages/xen/xend/XendMonitor.py",
> line
> >>>> 208,
> >>>> in _get_cpu_stats
> >>>>     for domain in self.xc.domain_getinfo():
> >>>> Error: (13, 'Permission denied')
> >>>>
> >>>>
> >>>>
> >>>> Does anyone have any Idea of how can I start xend correctly ?
> >>>>
> >>>> Thank you!
> >>>>
> >>>> --
> >>>> David Cemin
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
>
>
>


-- 
David Cemin
mobile: +55 51 93523097
home:   +55 51 32763785
email: davidcemin@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 14455 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Xend does not start
@ 2007-08-31 16:35 Kaushik Barde
  0 siblings, 0 replies; 9+ messages in thread
From: Kaushik Barde @ 2007-08-31 16:35 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 301 bytes --]

Hello:
 
We have seen instances of "unable to connect, is xend running?", in
situations where machine was hard-powered down i.e. without proper
shutdown.
 
Even if we try to xend restart, we are unable to start xend.
 
Is there a "reset" or recovery mechanism available?
 
Thanks
-Kaushik

[-- Attachment #1.2: Type: text/html, Size: 1367 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-10-28 14:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-27 19:57 xend does not start David Cemin
2010-10-28 13:17 ` David Cemin
2010-10-28 13:22   ` Keir Fraser
2010-10-28 13:46     ` David Cemin
2010-10-28 14:14       ` Pasi Kärkkäinen
2010-10-28 14:47         ` David Cemin
2010-10-28 14:40       ` Keir Fraser
2010-10-28 14:47         ` David Cemin
  -- strict thread matches above, loose matches on Subject: below --
2007-08-31 16:35 Xend " Kaushik Barde

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.