[Users] How to do ANYTHING with the opensuse template cache?

Kir Kolyshkin kir at openvz.org
Mon Aug 7 11:05:15 EDT 2006



Markus KARG wrote:
> I am new to OpenVZ and must confess that I am one of those admins that
> really do not know anything on text based administration but do always
> use GUI-based version of YaST2... So I have a bit a problem with the
> OpenSuSE template cache that can be downloaded from the OpenVZ web site.
>
> Actually it was pretty easy to set up OpenVZ and create and run a VPS
> using the prebuilt OpenSuSE tarball found on the OpenVZ web site. I can
> use the vzctl enter 101 backdoor to have TTL access, do ps -A and such
> things.
>
> Now I want to use "real" administrative access to set up the services I
> like to run. But in fact it seems the OpenSuSE template has switched off
> nearly everything. ssh, telnet, rlogin... everything  I can imagine
> fails (ok, ping works...).
>   
(1) As far as I remember, ssh and httpd are on by default in opensuse 
template.

(2) To enable services from the command like, you can use 
/sbin/chkconfig utility.
Examples:

/sbin/chkconfig --list
  will give you a list of all services and their settings on different 
runlevels

/sbin/chkconfig --level 345 sshd on
  will enable sshd for runlevels 3, 4, and 5

/sbin/chkconfig --list sshd
  will show you the settings for sshd

Finally, if you want, say, sshd to start without reboot, run
/etc/init.d/sshd start
> So I tried to use text mode yast2 within the backdoor, but while this
> truely starts yast (can see it in ps), still nothing gets shown on the
> screen (seems the backdoor is unable to handle its ncurses based GUI).
>
> Okay, I give up now.
> Can anybody tell me how to get an administrative access to that OpenSuSE
> VPS...?
> I'm quite desperate...
>
> Thanks in advance!
>   
The other problem that can happen with opensuse template is UBC 
shortage. Take a look at http://wiki.openvz.org/Resource_shortage. 
Basically, you need to check /proc/user_beancounters inside a VE and if 
the last column contains non-zero numbers, do something about it (see 
the wiki article referenced above).

Finally, I will be updating opensuse template really soon (this week I 
hope), and will post a detailed HOWTO on how you can create your own 
opensuse template with all the software and settings you want to have.


More information about the Users mailing list