Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Fix the error "Unable to open /proc/vz/veinfo"

This guide explains why you may see this message on a VPS and what to do about it.

VPS and Cloud Servers2 min read6 steps

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.

  1. Log in to your server with SSH. SSH is a safe way to type commands on a faraway computer.
  2. Run this command to see if the OpenVZ folder exists:
    ls /proc/vz
    It lists the OpenVZ folder, or says the folder does not exist.
  3. Run this command to see what kind of virtual machine you have:
    systemd-detect-virt
    It prints a name such as openvz, kvm or none.
  4. If it prints kvm or another name, stop using OpenVZ commands such as vzlist or vzctl. They do not work there.
  5. If it prints openvz, you are inside a container. Container commands that manage other containers only work on the host, not inside your VPS.
  6. If the error appears when you run a script or a control panel tool, note the exact command that caused it.
Tip: Run the same command on the host machine only if you manage the host yourself. Customers on a normal VPS do not have access to the host.

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/veinfo belongs to OpenVZ on the host machine.
  • Inside a VPS, or on a non-OpenVZ server, the file is normally missing.
  • Use systemd-detect-virt to see your virtualization type.
  • Do not use OpenVZ host commands inside a VPS.
  • Open a support ticket if you still need help.