What does the error mean?
A VPS (virtual private server) is a small private computer that lives inside a bigger computer. Some VPS tools use a system called OpenVZ to create these small computers. Tools that work with OpenVZ look for a special file at /proc/vz/veinfo. This file lists the small computers running on a machine.
The message "No such file or directory" means the file is not there. That usually has one of two causes:
- You are inside a VPS. The VPS cannot see the host machine's OpenVZ files. This is normal.
- The computer does not use OpenVZ at all. It may use KVM or another system instead.
In most cases nothing is broken. A command simply expected OpenVZ and did not find it.
Steps to check what you have
This guide needs root access. Root is the all-powerful admin user on a server.
- Log in to your server with SSH. SSH is a safe way to type commands on a faraway computer.
- Run this command to see if the OpenVZ folder exists:
It lists the OpenVZ folder, or says the folder does not exist.ls /proc/vz - Run this command to see what kind of virtual machine you have:
It prints a name such assystemd-detect-virtopenvz,kvmornone. - If it prints
kvmor another name, stop using OpenVZ commands such asvzlistorvzctl. They do not work there. - If it prints
openvz, you are inside a container. Container commands that manage other containers only work on the host, not inside your VPS. - If the error appears when you run a script or a control panel tool, note the exact command that caused it.
When to contact support
If you believe your VPS should show this file, or a tool you need keeps failing, ask for help. Open a ticket at https://secure.hostvento.com/submitticket.php. Include the command you ran and the full error text. Also include the output of systemd-detect-virt.
Quick recap
- The file
/proc/vz/veinfobelongs to OpenVZ on the host machine. - Inside a VPS, or on a non-OpenVZ server, the file is normally missing.
- Use
systemd-detect-virtto see your virtualization type. - Do not use OpenVZ host commands inside a VPS.
- Open a support ticket if you still need help.