Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Using Virtuozzo in the Amazon EC2

18 bytes added, 22:42, 10 September 2015
no edit summary
To connect your instance please use connection via SSH as ec2-user with the private key of the Keys Pair you deployed the instance with. For example:
# ssh -i <path to private key> ec2user@<elastic or public IP>
To operate with OpenVZ you need to enter sudo mode:
# sudo -i
==Configuring the external IP address for the container==
Create example container:
# prlctl create 100700 --vmtype ct
Assign Private IP and DNS server to the container:
# prlctl set 100700 --ipadd <Private IP address>/24 # prlctl set 100700 --nameserver 8.8.8.8
Start the container:
# prlctl start 100700
Enter the container and set root password:
# prlctl enter 100700 # passwd
Connect to the container via SSH:
# ssh root@<Elastic IP Address>
==Configuring NAT on the instance==
If you do not want to attach multiple Elastic IPs to your instance you may also to configure internal NAT on your OpenVZ instance. Please follow instructions in this article: https://openvz.org/Using_NAT_for_container_with_private_IPs
91
edits