[Vserver] quota and webmin on debian etch hostguest
Hi, I have successfully installed a vserver on it's own partition and used a vroot device to add the quota to it. It works but i have two issues: 1/ i cannot do repquota /, only repquota /dev/hdv1 work 2/ webmin 1.350 quota extention does not work with the setup i have : Versions: Kernel: 2.6.21.5-vs2.2.0 VS-API: 0x00020200 util-vserver: 0.30.213; Jul 14 2007, 19:48:12 Features: CC: gcc, gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) CXX: g++, g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) CPPFLAGS: '' CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time' CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time' build/host: i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: yes Build C++ programs: yes Build C99 programs: yes Available APIs: v13,net,v21 ext2fs Source: e2fsprogs syscall(2) invocation: alternative vserver(2) syscall#: 273/glibc Paths: prefix: /usr/local sysconf-Directory: ${prefix}/etc cfg-Directory: ${prefix}/etc/vservers initrd-Directory: /etc/init.d pkgstate-Directory: ${prefix}/var/run/vservers vserver-Rootdir: /vservers disk: /dev/mapper/volume1-vservers on /vservers/myvserver01 type ext3 (rw,noatime,usrquota,grpquota) /usr/local/etc/vservers/monte03/fstab none/proc proc defaults0 0 none/dev/ptsdevpts gid=5,mode=620 0 0 /dev/volume1/tmp40284 /tmpext3 defaults,rw,noatime,nodev,noexec,nosuid 0 2 more /usr/local/etc/vservers/monte03/ccapabilities quota_ctl more /usr/local/etc/vservers/monte03/apps/init/mtab /dev/hdv1 / ufs defaults,noatime,usrquota,grpquota 0 0 in the guest i have: monte03:/%(root) mount /dev/hdv1 on / type ufs (defaults,noatime,usrquota,grpquota) none on /proc type proc (defaults) none on /dev/pts type devpts (gid=5,mode=620) /dev/volume1/tmp40284 on /tmp type ufs (defaults,rw,noatime,nodev,noexec,nosuid) So i wonder what i missed here, why does the repquota command does not work with the '/' and why webmin refuse to work on this setup :( -- Cordialement, Ghislain smime.p7s Description: S/MIME Cryptographic Signature ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] strange rsync problem
Hi there, I've got a very strange problem on rsyncing guests from one to another server: After rsync process the rpm database seems to be broken, although everything else runs. When rsyncing back, everything is okay again. Used process: .) vserver $1 stop .) rsync -avxe ssh --numeric-ids --delete /etc/vservers/$1/ ${REM}:/etc/vservers/$1/ .) rsync -avxe ssh --numeric-ids --delete --progress /vsr/$1/ ${REM}:/vsr/$1/ .) on ${REM} host: vserver $1 start After this the system is proper running on the other host - but the rpm DB (internalized) brings up on rpm -qva: | error: db4 error(-30987) from dbcursor-c_get: DB_PAGE_NOTFOUND: Requested page not found When using the process to sync back everything is fine again - which is more than strange to me ... Anyone got any idea? -- regards 'n greez, Guenther Fuchs (aka muh and powerfox) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] UDP not working
Hi, I'm trying to run bind inside a vserver. Port 53/tcp works perfectly, but the udp equivalent doesn't work. When I do a tcpdump, I see the packets arriving, but no reply from the vserver. I've tried running bind on the host, with the same IP, and it did work (to rule out netfilter misconfigurations). Also adding various capabilities (NET_ADMIN, NET_RAW, ...) doesn't help. The kernel version is 2.6.22.1 (including latest patch + utils). Any idea what the problem might be ? -- regards, Georges Toth ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] nfs permissions issues
Herbert Poetzl wrote: please try with a vanilla kernel if you can reliably trigger it somehow (vs2.2.0.2) and let me know how that goes ... I've tried with 2.6.22 from kernel.org and vs2.2.0-rc5, still the same issue. Any more ideas? Thanks, Ben ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] The $64,000 dollar question
Daniel Hokka Zakrisson wrote: Roderick A. Anderson wrote: snip / So the big question is which (preferably YUM-able) distribution should I use for the host? I'm currently thinking CentOS 5 as it has an end-of-life in about 5 years. I hope to be retired by then. :-) Plus I believe I read that it is actually supported in Daniel's repository. Unfortunately not, I haven't had enough round tuits lately, but you can use the FC6 kernel RPM (though that is not as updated as I'd like it to be, Fedora no longer updates the public tree) for now. Daniel, How about the util-vserver RPMs? Can I build them for CentOS 5 from another distribution or does the tarball handle the distribution? Rod -- ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] clone(..., CLONE_NEWNS) - -EPERM with 2.6.22.1-vs2.2.0.3-rc1
Hi, since 2.6.22-1-vs2.2.0.3-rc1, clone(..., CLONE_NEWNS) fails with -EPERM. Previous kernels allowed this when the VXC_SECURE_MOUNT ccap was set: With 2.6.21.5-vs2.2.0-rc3: | # vcontext --create -- vattribute --secure --ccap VXC_SECURE_MOUNT -- \ | vcontext --migrate-self --endsetup -- vnamespace -n /bin/sh | New security context is 49157 | sh-3.1# With 2.6.22-1-vs2.2.0.3-rc1: | # vcontext --create -- vattribute --secure --ccap VXC_SECURE_MOUNT -- \ | vcontext --migrate-self --endsetup -- vnamespace -n /bin/sh | New security context is 49163 | vnamespace: clone(): Operation not permitted strace before 'vnamespace' shows | clone(child_stack=0, flags=CLONE_VFORK|CLONE_NEWNS|SIGCHLD) = -1 EPERM (Operation not permitted) Setting all ccaps does not help. Enrico ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] how to set using vcmd
Hello vserver experts, I'm trying to run vcmd to get_cflags and set_cflags. I was expecting that if I do a get, then do a set to a new value, then get again, I should get the newest values. I'm only getting the old values. This is what i did. 1) Created a new vserver running cpu_hog. vtop shows that cpuhog is running vcmd -i 100 -BC ctx_create .flagword=^34^33^32^8 -- cpuhog 2) Run get_cflags bash-2.05b# vcmd -i 100 -AC get_cflags vserver: ret = 0x (0) VCMD_52_1[0] { [0] .flagword 0x00070100 (30064771328) [1] .mask 0x0003 (17179869183) } 3) Run set_cflags - set flagword to something new bash-2.05b# vcmd -i 100 -AC set_cflags .flagword= vserver: ret = 0x (0) VCMD_52_2[0] { [0] .flagword 0x15B3 () [1] .mask 0x (0) } 4) Run get_cflags again bash-2.05b# vcmd -i 100 -AC get_cflags vserver: ret = 0x (0) VCMD_52_1[0] { [0] .flagword 0x00070100 (30064771328) [1] .mask 0x0003 (17179869183) } Is the set functionality supported with vcmd ? If it is, can you spot what did I do wrong above? Now what I really wanted to do is to be able to dynamically set the ip address (net_add) of a vserver without having to restart the vserver. I was told that this is supported in util-vserver-0.30.213 with the naddress command. As we are still using 0.30.210, I'm wondering if it's possible to use vcmd to set the ip address of a vserver interface without having to reset the vserver. If yes, could you pls let me know how? (we're using 2.6.14 kernel with vserver patch 2.0). Thanks, Jesse ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Re: IP alias limitation
Has this limitation been overcome as yet and if it has what version of tools and kernel is needed ? Thanks Mike Herbert Poetzl wrote: On Wed, Aug 23, 2006 at 10:22:19PM +0200, Bruno wrote: On Wednesday 23 August 2006 22:08, Kathy Kost wrote: Nope. Once an alias is created, however which way, the system comes up with a 16 alias max message. Don't recall the actual message. The vserver would not restart and I had to remove the interfaces and reboot the entire server. Kathy Does it help to add ip's with the ip add ... command instead of using ifconfig? Aliases are sooo last millennium. /Benny The kernel patch has a maximum of IP addresses per network context defined. Context-association of IP addresses is not optimized, thus many addresses cause some overhead when checking if incoming packets may be delivered to a guest. (check if IP is available to a guest) In addition you have 12 bytes allocated per possible IP address: 12 * 16 = 192 bytes (even if guest has just 1 IP assigned to it) For the define limiting the count of IP addresses, see include/linux/vserver/network.h (line 11): @define NB_IPV4ROOT 16 Note that you may need to check what header the userspace tools get compiled against. also note that this limitation will go away pretty soon :) best, Herbert Bruno ___ 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 mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] how to run opensuse 10.2 as a guest
hello ! does anybody know the tricks to run opensuse 10.2 as a guest ? The host system is debian etch, util-vserver from the distribution. i created a debian vserver with vserver build ... command. Then deleted the vserver chroot /var/lib/vserver/suse/ Then unpacked an opensuse 10.2 installation into that directory. Removed all the device-files and copied a set of /dev/* files from a debian vserver into it. But the vserver didn't boot at all. I changed the init style to plain and then at least the init-process starts, but nothing else. Does anybody know what i've missed ? Thank you in advance! Oliver -- LinSoft GmbH Feldstraße 20 65326 Aarbergen http://www.linsoft.de * Professional Linux Systems and Services * Sitz : Feldstraße 20, 65326 Aarbergen Geschäftsführer : Oliver Poths Registergericht : Wiesbaden HRB 16647 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver