LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-22-2010, 11:34 PM   #1
Shadower108
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu 10.10 Server
Posts: 6

Rep: Reputation: 0
Unhappy 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.
 
Old 11-23-2010, 12:27 AM   #2
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Rep: Reputation: 9
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.
 
Old 11-23-2010, 02:47 AM   #3
Shadower108
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu 10.10 Server
Posts: 6

Original Poster
Rep: Reputation: 0
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 View Post
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.
 
Old 11-24-2010, 10:57 AM   #4
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
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.
 
Old 11-26-2010, 03:34 AM   #5
Shadower108
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu 10.10 Server
Posts: 6

Original Poster
Rep: Reputation: 0
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 View Post
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.

Last edited by Shadower108; 11-26-2010 at 03:35 AM.
 
Old 11-26-2010, 08:09 AM   #6
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Rep: Reputation: 9
Quote:
Originally Posted by Shadower108 View Post
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.
 
  


Reply

Tags
make, rules, ubuntu, xenvirtualization



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
java1.5 installation error ubuntu 10.04 server edition uname 2.6.32-23-server tkmsr Linux - Software 6 07-03-2010 02:20 AM
After installation of Ubuntu 10.4 server edition screen shuts off Lord Hakk Linux - Server 8 05-25-2010 10:18 AM
LXer: Xen 3.3.1 port to Ubuntu Intrepid Server via Novell’s Xen-ified kernel 2.6.27.5 LXer Syndicated Linux News 0 01-29-2009 07:42 PM
[SOLVED] Strange intermittent permissions problem on Ubuntu 8.04 server edition Plastic Freddie Linux - Server 1 11-17-2008 03:30 AM
Can Ubuntu Server Edition configure RAID during installation? b0uncer Ubuntu 0 06-30-2006 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration