LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2010, 12:17 AM   #1
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Rep: Reputation: 3
Unhappy can't seem to get spice installed


I'm still pretty green with all this. Installing spice is my first attempt at compiling anything from source and it has been an incredible headache so far. After going round and round for 3 hours chasing missing dependencies I'm finally stuck at a place where I don't know how to proceed.

According to the instructions I'm following: "In case of an older kernel (version < 2.6.30)
Get kernel sources using the following git repository:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.30.y.git
cd <spice_root>/vdesktop/kernel
./configure
ln -s <linux-2.6.30 source dir> linux-2.6
make sync
make "

Unfortunately my CentOS box (the one I'm working on) doesn't have internet capability, so I have to download everything on my windows box and burn it to cd. So I downloaded the 2.6.30 source from kernel.org, copied it to my CentOS box and unpacked it. I got as far as "make sync" in those instructions before I hit the next snag. When I tried to "make" it gave me an error "/lib/modules/2.6.18-194.el5/build no such file or directory"

When I look for the referenced "build" file, it says link broken and when I follow the link to "/usr/src/kernels/2.6.18-194.el5-x86_64" which does in fact not exist. So a quick google search reveals I need the source for my current kernel in addition to the 2.6.30 kernel source. Cripes! The instructions here: http://wiki.centos.org/HowTos/I_need_the_Kernel_Source for the full kernel source look hugely complicated and involve rpms which is something I know nothing about. I tried to yum install kernel-devel hoping that would appease the unhappy make build, but I'm limited to installing things on the CentOS install DVD and yum tells me "error downloading packages" from the DVD repo, so I guess the source files are not the DVD? To top it all off, I only have 30 Mb of free space left on this drive anyhow, so I don't think there is room download the whole source anyway unless I put it on cd and mount it or link to it somehow in ways that make my tired brain hurt.

So can anyone tell me whether I need the (smaller) kernel-devel or the full blown source and where to get it and how to make it fit onto my increasingly tiny hda??? Please?
 
Old 05-19-2010, 12:45 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Installing spice is my first attempt at compiling anything from source
can you post a link to that software ?
The spice i know is this - the naif kernels
http://naif.jpl.nasa.gov/naif/



and for things like the kernel source DO NOT use kernel.org
use a centOS mirror and dl from that
example -- from here
http://mirror.web-ster.com/centos/5.5/os/
the -devel rpm's
kernel-devel-2.6.18-194.el5.i686.rpm

a kernel source MUST MATCH the installed version
 
Old 05-19-2010, 10:33 AM   #3
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by John VV View Post
can you post a link to that software ?
The spice i know is this - the naif kernels
http://naif.jpl.nasa.gov/naif/
Sure, it's at http://www.spice-space.org/docs/spice_user_manual.pdf

Quote:
Originally Posted by John VV View Post
and for things like the kernel source DO NOT use kernel.org
use a centOS mirror and dl from that
example -- from here
http://mirror.web-ster.com/centos/5.5/os/
the -devel rpm's
kernel-devel-2.6.18-194.el5.i686.rpm

a kernel source MUST MATCH the installed version
Wait, what? I thought the instructions said I needed the source for a particular kernerl version, version 2.6.30. So really I need BOTH kernels, right? Or am I misunderstanding something?
 
Old 05-19-2010, 11:11 AM   #4
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
I didn't read the instructions through, but do you have to have a minimum kernel version? maybe you need to update your kernel to the version required. If not then, yes you probably need both the installed kernel source and possibly the newer one. Their installer make script may require code or information from the newer kernel to include in a module being built for your installed kernel. You would need to current kernels code to compile the module against.
 
Old 05-19-2010, 02:31 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
my recommendation
get the CentOS 5.5 installed AND connected to the net

get these two things done FIRST

this IS a Cloud app to begin with so it needs to be connected to the net

Last edited by John VV; 05-19-2010 at 02:34 PM.
 
Old 05-19-2010, 05:50 PM   #6
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
I'm not really sure what the installer is doing. The relevant portion of the instructions state:
Quote:
Originally Posted by shadowbox12 View Post
According to the instructions I'm following: "In case of an older kernel (version < 2.6.30)
Get kernel sources using the following git repository:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.30.y.git
cd <spice_root>/vdesktop/kernel
./configure
ln -s <linux-2.6.30 source dir> linux-2.6
make sync
make "
It's having me make a link and then there is this "make sync" business. I guess it needs both. The good news is the older kernel is MUCH smaller so I might be able to fit both on my hda. But can I delete them after I'm done building this or must I keep them?

Also, regarding getting the host on the net: Yeah that would make things easier. But that would be a whole separate issue and I'm trying to focus on one thing at a time. I passed through my USB NIC to the guest and don't know how to "unpass-it-through" back to my host. There was a bit where I had to rmmod to remove it and I tried modprobe to bring it back but that didn't work. Anyway I'm not even sure I'm going to keep CentOS 5.5 if I can't get spice working and sound in my VM. I may just skip ahead to RHEL 6 Beta and see if that works better. But I'd rather stick with a stable release if I can get the thing to actually work.
 
Old 05-19-2010, 07:37 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Also, regarding getting the host on the net: Yeah that would make things easier. But that would be a whole separate issue and I'm trying to focus on one thing at a time.
whatever... but this is a cloud software so don't you think getting on the net FIRST might be a good idea??

have you looked through the mailing list?
http://lists.freedesktop.org/mailman...fo/spice-devel

and this is still alpha software it is only at 0.4 ( not even at version 1.0 yet )

and from here
http://www.spice-space.org/download.html
why do you NOT put it on the experimental fedora
it states there is a fedora 12 rpm
fedora 13 is out ( i think)

Last edited by John VV; 05-19-2010 at 07:45 PM.
 
Old 05-19-2010, 10:26 PM   #8
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by John VV View Post
whatever... but this is a cloud software so don't you think getting on the net FIRST might be a good idea??
Ah, I get you now. Spice is used for remote administration and such, so it could be considered a cloud app I guess, but I'm not using it for that. I'm just trying to use it to manage my local VM, since the VNC that comes default doesn't support sound. (Apparently- I haven't gotten confirmation on that) I don't have much need to have net access on the host since I have net access on the VM, so it hasn't been a big priority so far.

Quote:
Originally Posted by John VV View Post
have you looked through the mailing list?
http://lists.freedesktop.org/mailman...fo/spice-devel
Ah! No, I hadn't seen that previously. That looks like a good resource. Thanks!

Quote:
Originally Posted by John VV View Post
and this is still alpha software it is only at 0.4 ( not even at version 1.0 yet )
:$ Hrmmm, yeah I know. Not my first choice. My first choice is the default VNC that is integrated into everything and has a nice GUI. But either VNC doesn't support sound or I am doing it wrong. Ref this thread: http://www.centos.org/modules/newbb/...26022&forum=37

Quote:
Originally Posted by John VV View Post
and from here
http://www.spice-space.org/download.html
why do you NOT put it on the experimental fedora
it states there is a fedora 12 rpm
fedora 13 is out ( i think)
Yeah, that's the next logical step if I can't get it to work in CentOS. I feel like I'm pretty close to getting it though. (famous last words)
 
Old 05-20-2010, 05:52 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Interesting. I didn't know Redhat had allowed spice to escape - I thought they only licensed it through RHEL virtualization products (since they acquired it with the purchase of Qumranet).
Similar to the spacewalk project I guess.
Might have to have a look at it.

Last edited by syg00; 05-20-2010 at 05:53 AM.
 
Old 05-20-2010, 07:17 AM   #10
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
What virtualization platform are you using? You can delete kernel sources after using them. It might have been easier to look at alternatives to VNS for managing your VM than trying to get spice up and running.
 
Old 05-20-2010, 02:57 PM   #11
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by scheidel21 View Post
What virtualization platform are you using? You can delete kernel sources after using them. It might have been easier to look at alternatives to VNS for managing your VM than trying to get spice up and running.
Glad to hear I can dump the kernel when I'm done, its eating up a big chuck of space. It may well end up being easier to look into alternatives other than spice and VNC. What would those alternatives be?
 
Old 05-20-2010, 04:01 PM   #12
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Well depending on your virtualization their remote console may or may not support sound. So that's why I was wondering about what you are using, for instance VirtualBox remote console access uses RDP and that supports sound. Also their is an RDP implentation project for linux, I forget the name but it's like terminal services for Linux that might support your needs. Not 100% sure all the possibilities out there. Have you tried just running vncserver on your guest OS I think VNC server supports sound.
 
Old 05-20-2010, 08:03 PM   #13
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
I'm using kvm for virtualization. I'd very much like to know if there are easier ways to connect to my guest and get sound. Is the RDP solution you are thinking of this? http://www.rdesktop.org/
If so it only includes a client, not a server. As for VNCserver, I thought that was the default? Or are you talking about a separate VNC instance? Maybe another implementation? Most VNC implementations don't support sound, but some do. http://en.wikipedia.org/wiki/Compari...sktop_software
 
Old 05-21-2010, 05:48 PM   #14
shadowbox12
Member
 
Registered: Mar 2010
Posts: 52

Original Poster
Rep: Reputation: 3
Well, I installed the devel-kernel for CentOS that was missing and ran the "make" again. It gave a bunch of errors I don't understand. I posted a query to spice-dev list posted earlier but no one responded. I have no idea what to do next. Help?

Here are the errors:

Now when I run "make" it gives a number of errors:

[root@localhost kernel]# make
make -C /lib/modules/2.6.18-194.el5/build M=`pwd` \
LINUXINCLUDE="-I`pwd`/include -Iinclude \
-Iarch/x86/include -I`pwd`/include-compat -I`pwd`/x86 \
-include include/linux/autoconf.h \
-include `pwd`/x86/external-module-compat.h" \
"$@"
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-x86_64'
LD /usr/local/src/spice_root/vdesktop/kernel/x86/built-in.o
CC [M] /usr/local/src/spice_root/vdesktop/kernel/x86/svm.o
In file included from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:12:
error: redefinition of typedef ‘phys_addr_t’
include/asm/types.h:50: error: previous declaration of ‘phys_addr_t’
was here
In file included from
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:16,
from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/../external-module-compat-comm.h:602:
error: static declaration of ‘get_user_pages_fast’ follows
non-static declaration
include/linux/mm.h:856: error: previous declaration of
‘get_user_pages_fast’ was here
In file included from
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:16,
from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/../external-module-compat-comm.h:710:
error: conflicting types for ‘smp_call_function_many’
include/asm/smp.h:54: error: previous declaration of
‘smp_call_function_many’ was here
In file included from
/usr/local/src/spice_root/vdesktop/kernel/x86/external-module-compat.h:16,
from <command line>:1:
/usr/local/src/spice_root/vdesktop/kernel/x86/../external-module-compat-comm.h:1009:
error: redefinition of ‘hlist_del_init_rcu’
include/linux/list.h:805: error: previous definition of
‘hlist_del_init_rcu’ was here
make[3]: *** [/usr/local/src/spice_root/vdesktop/kernel/x86/svm.o] Error 1
make[2]: *** [/usr/local/src/spice_root/vdesktop/kernel/x86] Error 2
make[1]: *** [_module_/usr/local/src/spice_root/vdesktop/kernel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.el5-x86_64'
make: *** [all] Error 2

Am I using the wrong kernel source? If so, which source do I need to
use? Or is this some scripting problem?
 
Old 05-24-2010, 09:12 AM   #15
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
There is a terminal server project, I can't recall the name of it right now that implements an RDP server like Windows terminal server in Linux. I think it is called linux term server or something like that. You could try installing a VNC version on your server that supports sound. I don't know about the compile, maybe you will have to install the .30 kernel and those sources to get it to work. Wish I could be more helpful, but.... don't know exactly what's going on with it.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me spice up my Desktop! archlyn Linux - Software 33 08-12-2005 09:48 AM
SPICE on Fedora Core 3 LoGic82 Fedora 6 07-22-2005 08:04 PM
Spice 3 Josh328 Linux - Software 1 11-11-2004 07:11 AM
how to spice up a yearbook...? questionasker General 17 01-17-2004 07:43 PM
Spice problems mrsolo Linux - Software 3 04-16-2003 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 AM.

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