LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Problem with installation of Xen 4.0.1 on Ubuntu 10.10 Server Edition (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/problem-with-installation-of-xen-4-0-1-on-ubuntu-10-10-server-edition-845948/)

Shadower108 11-23-2010 12:34 AM

Problem with installation of Xen 4.0.1 on Ubuntu 10.10 Server Edition
 
Hey all,

I'm attempting to setup xen for virtualization on this new box I built. I have Ubuntu 10.10 Server Edition and using Xen 4.0.1.

BTW, I'm follwing this tutorial: https://help.ubuntu.com/community/Xe... Ubuntu 10.10)

I downloaded the xen source and unpacked it in my home directory. After downloading multiple packages described on the tutorial, I then ran make world.

This is the error I'm receiving:

=== PCI passthrough capability has been enabled ===
make[4]: Entering directory `/home/shadower/xen/xen-4.0.1/tools/ioemu-qemu-xen'
Makefile:4: /rules.mak: No such file or directory
make[4]: *** No rule to make target `/rules.mak'. Stop.
make[4]: Leaving directory `/home/shadower/xen/xen-4.0.1/tools/ioemu-qemu-xen'
make[3]: *** [subdir-clean-ioemu-dir] Error 2
make[3]: Leaving directory `/home/shadower/xen/xen-4.0.1/tools'
make[2]: *** [subdirs-clean] Error 2
make[2]: Leaving directory `/home/shadower/xen/xen-4.0.1/tools'
make[1]: *** [clean] Error 2
make[1]: Leaving directory `/home/shadower/xen/xen-4.0.1'
make: *** [world] Error 2

What's interesting is that the file is there. I changed the directory to /xen-4.0.1/tools/ioemu-qemu-xen/ and saw the file, rules.mak.

When I looked into the file using vim, this is what I see:

1
2 %.o: %.c
3 $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
4
5 %.o: %.S
6 $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@")
7
8 %.o: %.m
9 $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@")
10
11 LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $(TARGET_DIR)$@")
12
13 %$(EXESUF): %.o
14 $(LINK)
15
16 %.a:
17 $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@")
18
19 quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))

So does anyone know what could possibly going wrong with this? I really don't know if I may have missed something on my end, or what.

Any help at this point would be great.

Thanks.

jamesbon 11-23-2010 01:27 AM

put your question https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
it is official Ubuntu users support list
or https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
your question will get more response there.

Shadower108 11-23-2010 03:47 AM

Why would I post it there? Wouldn't it make more sense posting it in the virtualization section of the forum?

Quote:

Originally Posted by jamesbon (Post 4167796)
put your question https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
it is official Ubuntu users support list
or https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
your question will get more response there.


scheidel21 11-24-2010 11:57 AM

Do you actually have the xen-4.0.1 in a folder called xen in your home directory?

When you say you look in the file are your referring to the rules.mak file?

Try recursively moving the xen-4.0.1 build up to the root of the drive or at least to the root of your home folder if it is not and try again.

What are the permissions on the rules.mak file?

Are you building as root, using sudo, as a regular user? Have you tried make world as root or using sudo?

Have you posted this to the XEN lists? If not you might want to shoot over there and ask for advice, this could be a bug.

If I come across anything in my travels I will be sure to let you know.

I compiled XEN-4.0.1pre3 a while back on my debian stable box without this problem. I am not sure if there was any difference between that pre-release and the one you are using.

Shadower108 11-26-2010 04:34 AM

Thanks for the reply scheidel21. I followed the suggestions you offered, and still no success.

I also created another thread on the ubuntu forums, hoping that someone there would be able to help me: http://ubuntuforums.org/showthread.php?t=1627833

The steps I attempted:

1. Used commands make clean and make distclean as pointed out to me on the ubuntu forum by meatpan, hoping that would solve whatever may be going on. This did not change the results.

2. Removed entire xen source folder and xen folder in home directory. I used wget http://bits.xensource.com/oss-xen/re...n-4.0.1.tar.gz to re-download the xen source file and placed it in my home directory. Tried make world, with again same error.

3. Removed entire xen source folder again from home directory. I then again used wget http://bits.xensource.com/oss-xen/re...n-4.0.1.tar.gz in the root of the drive and again attempted make world. As of right now, I'm waiting for it to finish.

4. I looked at the permissions on the rules.mak file, and it is displayed as: -rw-rw-r--

5. When I attempted the make world command in my home directory, I tried with sudo and without.

6. I have not posted this to the XEN lists as of yet. I'm hoping this is more of a user problem than a bug haha...

So still no success, but I won't give up this easily just yet.

Now my question is: is there an easier way? TBH, I was hoping this wouldn't be this difficult. But of course, nothing in linux is easy ;)

After reading the walk-through on the ubuntu xen documentation, they say for my distro, that it should be compiled by hand. But are there easier ways? Anyone out there able to install xen-4.0.1 on Ubuntu 10.10 Server edition?

Thank you scheidel21. I thank you for your input. As any help right now is greatly appreciated. I'm hoping to figure this out sometime soon, as I am going to be bald soon from ripping my hair out... and I'm only 21 ;)


Quote:

Originally Posted by scheidel21 (Post 4169671)
Do you actually have the xen-4.0.1 in a folder called xen in your home directory?

When you say you look in the file are your referring to the rules.mak file?

Try recursively moving the xen-4.0.1 build up to the root of the drive or at least to the root of your home folder if it is not and try again.

What are the permissions on the rules.mak file?

Are you building as root, using sudo, as a regular user? Have you tried make world as root or using sudo?

Have you posted this to the XEN lists? If not you might want to shoot over there and ask for advice, this could be a bug.

If I come across anything in my travels I will be sure to let you know.

I compiled XEN-4.0.1pre3 a while back on my debian stable box without this problem. I am not sure if there was any difference between that pre-release and the one you are using.


jamesbon 11-26-2010 09:09 AM

Quote:

Originally Posted by Shadower108 (Post 4167768)
Hey all,


BTW, I'm follwing this tutorial: https://help.ubuntu.com/community/Xe... Ubuntu 10.10)

Hmmm I had a look at the link you gave can you exactly mention what steps you did from that link.
Since that link also says to install some libraries and they mention ubuntu xen has broken dependencies.
If from that link you tried
Code:

sudo aptitude install xen-image-2.6.19-4-generic-amd64 bridge-utils libxen3.0 python-xen3.0 xen-docs-3.0 xen-hypervisor-3.0 xen-ioemu-3.0 xen-tools xen-utils-3.0
which from your post I see you would not have done but if by mistake you did then you need to remove all of the above.
The link of Ubuntu wiki does not mention how to compile from source that you are trying to do.It also does not mentions any thing to do when some thing goes wrong as is the case right now. I do not have Xen on my laptop neither the Lucid server schiedel21 is talking to post the question on this link
http://lists.xensource.com/mailman/listinfo/xen-users
here developers of Xen are also there so they will address your question directly.


All times are GMT -5. The time now is 10:38 AM.