#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