OpenVZ control

Here one can find interesting information about OpenVZ management and maintenance. OpenVZ control panels information also goes here

OpenVZ control

Postby lik » Wed Dec 10, 2008 6:03 am

#vzctl enter 270
enter into VE 270 failed
Unable to open pty: No such file or directory

Execute following commands to create tty and pty devices:
Code: Select all
vzctl exec 270 /sbin/MAKEDEV pty
vzctl exec 270 /sbin/MAKEDEV tty

Sometimes, after "Fix Centos Dev" command, following should be executed:
Code: Select all
vzctl exec 101 MAKEDEV ptmx

To change hostname of the currently existing virtual machine, use following command:
Code: Select all
vzctl set VMID --hostname srv1.domain.com --save

To add/remove IP from the VM use following command:
Code: Select all
vzctl set VMID --ipadd 10.10.10.10 --save
vzctl set VMID --ipdel 10.10.10.10 --save

If you want to find which VPSID is running a particular process, find the process ID from "top" and use the following command to find it out:
Code: Select all
vzpid <pid>

example:
Code: Select all
[root@srv1 ~]# vzpid 29434
Pid VPSID Name
29434 3330 smaug

How do I solve vzquota error: "vzquota : (error) Quota on syscall for 101: Device or resource busy"?
Please make sure there are no open files inside VE root and/or private area (and your current working directory is not inside VE root/private area) by running the following command on the hardware node:
Code: Select all
# lsof 2> /dev/null | egrep '/vz/root/101|/vz/private/101'

If there are any processes which hold a directory inside VE root/private area - kill them.

Good quick manual is located at http://www.altlinux.org/OpenVZ
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

OpenVZ templates

Postby lik » Sat Aug 01, 2009 10:08 pm

Home of the precreated OS templates contributed by OpenVZ community:

http://download.openvz.org/template/precreated/contrib/

For the templates that are shipped with OpenVZ, go to:

http://download.openvz.org/template/precreated.
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am


Return to OpenVZ related

 


  • Related topics
    Replies
    Views
    Last post
cron