I'm trying to install Xen 4.0.1 from Source on Ubuntu 10.10 Server Edition. I started with a clean machine and followed the instructions from https://help.ubuntu.com/community/Xen.

So I installed the packages mentioned there with: sudo apt-get install gettext bin86 bcc libc6-dev-i386 iasl texinfo git

When making the source with make world I get this error:

+ git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp
Initialized empty Git repository in /home/homer/xen/linux-2.6-pvops.git.tmp/.git/
remote: Counting objects: 1855434, done.
remote: Compressing objects: 100% (291939/291939), done.
Receiving objects: 100% (1855434/1855434), 368.49 MiB | 11.00 MiB/s, done.
remote: Total 1855434 (delta 1553214), reused 1847760 (delta 1546656)
Resolving deltas: 100% (1553214/1553214), done.
+ cd linux-2.6-pvops.git.tmp
+ git checkout -b xen/stable-2.6.32.x xen/xen/stable-2.6.32.x
fatal: git checkout: branch xen/stable-2.6.32.x already exists
make[3]: *** [linux-2.6-pvops.git/.valid-src] Error 128

Does anybody have an idea what i can do?

link|improve this question

feedback

2 Answers

up vote 2 down vote accepted

edit the following file: ./buildconfigs/src.git-clone (under xen folder)

edit the following line (line 29 in my config)

(cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \

to look like

(cd $(LINUX_SRCDIR).tmp; git checkout ); \
link|improve this answer
feedback

I also need to know how to fix this issue.

It appears that there is already a file named xen in the xen directory where git is trying to check out to...

+ git checkout -b xen/stable-2.6.32.x **xen/xen/stable-2.6.32.x**
fatal: git checkout: branch xen/stable-2.6.32.x already exists

user123@servername:~/xen-4.0.1/xen$ ls -al
total 12280
drwxr-xr-x  9 user123 user123     4096 2010-12-03 07:39 .
drwxr-xr-x 12 user123 user123     4096 2010-12-03 07:39 ..
drwxr-xr-x  4 user123 user123     4096 2010-08-25 04:22 arch
-rw-r--r--  1 user123 user123     1138 2010-12-03 07:38 .banner
drwxr-xr-x  5 user123 user123     4096 2010-12-03 07:39 common
-rw-r--r--  1 user123 user123    19185 2010-08-25 04:22 COPYING
drwxr-xr-x  2 user123 user123     4096 2010-12-03 07:39 crypto
drwxr-xr-x  8 user123 user123     4096 2010-12-03 07:38 drivers
drwxr-xr-x 10 user123 user123     4096 2010-12-03 07:38 include
-rw-r--r--  1 user123 user123     5529 2010-08-25 04:22 Makefile
-rw-r--r--  1 user123 user123     3498 2010-08-25 04:22 Rules.mk
drwxr-xr-x  3 user123 user123     4096 2010-12-03 07:38 tools
-rwxr-xr-x  1 user123 user123  1429772 2010-12-03 07:39 xen
-rw-r--r--  1 user123 user123   679131 2010-12-03 07:39 xen.gz
-rwxr-xr-x  1 user123 user123 10385282 2010-12-03 07:39 xen-syms
drwxr-xr-x  4 user123 user123     4096 2010-12-03 07:39 xsm
link|improve this answer
Hi PaulH, if you have a question to ask, please click the "ask a question" button. This site operates differently to a normal forum. For more details, see The FAQ – Mark Henderson Feb 4 '11 at 5:00
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.