[Vserver] Xorg in a vserver running on a headless host

2005-11-09 Thread Marcel Gsteiger
Hi all

I am running vservers on a headless fc4-x86_64 (the real server runs
at runlevel 3).

My idea was to install a virtual graphical desktop environment (using
gnome) in the virtual server, then let the users access this system
remotely using FreeNX.

Currently I am at the stage of bringing Xorg to life on my virtual
server, but I'm still not there. Xvfb starts and listens on port 6000,
but I can't get gnome to work. Do I have to install the Xorg components
on the main server too? Did anybody else already try out this setup?
Just in case I'm trying to reinvent the wheel...

Regards
--Marcel


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Xorg in a vserver running on a headless host

2005-11-09 Thread Chuck
On Wednesday 09 November 2005 06:19 am, Marcel Gsteiger wrote:
 Hi all
 
 I am running vservers on a headless fc4-x86_64 (the real server runs
 at runlevel 3).
 
 My idea was to install a virtual graphical desktop environment (using
 gnome) in the virtual server, then let the users access this system
 remotely using FreeNX.
 
 Currently I am at the stage of bringing Xorg to life on my virtual
 server, but I'm still not there. Xvfb starts and listens on port 6000,
 but I can't get gnome to work. Do I have to install the Xorg components
 on the main server too? Did anybody else already try out this setup?
 Just in case I'm trying to reinvent the wheel...

I am using xorg with kde for remote desktops as a guest off my workstation 
just fine, however I have not tried using xvfb/freeNX. 

I am using Xvnc in realvnc 4.1.1 which requires vncviewer run remotely and 
disabled xorg's ability to see/use a console. This keeps xorg from running 
but xdm still starts and Xvnc becomes the X running when called upon using 
the xorg config.

as far as I know xorg does not have to be on the main server as well. I am 
running it on the main server simply because the remote desktop guest lives 
on my main workstation and I can log into the guest using a vncviewer window.

If this method is of interest, I can post what I did to make it work. It will 
require a bit of configuration as it is not a standard setup. This 
configuration will cancel the X session upon disconnect or logoff and allows 
for multiple user logins simultaneously and dynamic resolution / color depth 
selections. There is a way to reconfigure it to allow you to return to a 
previously running session but I have not tried it as it cancels multiple 
simultaneous user ability.

The fact that you have X running remotely is encouraging already. Are you 
providing a login manager (GDM/KDM) in your guest system configs for it? In 
my system (gentoo) we specify that in /etc/rc.conf and then 
load /etc/init.d/xdm which causes the chosen login manager to run. The login 
manager needs to have XDCMP and port 177 enabled in its config. From there 
the login manager knows how to set up the environment for the installed 
windowmanagers which can be selected usually in a pull-down menu.


Chuck
 
 Regards
 --Marcel
 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
 

-- 

Chuck

...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. 
The Book of John, chapter 1, page 1, and end of book


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] ppc64 utsname patch

2005-11-09 Thread Herbert Poetzl
On Tue, Nov 08, 2005 at 12:32:31PM -0600, Serge Hallyn wrote:
 Hi,
 
 The following patch is needed for utsname to be properly supported
 on ppc64.  Bug was found by testme.sh #031  :)

great! I think I should extend the test*.sh series
pretty soon (have some older scripts lying around
somewhere, which could test 'other' aspects too)

even better! because this is the first report of
a ppc64 system running linux-vserver ...

could you test the 64/32 bit compatibility too?
(should allow 32bit ppc guests on 64bit hosts)

TIA,
Herbert

 (This patch is against the 2.6.14-vs2.2 patch)
 
 thanks,
 -serge
 
 Index: linux-2.6.14/arch/ppc64/kernel/syscalls.c
 ===
 --- linux-2.6.14.orig/arch/ppc64/kernel/syscalls.c2005-10-27 
 19:02:08.0 -0500
 +++ linux-2.6.14/arch/ppc64/kernel/syscalls.c 2005-11-08 12:13:42.0 
 -0600
 @@ -37,6 +37,7 @@
  #include linux/file.h
  #include linux/init.h
  #include linux/personality.h
 +#include linux/vs_cvirt.h
  
  #include asm/uaccess.h
  #include asm/ipc.h
 @@ -213,7 +214,7 @@ long ppc64_newuname(struct new_utsname _
   int err = 0;
  
   down_read(uts_sem);
 - if (copy_to_user(name, system_utsname, sizeof(*name)))
 + if (copy_to_user(name, vx_new_utsname(), sizeof(*name)))
   err = -EFAULT;
   up_read(uts_sem);
   if (!err  personality(current-personality) == PER_LINUX32) {
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] ppc64 utsname patch

2005-11-09 Thread Serge Hallyn
Quoting Herbert Poetzl ([EMAIL PROTECTED]):
 could you test the 64/32 bit compatibility too?
 (should allow 32bit ppc guests on 64bit hosts)

Hmm, not sure that would be meaningful, as the RHEL4
installation is mostly 32-bit - 

# file /bin/true
/bin/true: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
(SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs),
stripped
# file /boot/vmlinux-vs
/boot/vmlinux-vs: ELF 64-bit MSB executable, cisco 7500, version 1
(SYSV), statically linked, not stripped

-serge
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] OSPF routing using Vserver

2005-11-09 Thread Wright, Matthew J
Hi,

I am trying to run three virtual servers on one physical machine.
However I need each server to behave as a seperate router running Zebra with 
OSPF.
The machine will have three network cards, each linked to a specific Vserver.
Is this possible?

I am trying to end up with a small ipv6 network in one machine that I can use 
for network testing.

Regards
Matt
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] packet shaping with vservers

2005-11-09 Thread Grzegorz Nosek
2005/11/8, Grzegorz Nosek [EMAIL PROTECTED]:
 Hello all,

 2005/11/7, Herbert Poetzl [EMAIL PROTECTED]:
  could you give me some commands to reproduce here?

 basically, it amounts to:

 tc qdisc del dev eth0 root
 tc qdisc add dev eth0 root handle 1: htb default fffe

 ... still working nicely...

 tc class add dev eth0 parent 1: classid 1:fffe htb rate 1Gbit ceil 1Gbit

 networking goes south here, I also tried with reduced quantum (both
 here and using r2q in qdisc definition) and burst size. The specified
 rate and ceil don't seem to matter.

 It is perfectly reproducible on this machine. However, I cannot
 reproduce it on another one... I'm gonna grow grey hair soon ;) If you
 want me to do some testing, I'll be happy to.


Well, it seems to work fine on one CPU... I guess dual-core AMD64s
don't play nice with vservers... as for _why_, beats me :(
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] vserver on breezy

2005-11-09 Thread Philippe Clérié
Hi,

I'm having a difficult time getting started with linux-vserver on ubuntu
breezy.

vprocunhide outputs:

Fixing /proc entries visibility: ... /proc/net Bad address

followed by several more similar entries.

showattr /proc/net

gives:

vc_get_iattr(): Bad address
ERR   /proc/net
Awh-ui /proc/net/ip6_flowlabel

followed by several similar entries.

I'm running linux-image-2.6.12-10-686 from ubuntu.uni-klu.ac.at. I used the
procedure outlined at http://www2.uni-klu.ac.at/support/Vserver to do the
installation.

My root and the vservers partition are both lvm volumes. Filesystems are
ext3. 

Thanks for any help!
PC


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] packet shaping with vservers

2005-11-09 Thread Herbert Poetzl
On Wed, Nov 09, 2005 at 07:41:14PM +0100, Grzegorz Nosek wrote:
 2005/11/8, Grzegorz Nosek [EMAIL PROTECTED]:
  Hello all,
 
  2005/11/7, Herbert Poetzl [EMAIL PROTECTED]:
   could you give me some commands to reproduce here?
 
  basically, it amounts to:
 
  tc qdisc del dev eth0 root
  tc qdisc add dev eth0 root handle 1: htb default fffe
 
  ... still working nicely...
 
  tc class add dev eth0 parent 1: classid 1:fffe htb rate 1Gbit ceil 1Gbit
 
  networking goes south here, I also tried with reduced quantum (both
  here and using r2q in qdisc definition) and burst size. The specified
  rate and ceil don't seem to matter.
 
  It is perfectly reproducible on this machine. However, I cannot
  reproduce it on another one... I'm gonna grow grey hair soon ;) If you
  want me to do some testing, I'll be happy to.
 
 
 Well, it seems to work fine on one CPU... I guess dual-core AMD64s
 don't play nice with vservers... as for _why_, beats me :(

hmm, smells like a mainline issue, to be honest,
but if you have time (and the machine) we can do
some more detailed investigations ...

TIA,
Herbert

 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] guaranteeing a certain ip is used?

2005-11-09 Thread Herbert Poetzl
On Mon, Nov 07, 2005 at 06:20:34PM -0500, Chuck wrote:
 
 I have many ip addresses on each of 4 ethernet cards using iproute2.
 
 one of my guests must absolutely always send and receive on a certain
 ip address which is not the first ip on the card. I have bound the
 service (radius) to that ip which is the only one the guest is given.
 I have not proven it but have a suspicion that once in a while a
 radius reply is getting sent out the primary ip of either the card or
 eth0 (the card is eth3 and the default system gateway is for eth0..
 the rest use default gateway routing via tables).

 is there some magic that can guarantee that guest and subsequent
 handling by the host can never mess up and always use that single ip
 for all traffic while not affecting other guests?

a guest, bound to a specific IP (only one), will _always_
use this IP for outgoing ip based connections, reponses
or whatever, so, as long as you do not give CAP_NET_RAW
it will ensure that only that IP is used ...

of course, this IP might be mangled by some NAT rules
so make sure _not_ to do that ...

 my net setup for this card is as follows
 
 config_eth3=( 64.113.39.252 netmask 255.255.255.0 broadcast 64.113.39.255 )
 routes_eth3=( 64.113.39.0/24 src 64.113.39.252 table 39net )
 routes_eth3=( default via 64.113.39.1 table 39net )
 rules_eth3=( from 64.113.39.0/24 table 39net )
 
 would it work or help to duplicate the first routes_eth3 line but
 using the ip of the guest? eg:
 
 routes_eth3=( 64.113.39.0/24 src 64.113.39.5 table 39net )
 
 or would this confuse the networking code? i would think this ip would
 be 'covered' by the rule set in the last line.

 i am still very green when it comes to iproute2 and what it can do.

routes will only 'suggest' certain IPs for outgoing 
packets, there is no 'requirement' to use a certain
IP for a packet defined in IP networking

 what is happening is I am missing a LOT of stop packets. many more
 than i ever did before I moved radius to a guest and I need to fix
 this because when a stop is missed people cannot log in as they get
 simulteneous use errors.

what protocl are those packets? tcp? udp? base ip?

 maybe somehow assigning this guest slightly more priority? don't know
 .. grabbing at straws here.. the configuration of radius is fine and
 is just as it was when it was running by itself on its own server.

guess we need more info too ...

best,
Herbert

 -- 
 
 Chuck
 
 ...and the hordes of M$*ft users descended upon me in their anger,
 and asked 'Why do you not get the viruses or the BlueScreensOfDeath
 or insecure system troubles and slowness or pay through the nose 
 for an OS as *we* do?!!', and I answered...'I use Linux'. 
 The Book of John, chapter 1, page 1, and end of book
 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] ppc64 utsname patch

2005-11-09 Thread Herbert Poetzl
On Wed, Nov 09, 2005 at 10:48:47AM -0600, Serge Hallyn wrote:
 Quoting Herbert Poetzl ([EMAIL PROTECTED]):
  could you test the 64/32 bit compatibility too?
  (should allow 32bit ppc guests on 64bit hosts)
 
 Hmm, not sure that would be meaningful, as the RHEL4
 installation is mostly 32-bit - 

in theory, the tools (util-vserver) should be easy
to build as 32bit _or_ 64bit ones (assumed that
dietlibc supports both), now a testme.sh and testfs.sh
testrun with 32bit tools _and_ 64bit tools would be
a good start, if the guests are 32bit by default, 
then a guest virtualization and startup (with the
proper personality) should suffice ...

TIA,
Herbert

 # file /bin/true
 /bin/true: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1
 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs),
 stripped
 # file /boot/vmlinux-vs
 /boot/vmlinux-vs: ELF 64-bit MSB executable, cisco 7500, version 1
 (SYSV), statically linked, not stripped
 
 -serge
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vserver on breezy

2005-11-09 Thread Herbert Poetzl
On Wed, Nov 09, 2005 at 02:56:16PM -0500, Philippe Clérié wrote:
 Hi,
 
 I'm having a difficult time getting started with linux-vserver on
 ubuntu breezy.

 vprocunhide outputs:

 Fixing /proc entries visibility: ... /proc/net Bad address

 followed by several more similar entries.

could you try with mainstream tools, preferable
0.30.208 and let me know if that works?

best,
Herbert

 showattr /proc/net

 gives:

 vc_get_iattr(): Bad address ERR /proc/net Awh-ui
 /proc/net/ip6_flowlabel

 followed by several similar entries.

 I'm running linux-image-2.6.12-10-686 from
 ubuntu.uni-klu.ac.at. I used the procedure outlined at
 http://www2.uni-klu.ac.at/support/Vserver to do the installation.

 My root and the vservers partition are both lvm volumes. Filesystems
 are ext3.
 
 Thanks for any help!
 PC
 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Fake packages for removing useless dependency packages from RHEL/CentOS/Fedora vservers [scanned]

2005-11-09 Thread Veit Wahlich
Hi list!

I have got created a bundle of RPM packages that allow one to remove
packages that are absolutely useless inside vservers:

vps-dev-3.999-1.cru contains the usual vserver /dev structure and
provides dev, hence allowing one to remove the following packages:
- udev
- hwdata
- usbutils
- hotplug
- MAKEDEV

vps-fakekernel-2.6.999-1.cru is able to replace any real kernel
package.

vps-fakepackages-1.0-2.cru contains just a few fake compatibility files
for initscripts and allows the dependency-aware removal/replacement of
these packages:
- module-init-tools
- mkinitrd
- lvm2
- device-mapper
- mingetty

For a usual CentOS 4.2 minimum installation this results in saving 28%
disk usage (before: 116MB, after: 84MB) and a much cleaner filesystem.

Is anyone interested in these packages?

If so, I will publish them. They should fit on almost any current
RedHat-based distro.

Best regards,
// Veit

--
CentOS 4.2 proof sample:

-([EMAIL PROTECTED]:2)-(6 files:[EMAIL PROTECTED])-(0 jobs)-(00:42)-
-(~:#)- vserver centos4 build -m yum --hostname centos4 --interface 
test0=eth0:10.1.1.129/24 -- -d centos42

...

-([EMAIL PROTECTED]:2)-(6 files:[EMAIL PROTECTED])-(0 jobs)-(00:48)-
-(~:#)- du -sh /vservers/centos4
116M/vservers/centos4

-([EMAIL PROTECTED]:2)-(6 files:[EMAIL PROTECTED])-(0 jobs)-(00:54)-
-(~:#)- vrpm centos4 -- -e --nodeps module-init-tools mkinitrd

-([EMAIL PROTECTED]:2)-(6 files:[EMAIL PROTECTED])-(0 jobs)-(00:54)-
-(~:#)- vrpm centos4 -- -Uhv inst/vps-{dev,fakekernel,fakepackages}-*
Preparing...# [100%]
   1:vps-fakepackages   # [ 33%]
This package is to be installed for a VPS though the host server.
Running this command from the host: vrpm vservername -- -Uhv vps-dev RPM
   2:vps-dev# [ 67%]
   3:vps-fakekernel # [100%]

-([EMAIL PROTECTED]:2)-(6 files:[EMAIL PROTECTED])-(0 jobs)-(00:55)-
-(~:#)- vrpm centos4 -- -e udev hwdata usbutils hotplug MAKEDEV kernel lvm2 
device-mapper mingetty

-([EMAIL PROTECTED]:2)-(6 files:[EMAIL PROTECTED])-(0 jobs)-(00:56)-
-(~:#)- du -sh /vservers/centos4
84M /vservers/centos4


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


RE: [Vserver] Fake packages for removing useless dependency packagesfrom RHEL/CentOS/Fedora vservers [scanned]

2005-11-09 Thread Matthew Nuzum
 Hi list!
 
 I have got created a bundle of RPM packages that allow one to remove
 packages that are absolutely useless inside vservers:
 
 vps-dev-3.999-1.cru contains the usual vserver /dev structure and
 provides dev, hence allowing one to remove the following packages:
 - udev
 - hwdata
 - usbutils
 - hotplug
 - MAKEDEV
 
 vps-fakekernel-2.6.999-1.cru is able to replace any real kernel
 package.
 
 vps-fakepackages-1.0-2.cru contains just a few fake compatibility files
 for initscripts and allows the dependency-aware removal/replacement of
 these packages:
 - module-init-tools
 - mkinitrd
 - lvm2
 - device-mapper
 - mingetty
 
 For a usual CentOS 4.2 minimum installation this results in saving 28%
 disk usage (before: 116MB, after: 84MB) and a much cleaner filesystem.
...
 
 Best regards,
 // Veit
 

Veit,
I don't use CentOS and I'm phasing out my RPM based distros, so I don't need
the packages, but I want to say that this is an excellent thing you've done.

Brilliant, really.

Good idea and good work,
-- 
Matthew Nuzum [EMAIL PROTECTED]
www.followers.net - Makers of Elite Content Management System
View samples of Elite CMS in action by visiting
http://www.followers.net/portfolio/


___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver