Virtualization

Change the timezone of OpenVZ Containers

PDF

The system reads the timezone data from /etc/localtime, which is a symbolic link to a timezone file in the directory /usr/share/zoneinfo/ To Change the timezone of the container you should remove the symbolic link and create a new link to you preferred timezone in my case Europe/Amsterdam:

 

Mount samba share inside an OpenVZ container

PDF
How to mount a samba share inside an OpenVZ container? cifs/smbfs is not virtualized therefor the mount command won't work and you can't just mount a samba share inside a container:
mount -t cifs [sambashare] [mountpoint]
this will result in a failure:
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
 

yum error: "error: no dbpath has been set"

PDF

Sometimes it happen that yum generates the error "error: no dbpath has been set" within your VPS. One thing that might solve the problem is to (re)create the special character devices /dev/random and /dev/urandom which provide an interface to the kernel's random number generator. File /dev/random has major device number 1 and minor device number 8. File /dev/urandom has major device number 1 and minor device number 9.

 

Unable to open pty: No such file or directory

PDF
Unable to open pty: No such file or directory is a well know message when you try to enter the VPS from the hardware node using vzctl enter VEID. It is related to udev. To fix this issue edit the file /etc/rc.sysinit of the container:
 

Install OpenVZ and a CentOS container

PDF

A brief installation guide how to install OpenVZ. I recommend to use a separate partition for the containers and to use the filesystem type EXT3 for it. I assume you have CentOS already running and yum is available.

First we need to setup the OpenVZ repository. As root type:

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »
Page 1 of 2

Search






You are here: Home Howtos and FAQs Virtualization