WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] vfb in PV

To: jim burns <jim_burn@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] vfb in PV
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Sun, 09 Mar 2008 19:40:05 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 09 Mar 2008 12:35:20 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=Dr1DrQEpXzZ5Os1mW7UVTHO8H8x+5pZmnVbgOXB0HSw=; b=sKxSUolyZpjEfsFGavp+uPwRcLtcmYcckTRxO23QuJbkqphZDAa4oTHztFAMFS+Y5P7dsYSeqW27ClXFXk/4u6GC/4jEsV5WkPVkB422RHnxzaYPMiFbQrOqBgqf3dULiera0wHYc8PgTFxSsJGh3nXHRN42ibRdICQKywtOgew=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=ZYMzJgbNejVF1HYdn4DMOeGbF95pSQtixV3uYTrwZxIuY7YF2wm8u0VQdSTNNw2SfYr6pknchJ1fjZQmgGo4jjdNiRx/BO3pEiUN/F+e5Ndjk1NsSRZw45RTDM29QyfckwvhLABOvNLXsaIOPLIBZAi0sdQzEoaotzNCr4ldx64=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200803091144.37675.jim_burn@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <710464210803080953uc5c5281qe383da232c2bd4eb@xxxxxxxxxxxxxx> <200803090127.54663.jim_burn@xxxxxxxxxxxxx> <710464210803090314g4fda6443qecd67186e247b59e@xxxxxxxxxxxxxx> (sfid-20080309_062109_878046_53876DCA) <200803091144.37675.jim_burn@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
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

<Prev in Thread] Current Thread [Next in Thread>