Subject: Re: [vserver] Guest - problem on networking and exit
From: Stephen Liu <satimis@yahoo.com>
Date: Thu, 28 Aug 2008 14:46:52 +0800 (CST)


--- Nicolas Cadou <ncadou@cobi.net> wrote:

> > Please advise how to fix the problem.  Thanks
> 
> Some init scripts in your guest shouldn't be called. I use the
> following 
> command to clean my guests, at installation time, and also on a
> regular basis 
> because some updates seem to put back the rc symlinks once in a
> while:
> 
> for s in \
>   klogd hwclock.sh setserial urandom networking umountfs halt reboot
> \
>   mountvirtfs mountall.sh mountnfs.sh ifupdown; \
> do \
>     vserver <guest> exec update-rc.d -f $s remove
> done


# vserver vserver1 exec update-rc.d -f $s remove
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | SS KK]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...]
.
                -n: not really
                -f: force
done


# vserver vserver1 stop
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.
Stopping enhanced syslogd: rsyslogd.
Asking all remaining processes to terminate...done.
All processes ended within 1 seconds....done.
Deconfiguring network interfaces...done.
Cleaning up ifupdown....
Unmounting temporary filesystems...umount: none: not found
umount: /tmp: must be superuser to umount
umount: none: not found
umount: /tmp: must be superuser to umount
failed.
Deactivating swap...Not superuser.
failed.
mount: permission denied
Will now restart.
ifdown: shutdown eth0: Permission denied
ifdown: shutdown eth0: Permission denied


Are those failure considered normal?  Thanks

 
> > Furthermore if I want to run update/upgrade with another website
> other
> > than http://ftp.de.debian.org/debian whether run;
> >
> > # vserver vserver1 exec apt-get update(or upgrade)
> > http//ftp.xx.debian.org/debian ?
> 
> Yes, that's it. You could also used vapt-get on the host, which I
> sometimes 
> use to update all vservers at once, like this:
> 
> vapt-get --all -- update
> vapt-get --all -- dist-upgrade


I can't find vpt-get on current Debian repo.

$ which vapt-get
No printout


$ apt-cache search vapt
No printout


Which repo I have to add to get this package.  TIA


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com