Hi List,
I use Debian Squeeze and I installed the Hypervisor 4.0 package.
After that I compiled Jeremys dom0 Kernel version 2.6.32.35
I can boot the kernel (I guess everything is fine there),
but xend is not starting during the boot..
I receive following error message:
#/etc/init.d/xend start
Starting Xen daemons: xenfs xenstored xenconsoled xendFATAL: Failed to
initialize dom0 state: Invalid argument
Traceback (most recent call last):
File "/usr/lib/xen-4.0/bin/xend", line 38, in<module>
from xen.xend.server import SrvDaemon
File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py",
line 26, in<module>
import relocate
File "/usr/lib/xen-4.0/lib/python/xen/xend/server/relocate.py",
line 28, in<module>
from xen.xend import XendDomain
File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomain.py", line 36,
in<module>
from xen.xend import XendOptions, XendCheckpoint, XendDomainInfo
File "/usr/lib/xen-4.0/lib/python/xen/xend/XendCheckpoint.py", line
23, in<module>
from xen.xend.XendConfig import XendConfig
File "/usr/lib/xen-4.0/lib/python/xen/xend/XendConfig.py", line 29,
in<module>
from xen.xend.XendDPCI import XendDPCI
File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDPCI.py", line 24,
in<module>
import XendDomain, XendNode
File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 36,
in<module>
from XendQCoWStorageRepo import XendQCoWStorageRepo
File "/usr/lib/xen-4.0/lib/python/xen/xend/XendQCoWStorageRepo.py",
line 36, in<module>
from XendStorageRepository import XendStorageRepository
File
"/usr/lib/xen-4.0/lib/python/xen/xend/XendStorageRepository.py", line
21, in<module>
import threading
KeyboardInterrupt
I have no clue what´s going on there.
After some investigations I found out that some other people have the same
problem as well,
but there seems to be no workaround.
Anyone has an idea whats wrong?
Thank you!
Cheers,
Se
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
--- On Wed, 3/30/11, Sebastian Biedermann <biedermann@seceng.informatik.tu-darmstadt.de> wrote:> From: Sebastian Biedermann <biedermann@seceng.informatik.tu-darmstadt.de> > Subject: [Xen-users] Problems starting xend on Squeeze > To: xen-users@lists.xensource.com > Date: Wednesday, March 30, 2011, 4:26 AM > Hi List, > > I use Debian Squeeze and I installed the Hypervisor 4.0 > package. > After that I compiled Jeremys dom0 Kernel version > 2.6.32.35 > > I can boot the kernel (I guess everything is fine there), > but xend is not starting during the boot.. > I receive following error message: > > #/etc/init.d/xend start > Starting Xen daemons: xenfs xenstored xenconsoled > xendFATAL: Failed to initialize dom0 state: Invalid > argumentIt all depends on your config: You are working with init scripts from Debian Squeeze and it expects all CONIFIG_XEN_* values to be =y (static), except these $ grep -i xen ./Desktop/config-2.6.32-5-xen-amd64 | grep =m CONFIG_XEN_BLKDEV_FRONTEND=m CONFIG_NETXEN_NIC=m CONFIG_XEN_NETDEV_FRONTEND=m CONFIG_XEN_DEV_EVTCHN=m CONFIG_XEN_BLKDEV_TAP=m CONFIG_XENFS=m CONFIG_ACPI_PROCESSOR_XEN=m Compare your config values with these and you might find a difference. Always remember that that /proc/xen must be mounted in fstab in Squeeze. BTW, did you consider building Xen from source and using the kernel 2.6.32-5-xen-amd64 included in Squeeze? -- Mark _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sebastian Biedermann
2011-Mar-31 07:54 UTC
Re: [Xen-users] Problems starting xend on Squeeze
>> From: Sebastian Biedermann<biedermann@seceng.informatik.tu-darmstadt.de> >> Subject: [Xen-users] Problems starting xend on Squeeze >> To: xen-users@lists.xensource.com >> Date: Wednesday, March 30, 2011, 4:26 AM >> Hi List, >> >> I use Debian Squeeze and I installed the Hypervisor 4.0 >> package. >> After that I compiled Jeremys dom0 Kernel version >> 2.6.32.35 >> >> I can boot the kernel (I guess everything is fine there), >> but xend is not starting during the boot.. >> I receive following error message: >> >> #/etc/init.d/xend start >> Starting Xen daemons: xenfs xenstored xenconsoled >> xendFATAL: Failed to initialize dom0 state: Invalid >> argument > It all depends on your config: > > You are working with init scripts from Debian Squeeze and it expects all > CONIFIG_XEN_* values to be =y (static), except these > > $ grep -i xen ./Desktop/config-2.6.32-5-xen-amd64 | grep =m > CONFIG_XEN_BLKDEV_FRONTEND=m > CONFIG_NETXEN_NIC=m > CONFIG_XEN_NETDEV_FRONTEND=m > CONFIG_XEN_DEV_EVTCHN=m > CONFIG_XEN_BLKDEV_TAP=m > CONFIG_XENFS=m > CONFIG_ACPI_PROCESSOR_XEN=m > > Compare your config values with these and you might find a difference. Always remember that that /proc/xen must be mounted in fstab in Squeeze. > > BTW, did you consider building Xen from source and using the kernel 2.6.32-5-xen-amd64 included in Squeeze? > >Hi, I checked that out, everything is like you wrote but it´s still not starting. My xend-debug.log says: [2011-03-31 09:30:44 2760] INFO (SrvDaemon:332) Xend Daemon started [2011-03-31 09:30:44 2760] ERROR (SrvDaemon:349) Exception starting xend ((22, ''Invalid argument'')) Traceback (most recent call last): File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line 335, in run xinfo = xc.xeninfo() Error: (22, ''Invalid argument'') [2011-03-31 09:30:44 2759] INFO (SrvDaemon:220) Xend exited with status 1. Do you have an idea what that could be? Thank you very much _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sergio Charpinel Jr.
2011-Mar-31 12:08 UTC
Re: [Xen-users] Problems starting xend on Squeeze
Hi Sebastian, Make sure your xenfs partition is mounted: mount or: grep -q *xenfs* /*etc/fstab* * * *if not:* echo "xenfs /proc/xen xenfs defaults 0 0" >> /etc/fstab mount -a And xen-evtchn module is loaded. Also, start xencommons. Hope this helps 2011/3/31 Sebastian Biedermann <biedermann@seceng.informatik.tu-darmstadt.de>> > From: Sebastian Biedermann<biedermann@seceng.informatik.tu-darmstadt.de> >>> Subject: [Xen-users] Problems starting xend on Squeeze >>> To: xen-users@lists.xensource.com >>> Date: Wednesday, March 30, 2011, 4:26 AM >>> Hi List, >>> >>> I use Debian Squeeze and I installed the Hypervisor 4.0 >>> package. >>> After that I compiled Jeremys dom0 Kernel version >>> 2.6.32.35 >>> >>> I can boot the kernel (I guess everything is fine there), >>> but xend is not starting during the boot.. >>> I receive following error message: >>> >>> #/etc/init.d/xend start >>> Starting Xen daemons: xenfs xenstored xenconsoled >>> xendFATAL: Failed to initialize dom0 state: Invalid >>> argument >>> >> It all depends on your config: >> >> You are working with init scripts from Debian Squeeze and it expects all >> CONIFIG_XEN_* values to be =y (static), except these >> >> $ grep -i xen ./Desktop/config-2.6.32-5-xen-amd64 | grep =m >> CONFIG_XEN_BLKDEV_FRONTEND=m >> CONFIG_NETXEN_NIC=m >> CONFIG_XEN_NETDEV_FRONTEND=m >> CONFIG_XEN_DEV_EVTCHN=m >> CONFIG_XEN_BLKDEV_TAP=m >> CONFIG_XENFS=m >> CONFIG_ACPI_PROCESSOR_XEN=m >> >> Compare your config values with these and you might find a difference. >> Always remember that that /proc/xen must be mounted in fstab in Squeeze. >> >> BTW, did you consider building Xen from source and using the kernel >> 2.6.32-5-xen-amd64 included in Squeeze? >> >> >> > Hi, > > > I checked that out, everything is like you wrote but it´s still not > starting. > My xend-debug.log says: > > [2011-03-31 09:30:44 2760] INFO (SrvDaemon:332) Xend Daemon started > [2011-03-31 09:30:44 2760] ERROR (SrvDaemon:349) Exception starting xend > ((22, ''Invalid argument'')) > > Traceback (most recent call last): > File "/usr/lib/xen-4.0/lib/python/xen/xend/server/SrvDaemon.py", line 335, > in run > xinfo = xc.xeninfo() > Error: (22, ''Invalid argument'') > [2011-03-31 09:30:44 2759] INFO (SrvDaemon:220) Xend exited with status 1. > > > Do you have an idea what that could be? > > Thank you very much > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Sergio Roberto Charpinel Jr. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Mar 31, 2011 at 2:08 PM, Sergio Charpinel Jr. <sergiocharpinel@gmail.com> wrote:> Hi Sebastian, > Make sure your xenfs partition is mounted: > mount > or: > grep -q xenfs /etc/fstab > if not: > echo "xenfs /proc/xen xenfs defaults 0 0" >> /etc/fstab > mount -a > And xen-evtchn module is loaded. > Also, start xencommons. > Hope this helps >Hi, Sorry to hijack this thread, but I have the exact same problem as the OP: newusaxen:~# /etc/init.d/xend start Starting Xen daemons: xenstored xenconsoled xend failed! xenfs is already mounted: xenfs on /proc/xen type xenfs (rw) What else can I do to fix this? -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Motschke
2011-Sep-10 10:13 UTC
Re: [Xen-users] Problems starting xend on Squeeze
Depending on your distribution and kernel you should extend /etc/init.d/xend to
load some additional XEN kernel modules.
modules_setup()
{
modprobe xenfs 2>/dev/null
modprobe xen-evtchn 2>/dev/null
modprobe xen-pciback 2>/dev/null
modprobe xen-blkback 2>/dev/null
modprobe xen-netback 2>/dev/null
}
This helped me on Debian. Maybe this will help one of you too.
Am 10.09.2011 um 11:55 schrieb Rudi Ahlers:
> On Thu, Mar 31, 2011 at 2:08 PM, Sergio Charpinel Jr.
> <sergiocharpinel@gmail.com> wrote:
>> Hi Sebastian,
>> Make sure your xenfs partition is mounted:
>> mount
>> or:
>> grep -q xenfs /etc/fstab
>> if not:
>> echo "xenfs /proc/xen xenfs defaults 0 0" >> /etc/fstab
>> mount -a
>> And xen-evtchn module is loaded.
>> Also, start xencommons.
>> Hope this helps
>>
>
>
>
> Hi,
>
> Sorry to hijack this thread, but I have the exact same problem as the OP:
>
>
> newusaxen:~# /etc/init.d/xend start
> Starting Xen daemons: xenstored xenconsoled xend failed!
>
>
>
>
> xenfs is already mounted:
> xenfs on /proc/xen type xenfs (rw)
>
>
>
> What else can I do to fix this?
> --
> Kind Regards
> Rudi Ahlers
> SoftDux
>
> Website: http://www.SoftDux.com
> Technical Blog: http://Blog.SoftDux.com
> Office: 087 805 9573
> Cell: 082 554 7532
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
On Sat, Sep 10, 2011 at 12:13 PM, Christian Motschke <christian@motschke.de> wrote:> Depending on your distribution and kernel you should extend /etc/init.d/xend to load some additional XEN kernel modules. > > modules_setup() > { > modprobe xenfs 2>/dev/null > modprobe xen-evtchn 2>/dev/null > modprobe xen-pciback 2>/dev/null > modprobe xen-blkback 2>/dev/null > modprobe xen-netback 2>/dev/null > } > > This helped me on Debian. Maybe this will help one of you too. > >Hi, I''m running: newusaxen:~# cat /etc/debian_version 6.0.2 And I think XEN is on 4.0.1, but I can''t check. Those extra options unfortunatelly didn''t help either :( -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Sep 10, 2011 at 12:19 PM, Rudi Ahlers <Rudi@softdux.com> wrote:> On Sat, Sep 10, 2011 at 12:13 PM, Christian Motschke > <christian@motschke.de> wrote: >> Depending on your distribution and kernel you should extend /etc/init.d/xend to load some additional XEN kernel modules. >> >> modules_setup() >> { >> modprobe xenfs 2>/dev/null >> modprobe xen-evtchn 2>/dev/null >> modprobe xen-pciback 2>/dev/null >> modprobe xen-blkback 2>/dev/null >> modprobe xen-netback 2>/dev/null >> } >> >> This helped me on Debian. Maybe this will help one of you too. >> >> > > Hi, > > I''m running: > > newusaxen:~# cat /etc/debian_version > 6.0.2 > > > And I think XEN is on 4.0.1, but I can''t check. > > Those extra options unfortunatelly didn''t help either :( > > > --Ok, I got it working! /var was full, so I presume something that XEN does saves an active state or something in /var somewhere XEN is now running fine after adding 10GB more space to /var - luckily I use LVM for this very reason :) -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi all, I''m having the same problem but I can''t fix it ...
I tell you how I get this error, maybe there is something wrong in the
process.
I have installed Debian squeeze and have installed the Xen hypervisor by
running
aptitude -P install xen-linux-system
apt-get install xen-qemu-dm-4.0 (to get HVM support)
These commands install a fully functional xen system but I want a jeremy
kernel ver2.6.32.45,
so I download it from source and using the actual .config file I change the
options
CONFIG_XENFS=y
CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_PCIDEV_BACKEND_PASS=y
CONFIG_XEN_PCIDEV_BACKEND_VPCI is disabled (as in
http://wiki.xen.org/xenwiki/XenVGAPassthrough)
Well after that I compiled and installed it with:
make
make install
make modules_install
depmod 2.6.32.45
mkinitramfs -k -o /boot/initramfs.img-2.6.32.45 2.6.32.45
update-grub
At this moment I have another entry in grub menu which the new kernel and
with xen installed.
Also I can do ''xm list'' and see Dom0 is running without any
errors so until
here everything is ok.
Now I need to use an specific xen unstable version to apply some patches so
I download it:
hg clone -r 23350
http://xenbits.xensource.com/hg/staging/xen-unstable.hg/ xen_rev23350
Since here I try first without patches:
-First
cd xen_rev23350
make -j4 tools && make -j4 install-tools PYTHON_PREFIX_ARG=
-Then I restarted and I saw how xend couldn''t start normally so I
decided to
install also xen and stubdom:
make -j4 install-xen && make -j4 install-tools PYTHON_PREFIX_ARG=
&&
make -j4 install-stubdom
After restart the problem persist and xend cannot start, also the command
''xenstored'' returns
FATAL: Failed to initialize dom0 state: Invalid argument
I have observed that the directory /proc/xen is empty so I have added the
line ''xenfs /proc/xen xenfs defaults 0 0'' to /etc/fstab and
have restarted
again,
now I have files in /proc/xen (and ''cat
/proc/xen/capabilities'' return me
''control_d'' so Im running Dom0),
but anyways Xend is not running and xenstored returns me the same error, so
the problem is the same as the other people have here.
I have read 2 things in this thread one is that XEN_EVTCHN must be compiled
like a module but I was running XEN with XEN_EVTCHN=y without errors before
so I think this is not the problem,
the other thing is that "/var is full" well, how can I know if my /var
is
full? Despite of dont know if my ''/var'' is full or not I have
try to give it
more space creating a new directory in ''/'' (called /varSize)
copying the
files from /var to the new /varSize and making a symbolic link
(Because I think that if /var has its size limited it is because of the
system or kernel, so a normal directory like /varSize is not limited in the
same way right?)
Commands:
cd /
mkdir varSize
mv /var /varSize
ln -s /varSize/var /
I restart the system again and guest what?! the problem persist...
So please help me ^^ I need to fix this as soon as possible.
-----
JavMV
--
View this message in context:
http://xen.1045712.n5.nabble.com/Problems-starting-xend-on-Squeeze-tp4271295p4826038.html
Sent from the Xen - User mailing list archive at Nabble.com.
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Never mind, I have already fix this idiot thing XD i forgot to update-grub, anyway my procedure was wrong because I was installing 2 differents xen versions and that provokes errors (I just did it to get a properly .config file from the first installation to use it in the jeremy kernel installation) ----- JavMV -- View this message in context: http://xen.1045712.n5.nabble.com/Problems-starting-xend-on-Squeeze-tp4271295p4826672.html Sent from the Xen - User mailing list archive at Nabble.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users