*Hello All,* I am a newbie to Linux and Xen. I tried compiling Xen Source code (I want to make some changes and see how it works), but it failed on my system as it couldn''t find gnu-stubs32.h. Later, on looking at Makefile, I figured out that for x86_64, it is not yet supported !! So, what should I do for compiling, I have 64-bit OpenSUSE 11.4 (for Dom0). Should I compile the Linux 32-bit source code first? (And if yes, how should I make it Xen aware?) Can I have both 64-bit, and 32-bit kernel together? Currently, I have following configuration cadlab:~/Downloads/xen-4.1.2 # uname -a Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64 x86_64 x86_64 GNU/Linux And, can I contribute towards 64-bit compatibility on Xen source code build. * ---------------------------- Thanks & Regards Mohit Dhingra * _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
*Hello All,*
I am a newbie to Linux and Xen. I tried compiling Xen Source code (I want
to make some changes and see how it works), but it failed on my system as
it couldn''t find gnu-stubs32.h. Later, on looking at Makefile, I
figured
out that for x86_64, it is not yet supported !!
Then I installed "32-bit" emulation utility for x86-64.
and I tried compiling by "linux32" terminal.
Here, I get following error :
make[5]: Entering directory `/srv/xen-4.1.2/tools/blktap/drivers''
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing
-std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .block-qcow2.o.d
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror
-Wno-unused -I../lib
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/libxc
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/include
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/xenstore
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/include -I
../../libaio/src -I ../../memshr -D_GNU_SOURCE -DUSE_GCRYPT -DMEMSHR -c -o
block-qcow2.o block-qcow2.c
cc1: warnings being treated as errors
block-qcow2.c: In function ‘bdrv_pread’:
block-qcow2.c:238:4: error: format ‘%#llx’ expects type ‘long long unsigned
int’, but argument 5 has type ‘__off_t’
make[5]: *** [block-qcow2.o] Error 1
block-qcow2.c
------------------------------------------------------------------------------------------------------------------
static int bdrv_pread(int fd, int64_t offset, void *buf, int count)
{
int ret;
if (lseek(fd, offset, SEEK_SET) == -1) {
DPRINTF("bdrv_pread failed seek
(%#"PRIx64").\n", offset);
return -1;
}
ret = read(fd, buf, count);
if (ret < 0) {
if (lseek(fd, 0, SEEK_END) >= offset) {
DPRINTF("bdrv_pread read failed
(%#"PRIx64", END %#"PRIx64").\n",
offset, lseek(fd, 0, SEEK_END));
return -1;
}
/* Read beyond end of file. Reading zeros. */
memset(buf, 0, count);
ret = count;
} else if (ret < count) {
/* Read beyond end of file. Filling up with zeros. */
memset(buf + ret, 0, count - ret);
ret = count;
}
return ret;
}
------------------------------------------------------------------------------------------------------------------------
Currently, I have following configuration
cadlab:~/Downloads/xen-4.1.2 # uname -a
Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64
x86_64 x86_64 GNU/Linux
And, can I contribute towards 64-bit compatibility on Xen source code build.
*
----------------------------
Thanks & Regards
Mohit Dhingra
*
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote:> Hello All, > > I am a newbie to Linux and Xen. I tried compiling Xen Source code (I > want to make some changes and see how it works), but it failed on my > system as it couldn''t find gnu-stubs32.h. Later, on looking at > Makefile, I figured out that for x86_64, it is not yet supported !!x86_64 is very much supported, in fact a 64 bit hypervisor is the preferred configuration (with 32 or 64 tools depending on your chosen dom0 configuration). What did you see in the Makefile which made you think otherwise? WRT gnu-stubs32.h I suspect you are missing some -devel package or other. I don''t know about how SuSE lays things out but you should locate the package containing this file and install it. Googling suggests that perhaps you meant gnu/stubs32.h? In which case you probably want to install glibc-devel. If you need to post again then please include a build log, including the exact make command and the last page or so of the output (i.e. including all of the error message).> Then I installed "32-bit" emulation utility for x86-64. > and I tried compiling by "linux32" terminal.Cross compiling requires much more effort than that. I suggest you don''t go down that path. Ian.
On Mon, Apr 02, Ian Campbell wrote:> On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote: > > Hello All, > > > > I am a newbie to Linux and Xen. I tried compiling Xen Source code (I > > want to make some changes and see how it works), but it failed on my > > system as it couldn''t find gnu-stubs32.h. Later, on looking at > > Makefile, I figured out that for x86_64, it is not yet supported !!> WRT gnu-stubs32.h I suspect you are missing some -devel package or > other. I don''t know about how SuSE lays things out but you should locate > the package containing this file and install it. Googling suggests that > perhaps you meant gnu/stubs32.h? In which case you probably want to > install glibc-devel.Running configure and/or make in a 32bit shell is not needed. "zypper in gcc-32bit glibc-devel-32bit" will install the required packages to compile the 32bit parts in the firmware. Olaf
*Hi Ian/All,* I am sorry, I was mistaken by "For now, a 32 bits host environnment is necessary to build successfuly. building on a 64 bits host machine is not yet supported" in http://xen.org/products/xci_source.html Well, I am now able to build the xen binary image xen4.1.2, (after installing the missing packages as suggested by you) -rw-r--r-- 1 root root 691748 Jul 27 2011 xen-4.0.2_52-0.2.1.gz lrwxrwxrwx 1 root root 21 Feb 9 23:49 xen-4.0.gz -> xen-4.0.2_52-0.2.1.gz -rw-r--r-- 1 root root 734699 Apr 7 11:39 xen-4.1.2.gz lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.1.gz -> xen-4.1.2.gz lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.gz -> xen-4.1.2.gz I earlier had the xen-4.0.2 installed through zypper in Dom0 (opensuse 11.4) (cadlab:/srv/xen-4.1.2 # uname -a Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64 x86_64 x86_64 GNU/Linux ) But xm commands are not working now. cadlab:/srv/xen-4.1.2 # xm list Error: Unable to connect to xend: Connection refused. Is xend running? Is it not compatible with the openSUSE11.4? Or is there something which I am missing out. * ---------------------------- Thanks & Regards Mohit Dhingra +919611190435* On 2 April 2012 14:51, Olaf Hering <olaf@aepfle.de> wrote:> On Mon, Apr 02, Ian Campbell wrote: > > > On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote: > > > Hello All, > > > > > > I am a newbie to Linux and Xen. I tried compiling Xen Source code (I > > > want to make some changes and see how it works), but it failed on my > > > system as it couldn''t find gnu-stubs32.h. Later, on looking at > > > Makefile, I figured out that for x86_64, it is not yet supported !! > > > WRT gnu-stubs32.h I suspect you are missing some -devel package or > > other. I don''t know about how SuSE lays things out but you should locate > > the package containing this file and install it. Googling suggests that > > perhaps you meant gnu/stubs32.h? In which case you probably want to > > install glibc-devel. > > Running configure and/or make in a 32bit shell is not needed. > "zypper in gcc-32bit glibc-devel-32bit" will install the required > packages to compile the 32bit parts in the firmware. > > Olaf >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Redirecting to xen-uers@ where this belongs. On Sat, 2012-04-07 at 07:25 +0100, Mohit Dhingra wrote:> Hi Ian/All, > > I am sorry, I was mistaken by "For now, a 32 bits host environnment is > necessary to build successfuly. building on a 64 bits host machine is > not yet supported" in http://xen.org/products/xci_source.html > > Well, I am now able to build the xen binary image xen4.1.2, (after > installing the missing packages as suggested by you) > > -rw-r--r-- 1 root root 691748 Jul 27 2011 xen-4.0.2_52-0.2.1.gz > lrwxrwxrwx 1 root root 21 Feb 9 23:49 xen-4.0.gz -> > xen-4.0.2_52-0.2.1.gz > -rw-r--r-- 1 root root 734699 Apr 7 11:39 xen-4.1.2.gz > lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.1.gz -> > xen-4.1.2.gz > lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.gz -> xen-4.1.2.gz > > I earlier had the xen-4.0.2 installed through zypper in Dom0 (opensuse > 11.4)You removed this before installing 4.1?> (cadlab:/srv/xen-4.1.2 # uname -a > Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64 > x86_64 x86_64 GNU/Linux > ) > > > But xm commands are not working now. > > cadlab:/srv/xen-4.1.2 # xm list > Error: Unable to connect to xend: Connection refused. Is xend running? > > Is it not compatible with the openSUSE11.4? Or is there something > which I am missing out.Please check the logs under /var/log/xen/ for clues. Note that xm is going to be deprecated in 4.2 so you might want to consider using the new xl toolstack instead. Ian.> > ---------------------------- > > Thanks & Regards > Mohit Dhingra > +919611190435 > > > On 2 April 2012 14:51, Olaf Hering <olaf@aepfle.de> wrote: > On Mon, Apr 02, Ian Campbell wrote: > > > On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote: > > > Hello All, > > > > > > I am a newbie to Linux and Xen. I tried compiling Xen > Source code (I > > > want to make some changes and see how it works), but it > failed on my > > > system as it couldn''t find gnu-stubs32.h. Later, on > looking at > > > Makefile, I figured out that for x86_64, it is not yet > supported !! > > > > WRT gnu-stubs32.h I suspect you are missing some -devel > package or > > other. I don''t know about how SuSE lays things out but you > should locate > > the package containing this file and install it. Googling > suggests that > > perhaps you meant gnu/stubs32.h? In which case you probably > want to > > install glibc-devel. > > > Running configure and/or make in a 32bit shell is not needed. > "zypper in gcc-32bit glibc-devel-32bit" will install the > required > packages to compile the 32bit parts in the firmware. > > Olaf >
Redirecting to xen-uers@ where this belongs. On Sat, 2012-04-07 at 07:25 +0100, Mohit Dhingra wrote:> Hi Ian/All, > > I am sorry, I was mistaken by "For now, a 32 bits host environnment is > necessary to build successfuly. building on a 64 bits host machine is > not yet supported" in http://xen.org/products/xci_source.html > > Well, I am now able to build the xen binary image xen4.1.2, (after > installing the missing packages as suggested by you) > > -rw-r--r-- 1 root root 691748 Jul 27 2011 xen-4.0.2_52-0.2.1.gz > lrwxrwxrwx 1 root root 21 Feb 9 23:49 xen-4.0.gz -> > xen-4.0.2_52-0.2.1.gz > -rw-r--r-- 1 root root 734699 Apr 7 11:39 xen-4.1.2.gz > lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.1.gz -> > xen-4.1.2.gz > lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.gz -> xen-4.1.2.gz > > I earlier had the xen-4.0.2 installed through zypper in Dom0 (opensuse > 11.4)You removed this before installing 4.1?> (cadlab:/srv/xen-4.1.2 # uname -a > Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64 > x86_64 x86_64 GNU/Linux > ) > > > But xm commands are not working now. > > cadlab:/srv/xen-4.1.2 # xm list > Error: Unable to connect to xend: Connection refused. Is xend running? > > Is it not compatible with the openSUSE11.4? Or is there something > which I am missing out.Please check the logs under /var/log/xen/ for clues. Note that xm is going to be deprecated in 4.2 so you might want to consider using the new xl toolstack instead. Ian.> > ---------------------------- > > Thanks & Regards > Mohit Dhingra > +919611190435 > > > On 2 April 2012 14:51, Olaf Hering <olaf@aepfle.de> wrote: > On Mon, Apr 02, Ian Campbell wrote: > > > On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote: > > > Hello All, > > > > > > I am a newbie to Linux and Xen. I tried compiling Xen > Source code (I > > > want to make some changes and see how it works), but it > failed on my > > > system as it couldn''t find gnu-stubs32.h. Later, on > looking at > > > Makefile, I figured out that for x86_64, it is not yet > supported !! > > > > WRT gnu-stubs32.h I suspect you are missing some -devel > package or > > other. I don''t know about how SuSE lays things out but you > should locate > > the package containing this file and install it. Googling > suggests that > > perhaps you meant gnu/stubs32.h? In which case you probably > want to > > install glibc-devel. > > > Running configure and/or make in a 32bit shell is not needed. > "zypper in gcc-32bit glibc-devel-32bit" will install the > required > packages to compile the 32bit parts in the firmware. > > Olaf >
*Hi Ian/All,*
Thanks for your prompt reply.
No, I didn''t remove the earlier Xen version earlier, but now I have
done
so, and installed the new Xen4.1.2 again.
"xm" commands are still not running, Using "xl" commands, I
get the
following error:
cadlab:/srv/xen-4.1.2 # xl list
libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running?
failed to stat /var/run/xenstored.pid: No such file or directory
cannot init xl context
cadlab:/srv/xen-4.1.2 # xenstored
cadlab:/srv/xen-4.1.2 # FATAL: Failed to open evtchn device: No such file
or directory
cadlab:/etc/init.d # ps -A | grep xen
23 ? 00:00:00 xenwatch
24 ? 00:00:00 xenbus
3226 ? 00:00:00 xend
3228 ? 00:00:00 xend
On googling, I found the following old discussion, but the thread closed
without any solution it seems.
http://old-list-archives.xen.org/archives/html/xen-users/2011-08/msg00083.html
xend logs :
----------------------------------------------------------------------------------------------------------------------
[2012-04-07 16:20:56 3752] INFO (SrvDaemon:332) Xend Daemon started
[2012-04-07 16:20:56 3752] INFO (SrvDaemon:336) Xend changeset: unavailable.
[2012-04-07 16:20:56 3752] DEBUG (tcp:96) Listening on :8002
[2012-04-07 16:20:56 3752] INFO (XendNetwork:114) Not recreating missing
unmanaged network pbr0
[2012-04-07 16:20:56 3752] INFO (XendNetwork:114) Not recreating missing
unmanaged network br0
[2012-04-07 16:20:56 3752] DEBUG (XendNode:332) pscsi record count: 4
[2012-04-07 16:20:56 3752] DEBUG (XendCPUPool:747) recreate_active_pools
[2012-04-07 16:20:56 3752] ERROR (SrvDaemon:349) Exception starting xend
((19, ''No such device''))
Traceback (most recent call last):
File
"/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDaemon.py",
line 341, in run
servers = SrvServer.create()
File
"/usr/lib64/python2.7/site-packages/xen/xend/server/SrvServer.py",
line 258, in create
root.putChild(''xend'', SrvRoot())
File
"/usr/lib64/python2.7/site-packages/xen/xend/server/SrvRoot.py",
line 40, in __init__
self.get(name)
File "/usr/lib64/python2.7/site-packages/xen/web/SrvDir.py", line
84, in
get
val = val.getobj()
File "/usr/lib64/python2.7/site-packages/xen/web/SrvDir.py", line
52, in
getobj
self.obj = klassobj()
File
"/usr/lib64/python2.7/site-packages/xen/xend/server/SrvNode.py",
line 30, in __init__
self.xn = XendNode.instance()
File "/usr/lib64/python2.7/site-packages/xen/xend/XendNode.py", line
1181, in instance
inst = XendNode()
File "/usr/lib64/python2.7/site-packages/xen/xend/XendNode.py", line
163,
in __init__
self._init_cpu_pools()
File "/usr/lib64/python2.7/site-packages/xen/xend/XendNode.py", line
382,
in _init_cpu_pools
XendCPUPool.recreate_active_pools()
File "/usr/lib64/python2.7/site-packages/xen/xend/XendCPUPool.py",
line
754, in recreate_active_pools
uuid = xstransact.Read(path, ''uuid'')
File
"/usr/lib64/python2.7/site-packages/xen/xend/xenstore/xstransact.py",
line
307, in Read
return complete(path, lambda t: t.read(*args))
File
"/usr/lib64/python2.7/site-packages/xen/xend/xenstore/xstransact.py",
line
361, in complete
t = xstransact(path)
File
"/usr/lib64/python2.7/site-packages/xen/xend/xenstore/xstransact.py",
line
29, in __init__
self.transaction = xshandle().transaction_start()
Error: (19, ''No such device'')
------------------------------------------------------------------------------------------------------------------------
There is not xenstored in /etc/init.d also.
In /var/run, I have
cadlab:/var/run/xenstored # ls
socket socket_ro
*----------------------------
**Thanks & Regards
Mohit Dhingra
+919611190435*
On 7 April 2012 13:00, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> Redirecting to xen-uers@ where this belongs.
>
> On Sat, 2012-04-07 at 07:25 +0100, Mohit Dhingra wrote:
> > Hi Ian/All,
> >
> > I am sorry, I was mistaken by "For now, a 32 bits host
environnment is
> > necessary to build successfuly. building on a 64 bits host machine is
> > not yet supported" in http://xen.org/products/xci_source.html
> >
> > Well, I am now able to build the xen binary image xen4.1.2, (after
> > installing the missing packages as suggested by you)
> >
> > -rw-r--r-- 1 root root 691748 Jul 27 2011 xen-4.0.2_52-0.2.1.gz
> > lrwxrwxrwx 1 root root 21 Feb 9 23:49 xen-4.0.gz ->
> > xen-4.0.2_52-0.2.1.gz
> > -rw-r--r-- 1 root root 734699 Apr 7 11:39 xen-4.1.2.gz
> > lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.1.gz ->
> > xen-4.1.2.gz
> > lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.gz ->
xen-4.1.2.gz
> >
> > I earlier had the xen-4.0.2 installed through zypper in Dom0 (opensuse
> > 11.4)
>
> You removed this before installing 4.1?
>
> > (cadlab:/srv/xen-4.1.2 # uname -a
> > Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64
> > x86_64 x86_64 GNU/Linux
> > )
> >
> >
> > But xm commands are not working now.
> >
> > cadlab:/srv/xen-4.1.2 # xm list
> > Error: Unable to connect to xend: Connection refused. Is xend running?
> >
> > Is it not compatible with the openSUSE11.4? Or is there something
> > which I am missing out.
>
> Please check the logs under /var/log/xen/ for clues.
>
> Note that xm is going to be deprecated in 4.2 so you might want to
> consider using the new xl toolstack instead.
>
> Ian.
>
> >
> > ----------------------------
> >
> > Thanks & Regards
> > Mohit Dhingra
> > +919611190435
> >
> >
> > On 2 April 2012 14:51, Olaf Hering <olaf@aepfle.de> wrote:
> > On Mon, Apr 02, Ian Campbell wrote:
> >
> > > On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote:
> > > > Hello All,
> > > >
> > > > I am a newbie to Linux and Xen. I tried compiling
Xen
> > Source code (I
> > > > want to make some changes and see how it works), but
it
> > failed on my
> > > > system as it couldn''t find gnu-stubs32.h.
Later, on
> > looking at
> > > > Makefile, I figured out that for x86_64, it is not
yet
> > supported !!
> >
> >
> > > WRT gnu-stubs32.h I suspect you are missing some -devel
> > package or
> > > other. I don''t know about how SuSE lays things
out but you
> > should locate
> > > the package containing this file and install it. Googling
> > suggests that
> > > perhaps you meant gnu/stubs32.h? In which case you
probably
> > want to
> > > install glibc-devel.
> >
> >
> > Running configure and/or make in a 32bit shell is not needed.
> > "zypper in gcc-32bit glibc-devel-32bit" will install
the
> > required
> > packages to compile the 32bit parts in the firmware.
> >
> > Olaf
> >
>
>
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
On Sat, 2012-04-07 at 12:04 +0100, Mohit Dhingra wrote:> Hi Ian/All, > > Thanks for your prompt reply. > > No, I didn''t remove the earlier Xen version earlier, but now I have > done so, and installed the new Xen4.1.2 again. > > "xm" commands are still not running, Using "xl" commands, I get the > following error: > > cadlab:/srv/xen-4.1.2 # xl list > libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running? > failed to stat /var/run/xenstored.pid: No such file or directory > cannot init xl contextYou need to arrange for the "xencommons" initscript to run on boot.> cadlab:/srv/xen-4.1.2 # xenstored > cadlab:/srv/xen-4.1.2 # FATAL: Failed to open evtchn device: No such > file or directoryYou need to load the xen-evtch module. xencommons would have done this for you. Ian.
Thanks Ian, After I inserted evtchn.ko, xenstored started fine and then xencommons script. * ---------------------------- Thanks & Regards Mohit Dhingra +919611190435* On 7 April 2012 16:43, Ian Campbell <Ian.Campbell@citrix.com> wrote:> On Sat, 2012-04-07 at 12:04 +0100, Mohit Dhingra wrote: > > Hi Ian/All, > > > > Thanks for your prompt reply. > > > > No, I didn''t remove the earlier Xen version earlier, but now I have > > done so, and installed the new Xen4.1.2 again. > > > > "xm" commands are still not running, Using "xl" commands, I get the > > following error: > > > > cadlab:/srv/xen-4.1.2 # xl list > > libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running? > > failed to stat /var/run/xenstored.pid: No such file or directory > > cannot init xl context > > You need to arrange for the "xencommons" initscript to run on boot. > > > cadlab:/srv/xen-4.1.2 # xenstored > > cadlab:/srv/xen-4.1.2 # FATAL: Failed to open evtchn device: No such > > file or directory > > You need to load the xen-evtch module. xencommons would have done this > for you. > > Ian. > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users