Hi Ola, indeed , it works with both scripts ( with newvserver-var value in squeeze), this is because I had a lot of bpo (backports) packages, I did another test, removed all the bpo packages (downgrade) and use newvserver-var value in lenny with standard script..and it works. Once again thank you so much for your help.
Jorge E. Espada On Tue, Sep 14, 2010 at 3:00 AM, Ola Lundqvist <o...@inguza.com> wrote: > Hi Jorge > > Good to see that this works. If you change to squeeze but still use > the normal create script (and not the one I attached), do it still > work? > > On Mon, Sep 13, 2010 at 12:21:44PM -0300, jorge espada wrote: > > Hi Ola, I changed lenny for squeeze in /etc/vservers/newvserver-vars > > and did the trick..with some errors..but at least I could crate a > > vserver and start it: > > Ok. > > > errors: > > > > .... > > sing makefile-style concurrent boot in runlevel 6. > > Asking all remaining processes to terminate...done. > > All processes ended within 1 seconds....done. > > Stopping enhanced syslogd: rsyslogd. > > Saving the system clock. > > Cannot access the Hardware Clock via any known method. > > Use the --debug option to see the details of our search for an access > > method. > > Deconfiguring network interfaces...done. > > Cleaning up ifupdown.... > > All the above is normal. Nothing to worry about. > > > Unmounting temporary filesystems...umount: /tmp: must be superuser to > > umount > > I think you mis some capabilities here. Nothing to worry about though. > > > failed. > > Deactivating swap...swapoff: Not superuser. > > failed. > > mount: permission denied > > Will now restart. > > ifdown: shutdown eth0: Permission denied > > I do not think those warnings/errors are a problem. > > > /usr/lib/util-vserver/vserver.stop: line 98: 8046 Killed > > "${ionice_c...@]}" "${nice_c...@]}" "${chbind_c...@]}" "$_VSPACE" > > --enter "$S_CONTEXT" "${opts_vspa...@]}" -- "$_VTAG" --migrate > > "${opts_vtag_ent...@]}" --silent -- $_VCONTEXT $SILENT_OPT --migrate > > $OPT_VCONTEXT_CHROOT --xid "$S_CONTEXT" -- "${initcmd_st...@]}" > > Warning: Executing wildcard deletion to stay compatible with old > > scripts. > > Explicitly specify the prefix length ([1]10.255.1.192/32) to > > avoid this warning. > > This special behaviour is likely to disappear in further > > releases, > > fix your scripts! > > Hmm. This one may be an issue. But that is a util-vserver problem in that > case... But it looks like it started fine. > > > You should now adjust the configuration in /etc/vservers/test26/ > > to suit your needs, > > or else just go ahead and type `vserver test26 start' to start > > your new virtual server. debian/rules! > > backup:~# vserver-stat > > CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME > > backup:~# vserver test26 start > > Using makefile-style concurrent boot in runlevel 3. > > Starting enhanced syslogd: rsyslogd. > > Starting periodic command scheduler: cron. > > Running scripts in rc3.d/ took 0 seconds. > > backup:~# > > > *********************************************************************** > > ******+ > > Info you asked: > > cat /etc/vservers/newvserver-vars > > # Configuration file for newvserver > > # See man newvserver for the variables that you can set here. > > MIRROR="[2]http://debian.mydomain.com:3142/debian" > > What do this one contain? Just a normal mirror or is it some upates > as well? > > > DIST="lenny" > > INTERFACE="eth0" > > cat /etc/debian_version > > 5.0.6 > > dpkg -l util-vserver > > Desired=Unknown/Install/Remove/Purge/Hold > > | > > > Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig > > -pend > > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: > > uppercase=bad) > > ||/ Name Version > > Description > > > +++-===============================-===============================-=== > > > ======================================================================= > > ==== > > ii util-vserver 0.30.216~r2772-6 > > user-space tools for Linux-VServer virtual private servers > > backup:~# COLUMNS=180 dpkg -l "linux-image*" | grep "^ii" > > ii linux-image-2.6-amd64 2.6.32+27~bpo50+1 > > Linux 2.6 for 64-bit PCs (meta-package) > > ii linux-image-2.6.26-1-amd64 2.6.26-13lenny2 > > Linux 2.6.26 image on AMD64 > > ii linux-image-2.6.26-2-amd64 2.6.26-25 > > Linux 2.6.26 image on AMD64 > > ii linux-image-2.6.32-bpo.3-amd64 2.6.32-9~bpo50+1 > > Linux 2.6.32 for 64-bit PCs > > ii linux-image-2.6.32-bpo.5-amd64 2.6.32-20~bpo50+1 > > Linux 2.6.32 for 64-bit PCs > > ii linux-image-2.6.32-bpo.5-vserver-amd64 2.6.32-20~bpo50+1 > > Linux 2.6.32 for 64-bit PCs, Linux-VServer support > > ii linux-image-vserver-amd64 2.6.32+27~bpo50+1 > > Linux for 64-bit PCs (meta-package), Linux-VServer support > > backup:~# uname -a > > Linux backup 2.6.32-bpo.5-vserver-amd64 #1 SMP Mon Aug 23 11:51:44 UTC > > 2010 x86_64 GNU/Linux > > Thank you very much for your excellent support > > You are welcome. > > Best regards, > > // Ola > > > Jorge E. Espada > > On Sat, Sep 11, 2010 at 4:19 PM, Ola Lundqvist <[3]...@inguza.com> > > wrote: > > > > Hi Jorge > > I have removed a lot of the logs here and given some comments. > > Please take a look below. > > Dist is lenny for some unknown reason. The default is squeeze, but > > you must have some config file that specify lenny. > > What is the contents of /etc/vservers/newvserver-vars ? > > Waat is the contents of /etc/debian_version ? > > Please execute the following commands as well: > > dpkg -l util-vserver > > COLUMNS=180 dpkg -l "linux-image*" | grep "^ii" > > uname -a > > > > On Sat, Sep 11, 2010 at 11:44:15AM -0300, jorge espada wrote: > > > Hi Ola, unfortunately the script didn't work :( , I think the > > problem > > > is with the backported kernel...see below the diff between the > > orig and > > > new vserver script and the full log : > > > > ... > > > > > "$VROOTDIR/$VHOST/etc/inittab.dist" > > > ***************************************************** > > > > > sh -xv newvserver.sh --hostname test26 --domain > > [6][4]mydomain.com --ip > > ... > > > + '[' woody == lenny ']' > > > + cat > > ... > > > > > ## start vserver before we can exec anything inside it > > > vserver $VHOST start > > > + vserver test26 start > > > /etc/init.d/rc: line 74: /etc/default/rcS: No such file or > > directory > > > error: '/etc/init.d/rc' exited outside the expected code flow. > > > > This problem is really not something I can do about from the > > newvserver.sh > > script. Debootstrap run fine, and this file is not modified > > afterwards. > > So I have no clue why vserver start fails. Please make sure you have > > a proper > > > > > An error occured while executing the vserver startup sequence; > > when > > > there are no other messages, it is very likely that the > > init-script > > > (/etc/init.d/rc 3) failed. > > > Common causes are: > > > * /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the > > 'apt-rpm' > > > build > > > method knows how to deal with this, but on existing > > installations, > > > appending 'true' to this file will help. > > > Failed to start vserver 'test26' > > > # Run the above commands from within the server > > > chmod 755 $VROOTDIR/$VHOST/vserver-config.sh > > > + chmod 755 > > /etc/vservers/.defaults/vdirbase/test26/vserver-config.sh > > > vserver $VHOST exec /vserver-config.sh > > > + vserver test26 exec /vserver-config.sh > > > 'vserver ... suexec' is supported for running vservers only; > > > aborting... > > > > Best regards, > > // Ola > > > > -- > > --- Inguza Technology AB --- MSc in Information Technology ---- > > / [5]...@inguza.com Annebergsslingan 37 \ > > | [6]o...@debian.org 654 65 KARLSTAD | > > | [7]http://inguza.com/ Mobile: +46 (0)70-332 1551 | > > \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / > > --------------------------------------------------------------- > > > > Referenser > > > > 1. http://10.255.1.192/32 > > 2. http://debian.mydomain.com:3142/debian > > 3. mailto:o...@inguza.com > > 4. http://mydomain.com/ > > 5. mailto:o...@inguza.com > > 6. mailto:o...@debian.org > > 7. http://inguza.com/ > > -- > --- Inguza Technology AB --- MSc in Information Technology ---- > / o...@inguza.com Annebergsslingan 37 \ > | o...@debian.org 654 65 KARLSTAD | > | http://inguza.com/ Mobile: +46 (0)70-332 1551 | > \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / > --------------------------------------------------------------- >