xen-users
Re: [Xen-users] vfb in PV
jim burns wrote:
On Sunday 09 March 2008 06:14:01 am Nikhil Talpallikar wrote:
I tried to install vnc using the rpm vnc-4.1.2-9.fc6.src.rpm. i got the
following error.
[root@fc6_pristine /]# rpm -ivh vnc-4.1.2-9.fc6.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES
[root@fc6_pristine /]#
how do i install vnc and X11 components to this PVM?
I doubt you really want to be compiling packages from scratch. You get that
error the first time you try to install a .src.rpm (source code rpm). If
that's really what you want to do, you need to create the directories:
/usr/src/redhat
/usr/src/redhat/SOURCES
/usr/src/redhat/SPECS
/usr/src/redhat/RPMS
/usr/src/redhat/RPMS/i586
/usr/src/redhat/RPMS/noarch
/usr/src/redhat/RPMS/athlon
/usr/src/redhat/RPMS/i486
/usr/src/redhat/RPMS/i686
/usr/src/redhat/RPMS/i386
/usr/src/redhat/BUILD
/usr/src/redhat/SRPMS
But more likely, you want the binary rpm. Change your download path from, eg:
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/SRPMS/vnc-4.1.2-9.fc6.src.rpm
to:
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/6/i386/vnc-4.1.2-9.fc6.i386.rpm
or better still, upgrade to fc8.
Now, vnc goes on the machine you are connecting to the guest from. It could be
dom0 (and has to be by default, unless you specify a vnclisten='0.0.0.0' parm
in your guest's config), or it could go on any (fedora) pc on your network.
In the guest, assuming it is also fedora, you *could* install vnc-server, but
it's easier to use xen's builtin vnc server (xen-vncfb on fc6/fc7, qemu-dm on
fc8). You connect thru dom0's ip address. Assuming your vnc related parms in
your guest's config look like:
vnc=1
vnclisten="0.0.0.0"
vncdisplay=10
#vncunused=1
vncconsole=1
vncpasswd=""
keymap='en-us'
you would connect (on dom0) with 'vncviewer :10', or on another client
with 'vncviewer dom0-ip:10'. Make sure port 10 (actually, 5900 + 10) is not
in use by any other guest or server on dom0, or you could comment out
vncdisplay, and uncomment vncunused to allow xen's vnc component to pick the
first unsused vnc port #. On fc8/modern xen versions, the syntax is a little
different:
vfb=[ 'type=vnc, keymap=en-us, vnclisten=0.0.0.0, vncunused=1' ]
No, he needs to do several things:
* Install the rpmbuild package, so he can build these things.
* Do a "yum install /usr/src/redhat" in order to get these form the RPM
that contains them, instead of randomly creating things manually.
* Preferably set up a ".rpmmacros" that will allow him to compile things
personally, as a local user, instead of in /usr/src and requiring root
privileges.
Now, me? I like to set up "mock" to get a clean build environment for
this sort of stunt. I'm happy to send notes about this if desired.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|