Skip to Content

vzctl enter veid fails. Unable to get term attr: Invalid argument

Logging into OpenVZ containers using vzctl enter fails with the error 'Unable to get term attr: Invalid argument'.


Synopsis: This article will help Ezeelogin Gateway users fix the error encountered while logging into OpenVZ containers using vzctl, which displays the message "Unable to get term attr: Invalid argument".


Example: When the gateway user 'alex' attempts to access OpenVZ container through Ezeelogin and encounters the error "Unable to get term attr: Invalid argument" then the admin user need to login to the Ezeelogin GUI and disable virtual shell option for that user. After this modification, 'alex' can log back into the container without encountering the error message again.


Virtual Shell Enabled:

Virtual Shell Disabled:


Login to Ezeelogin GUI -> edit the user -> disable virtual shell.


Emergency CLI Method:

Execute the following command on the gateway server, replacing "username," to disable the virtual shell via the command line.

root@gateway ~]# php /usr/local/ezlogin/ez_queryrunner.php "update prefix_users set jail='0' where username='alex'"


Related Article:

Slowness in SSH Session

Enabling Virtualshell did not allow automatic su or sudo