[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] vfb in PV


  • To: jim burns <jim_burn@xxxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.