WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Cannot install vnet support in Xen 3.0.3.

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Cannot install vnet support in Xen 3.0.3.
From: "Michel Gauthier" <Michel.Gauthier@xxxxxxxx>
Date: Mon, 13 Nov 2006 14:40:34 +0100
Delivery-date: Mon, 13 Nov 2006 05:41:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B018E16F4@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Mats,
Thanks for your answers, but I don' think that downloading the linux source from kernels.org or some such
is the good solution.
In fact, the directory named /usr/src/redhat/SOURCES/linux-2.6.16.29 contains the linux source, exactly like
pristine-linux-... does.
But when I try to build vnet-module using Makefile.ver, it aborts due to the filename linux-2.6.16.29 instead of pristine-linux-..., and then, after changing pristine-linux by linux inside the script, it aborts one more time, due to the fact that a directory named linux-2.6.16.29-xen, necessary to the script, does not exist. On my mind, the good solution would be a modification of the vnet-module/Makefile.ver script for a good
working with a rpms installation of Xen.
But it may be a "hard" work?

Regards.





----- Original Message ----- From: "Petersson, Mats" <Mats.Petersson@xxxxxxx> To: "Michel Gauthier" <Michel.Gauthier@xxxxxxxx>; <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Friday, November 10, 2006 5:39 PM
Subject: RE: [Xen-users] Cannot install vnet support in Xen 3.0.3.




-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Michel Gauthier
Sent: 10 November 2006 16:27
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Cannot install vnet support in Xen 3.0.3.

Hi,
I've installed a Xen version 3.0.3 from XenSource rpms on my
RHEL 4 Update 2
distro (xen-3.0.3.0-1.i386.rpm,
kernel-xen-2.6.16.29-3.0.3.0.i386.rpm,
xen-devel-3.0.3.0-1.i386.rpm)
I'm now trying to install vnet support as described in Xen 3.0 User's
Manual.
I've first installed xen-3.0.3.0-1.src.rpm package:
rpm -ivh xen-3.0.3.0-1.src.rpm
This package installation creates the following files:
in /usr/src/redhat/SOURCES directory:
-rw-r--r--   1 root root 40835061 Oct 15 15:29 linux-2.6.16.29.tar.bz2
-rw-r--r--   1 root root  4587164 Oct 16 15:13
xen-3.0.3-testing-local_2006-10-16-14-13-24+0100_57fa367206fb.tar.bz2
in /usr/src/redhat/SPECS directory:
-rw-r--r--  1 root root 8673 Oct 16 15:13
xen-3.0.3-testing-local_2006-10-16-14-13-24+0100_57fa367206fb.spec

Then I've extracted the tar.bz2 files:
tar -tjvf linux-2.6.16.29.tar.bz2
tar -tjvf
xen-3.0.3-testing-local_2006-10-16-14-13-24+0100_57fa367206fb.tar.bz2

These extractions create the following directories:
/usr/src/redhat/SOURCES/linux-2.6.16.29
/usr/src/redhat/SOURCES/xen-3.0.3-testing-local_2006-10-16-14-
13-24+0100_57fa367206fb

Finally, I make the vnet installation by executing make install into
/usr/src/redhat/SOURCES/xen-3.0.3-testing-local_2006-10-16-14-
13-24+0100_57fa367206fb/tools/vnet
directory

The following error messages are displayed when processing
the vnet-module
directory:

make -C vnet-module all
make[1]: Entering directory
`/usr/src/redhat/SOURCES/xen-3.0.3-testing-local_2006-10-16-14
-13-24+0100_57fa367206fb/tools/vnet/vnet-module'
Makefile.ver:28: *** Kernel source for linux 2.6 not found.  Stop.
make[1]: Leaving directory
`/usr/src/redhat/SOURCES/xen-3.0.3-testing-local_2006-10-16-14
-13-24+0100_57fa367206fb/tools/vnet/vnet-module'
make: *** [vnet-module-all] Error 2

The Makefile.ver file in vnet-module directory contains the
following lines:
LINUX_VERSION?=$(shell (/bin/ls -d
$(XEN_ROOT)/pristine-linux-$(LINUX_SERIES).* 2>/dev/null) | \
                      sed -e 's!^.*linux-\(.\+\)!\1!' )

ifeq ($(LINUX_VERSION),)
$(error Kernel source for linux $(LINUX_SERIES) not found)
endif

$XEN_ROOT is not defined and pristine-linux-$(LINUX_SERIES).*
directories do
not exist in this installation context (by using rpms).
So, the vnet installation aborts.

In addition to previous post:
Ah, sorry, the pristine-linux-... Is created by the main Xen makefile,
by downloading the linux source from kernels.org or some such.

Once you have a pristine linux, you can probably do the steps I
suggested.

It may work to try to prepare the kernel by make prep-kernels as well -
I didn't want to upset my tree by doing a clean and try that...

--
Mats

What can I do?

Regards,
Michel Gauthier.


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






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

<Prev in Thread] Current Thread [Next in Thread>