Tag: vz

VPS login problem: enter into Container VEID failed

You may receive the following message on accessing a VPS from the host server: # vzctl enter 101 enter into VE 101 failed Unable to open pty: No such file or directory The reason behind is the missing tty/pty files OR the udev devices. There are two ways of creating […]

Howto: Re-create/re-install a VPS

How to re-create/re-install a OpenVZ VPS? 1) Make a backup of the configuration file: cp -p /etc/sysconfig/vz-scripts/VEID.conf /etc/sysconfig/vz-scripts/VEID.conf_old 2) Stop the VPS: vzctl stop VEID 3) Destroy/Terminate the VPS: vzctl destroy VEID 4) Create the VPS using the OS templates stored under /vz/template/cache directory: vzctl recreate VEID –ostemplate os-template-name 5) […]

Unable to get tty name: Bad file descriptor

You may receive an error as “Unable to get tty name: Bad file descriptor” while accessing a VPS from the host server. The problem occur when some files from /lib directory of the VPS goes missing. See example below: root@hostserver:/# vzctl enter VEID entered into CT VEID Unable to get […]

Quota getstat syscall: Inappropriate ioctl for device

You may receive the error message while starting a VPS on OpenVZ server. vzquota : (error) Quota getstat syscall for id 101: Inappropriate ioctl for device vzquota init failed [3] This is a typical Quota error message on OpenVZ servers while starting a VPS. The message indicates that you need […]

How to clone an OpenVZ virtual machine

I need sometimes to clone a vps in an openvz environment, so here you can find three methods to do this task: first option: # vzctl stop 101 Stopping VE … VE was stopped VE is unmounted # cp -r /vz/private/101 /vz/private/202 # cp /etc/vz/conf/101.conf /etc/vz/conf/202.conf # vzctl start 202 […]

Unable to start init, probably incorrect template

You may receive an error “Unable to start init, probably incorrect template” while starting a VPS. The “incorrect template” problem occurs when the “init” on the VPS goes missing. The init file resides under /sbin i.e. check ls -la /vz/private/VEID/sbin/init of a VPS. If the file is missing or the […]

Unable to fork: Cannot allocate memory

You see a message “Unable to fork: Cannot allocate memory” while logging to a VPS from the host server. The reason is the VPS is running out of resources especially RAM. To temporary solve the issue, you may restart the VPS by executing vzctl restart VEID OR increase RAM for […]