8.3.3. Failure to Log In to a Container

The container starts successfully, but you cannot log in.

Solution 1

You are trying to connect via SSH, but access is denied. Probably you have not set the password of the root user yet or there is no such user. In this case, use the prlctl set --userpasswd command. For example, for the container MyCT you might issue the following command:

# prlctl set MyCT --userpasswd root:secret

Solution 2

Check forwarding settings by issuing the following command:

# cat /proc/sys/net/ipv4/conf/venet0/forwarding

If it is 0 then change it to 1 by issuing the following command:

# echo 1 > /proc/sys/net/ipv4/conf/venet0/forwarding