SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Quick Start Guide
using
Virtuozzo 7 (β) on AWS EC2
Twitter: @ebiken | ebiken.g@gmail.com
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 1
• Virtuozzo 7 is now available on Amazon EC2 since October 2015.
• Announcement:
• https://lists.openvz.org/pipermail/users/2015-October/006548.html
• It is free provided you use t2.micro instance type.
• This document aims to give you a quick overview of steps to setup
Virtuozzo on Amazon EC2.
• Steps was referenced from below OpenVZ wiki.
• Please check the page for further information.
• https://openvz.org/Using_Virtuozzo_in_the_Amazon_EC2
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 2
About this Document
• Virtuozzo only supports containers when deployed on Amazon EC2.
• In other words, you can not create VMs on Virtuozzo running on EC2.
• (At least as of today)
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 3
Important notes when using Virtuozzo on AWS EC2
1. Create EC2 (VPC) Instance
• Create instance based on Community AMI (Virtuozzo)
• Configure "Security Groups".
• Create Key Pair.
2. Configuring IP Address for Container
• To access container, you need to configure additional IP addresses.
• Allocate Private address
• Allocate Public (Elastic) IP address and associate with Private address
3. Connecting to the Instance via SSH
4. Create and Configure Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 4
Setting up Virtuozzo on Amazon EC2 : Overview
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 5
a. Sign into the AWS web console.
b. Click “EC2”
c. Click “Launch Instance”
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 6
a. Chose “Community AMIs”
b. Search for “Virtuozzo”
c. Click “Select”
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 7
a. Select “t2.micro” for free try.
b. Click “Review and Launch”
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 8
By default, SSH is allowed from
any address.
a. Click “Select”
Change any configuration to your preferred value.
Recommend changing “Security Groups”.
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 9
b. Click “Add Rule”
Example to only allow access from the current address.
a. Select “My IP”
IPv4 Address you are currently
accessing from is automatically filled.
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 10
a. Click “Launch”
Setting of “Security Groups” was changed.
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 11
“Key Pair” creation wizard would start after
clicking “Launch” in previous slide.
1. Create EC2 (VPC) Instance
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 12
a. Select “Create a new key pair”
Create and Download Key Pair (Used later for SSH access)
b. Enter “Key pair name” and “Download Key Pair”
c. Click “Launch Instances”
2. Configuring IP Address for Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 13
To access container, you need to configure additional IP addresses.
• Allocate Private address
• Allocate Public IP address and map with Private address
a. Select “Actions” -> “Networking” -> “Manage Private IP Addresses”
2. Configuring IP Address for Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 14
a. Click “Assign new IP”
b. Click “Yes, Update”
d. Close the dialog window.
c. Address will be assigned.
2. Configuring IP Address for Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 15
a. Click “Elastic IPs”
b. Click “Allocate New Address”
Allocating Public IP Address (Elastic Address)
2. Configuring IP Address for Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 16
a. Select “VPC” (not EC2)
c. Click “Close”
Allocating Public IP Address (Elastic Address)
b. Select “Yes Allocate”
2. Configuring IP Address for Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 17
!! Caution !!
If EC2 was selected, instance would not be
shown in the dialog box when associating it with
instance / private address.
2. Configuring IP Address for Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 18
a. Select “Associate Address”
b. Enter “Instance ID”
Address will be associated.
Associate Public (Elastic) with Private IP Address.
c. Select newly allocated private address
d. Click “Associate”
3. Connecting to the Instance via SSH
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 19
Example of connecting to the Instance via SSH (using TeraTerm)
a. Enter Public IP address of the instance.
b. User = “ec2user” / No Passphrase.
c. Specify “*.pem” file of the “Key Pair”.
d. Click “OK”
4. Create and Configure Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 20
a. Check release. set hostname.
[ec2user@ip-172-30-x-xx ~]$ cat /etc/redhat-release
CloudLinux release 7.1 (Vladimir Komarov)
[ec2user@ip-172-30-x-xx ~]$ cat /etc/parallels-release
Virtuozzo release 7.0.0 (495)
[ec2user@ip-172-30-x-xx ~]$ sudo -i
[root@ip-172-30-x-xx ~]# hostnamectl set-hostname vz7
[root@vz7 ~]# hostnamectl status
Static hostname: vz7
Icon name: computer-vm
Chassis: vm
Machine ID: 85bd28436587402eb9b5ce23627487e7
Boot ID: 587a70b90bcb4d2e9813e03048a0e9c2
Virtualization: xen
Operating System: Virtuozzo release 7.0.0 (495)
CPE OS Name: cpe:/o:virtuozzoproject:vz:7
Kernel: Linux 3.10.0-123.1.2.vz7.5.29
Architecture: x86_64
Check Release
Set hostname
Virtuozzo 7 (β) is based on CloudLinux 7.1, which is based on CentOS7 / RHEL7.
Thus, General Linux commands are identical to above distributions.
4. Create and Configure Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 21
b. Container creation / configuration
[ec2user@vz7 ~]$ prlctl create 100700 --vmtype ct
Creating the Virtuozzo Container...
The Container has been successfully created.
[ec2user@vz7 ~]$ prlctl set 100700 --ipadd 172.30.x.xxx/24
Enable automatic reconfiguration for this network adapter.
Configure venet0 (+) type='routed'
ips='172.30.x.xxx/255.255.255.0 '
Configured venet0 (+) type='routed'
ips='172.30.x.xxx/255.255.255.0 '
The CT has been successfully configured.
[ec2user@vz7 ~]$ prlctl set 100700 --nameserver 8.8.8.8
The CT has been successfully configured.
[ec2user@vz7 ~]$ prlctl set 100700 --hostname ct100700
The CT has been successfully configured.
[ec2user@vz7 ~]$ prlctl start 100700
Starting the CT...
The CT has been successfully started.
Set name server
and hostname
Create container.
(Container ID = 100700 can be
any number above 100)
Set private IP address allocated on
AWS console.
Start container
4. Create and Configure Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 22
c. Check container. Set container password.
[ec2user@vz7 ~]$ sudo -i
[root@vz7 ~]# prlctl list
UUID STATUS IP_ADDR T NAME
{319323f3-7333-4286-98cc-12777e6d9c3c} running 172.30.x.xxx CT 100700
[root@vz7 ~]# prlctl enter 100700
entered into CT
CT-319323f3 /# passwd
Changing password for user root.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
“prlctl list” will show containers on the host.
Enter container and set password.
(password will be used when SSH to the container)
4. Create and Configure Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 23
d. Login to the container via SSH.
SSH to “Elastic IP” associated with
Private IP address of the container.
User name : root
Passphrase: <the one you set in the container>
No need to specify “*.pem” file.
(Only User name / Passphrase)
4. Create and Configure Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 24
e. Sample output inside Container
[root@ct100700 ~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.2 19284 1452 ? Ss 10:17 0:00 init
root 2 0.0 0.0 0 0 ? S 10:17 0:00 [kthreadd/319323]
root 3 0.0 0.0 0 0 ? S 10:17 0:00 [khelper]
root 140 0.0 0.1 10692 696 ? S<s 10:18 0:00 /sbin/udevd -d
root 511 0.0 0.2 179560 1344 ? Sl 10:18 0:00 /sbin/rsyslogd -i /var/ru
root 530 0.0 0.2 66276 1136 ? Ss 10:18 0:00 /usr/sbin/sshd
root 540 0.0 0.1 21768 908 ? Ss 10:18 0:00 xinetd -stayalive -pidfil
root 551 0.0 0.1 66460 904 ? Ss 10:18 0:00 /usr/sbin/saslauthd -m /v
root 552 0.0 0.1 66460 652 ? S 10:18 0:00 /usr/sbin/saslauthd -m /v
root 573 0.0 0.4 82640 2260 ? Ss 10:19 0:00 sendmail: accepting conne
root 582 0.0 0.8 98436 4428 ? Ss 10:19 0:00 sshd: root@pts/0
root 584 0.0 0.3 11492 1620 pts/0 Ss+ 10:19 0:00 -bash
root 597 0.0 0.8 98440 4424 ? Ss 10:20 0:00 sshd: root@pts/1
smmsp 599 0.0 0.3 78236 2052 ? Ss 10:20 0:00 sendmail: Queue runner@01
root 610 0.0 0.6 175264 3600 ? Ss 10:20 0:00 /usr/sbin/httpd
apache 615 0.0 0.4 175264 2220 ? S 10:20 0:00 /usr/sbin/httpd
root 622 0.0 0.2 20028 1204 ? Ss 10:20 0:00 crond
root 629 0.0 0.1 4116 596 ? Ss+ 10:20 0:00 /sbin/mingetty console
root 630 0.0 0.1 4116 596 ? Ss+ 10:20 0:00 /sbin/mingetty tty2
root 631 0.0 0.3 11492 1744 pts/1 Ss 10:20 0:00 -bash
root 645 0.0 0.2 13372 1060 pts/1 R+ 10:24 0:00 ps aux
[root@ct100700 ~]#
Small number of processes.
(PID starts from 1 == init)
4. Create and Configure Container
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 25
e. Sample output inside Container
[root@ct100700 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/void
inet 127.0.0.1/32 scope host venet0
valid_lft forever preferred_lft forever
inet 172.30.x.xxx/24 brd 172.30.0.255 scope global venet0:0
valid_lft forever preferred_lft forever
[root@ct100700 ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)
[root@ct100700 ~]# cat /etc/parallels-release
cat: /etc/parallels-release: No such file or directory
Only “lo” and “venet”.
No “eth” etc having MAC addr.
Running “CentOS 6.7”
(different distribution from the host)
No “/etc/parallels-release”
Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 26
Checkout OpenVZ wiki for more info!!
https://openvz.org/
Feedback to the slides is also welcome.
Twitter: @ebiken | email: ebiken.g@gmail.com

Weitere ähnliche Inhalte

Was ist angesagt?

버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
버전관리를 들어본적 없는 사람들을 위한 DVCS - Git버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
민태 김
 
Git flow for daily use
Git flow for daily useGit flow for daily use
Git flow for daily use
Mediacurrent
 

Was ist angesagt? (20)

왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
 
Docker入門: コンテナ型仮想化技術の仕組みと使い方
Docker入門: コンテナ型仮想化技術の仕組みと使い方Docker入門: コンテナ型仮想化技術の仕組みと使い方
Docker入門: コンテナ型仮想化技術の仕組みと使い方
 
버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
버전관리를 들어본적 없는 사람들을 위한 DVCS - Git버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
버전관리를 들어본적 없는 사람들을 위한 DVCS - Git
 
nftables: the Next Generation Firewall in Linux
nftables: the Next Generation Firewall in Linuxnftables: the Next Generation Firewall in Linux
nftables: the Next Generation Firewall in Linux
 
Red Hat OpenStack 17 저자직강+스터디그룹_1주차
Red Hat OpenStack 17 저자직강+스터디그룹_1주차Red Hat OpenStack 17 저자직강+스터디그룹_1주차
Red Hat OpenStack 17 저자직강+스터디그룹_1주차
 
twMVC#44 讓我們用 k6 來進行壓測吧
twMVC#44 讓我們用 k6 來進行壓測吧twMVC#44 讓我們用 k6 來進行壓測吧
twMVC#44 讓我們用 k6 來進行壓測吧
 
Git flow for daily use
Git flow for daily useGit flow for daily use
Git flow for daily use
 
[GitOps] Argo CD on GKE (v0.9.2).pdf
[GitOps] Argo CD on GKE (v0.9.2).pdf[GitOps] Argo CD on GKE (v0.9.2).pdf
[GitOps] Argo CD on GKE (v0.9.2).pdf
 
kube-system落としてみました
kube-system落としてみましたkube-system落としてみました
kube-system落としてみました
 
Dockerfile を書くためのベストプラクティス解説編
Dockerfile を書くためのベストプラクティス解説編Dockerfile を書くためのベストプラクティス解説編
Dockerfile を書くためのベストプラクティス解説編
 
java vs C#
java vs C#java vs C#
java vs C#
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Docker Swarm入門
Docker Swarm入門Docker Swarm入門
Docker Swarm入門
 
PHP AST 徹底解説
PHP AST 徹底解説PHP AST 徹底解説
PHP AST 徹底解説
 
Muninではじめる実践★リソース監視 -俺のサーバがこんなに重いはずがない、を乗り切るために-
Muninではじめる実践★リソース監視 -俺のサーバがこんなに重いはずがない、を乗り切るために-Muninではじめる実践★リソース監視 -俺のサーバがこんなに重いはずがない、を乗り切るために-
Muninではじめる実践★リソース監視 -俺のサーバがこんなに重いはずがない、を乗り切るために-
 
[오픈소스컨설팅] Docker를 활용한 Gitlab CI/CD 구성 테스트
[오픈소스컨설팅] Docker를 활용한 Gitlab CI/CD 구성 테스트[오픈소스컨설팅] Docker를 활용한 Gitlab CI/CD 구성 테스트
[오픈소스컨설팅] Docker를 활용한 Gitlab CI/CD 구성 테스트
 
Jenkins 2.0 Pipeline & Blue Ocean
Jenkins 2.0 Pipeline & Blue OceanJenkins 2.0 Pipeline & Blue Ocean
Jenkins 2.0 Pipeline & Blue Ocean
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
OpenID Connect 入門 〜コンシューマーにおけるID連携のトレンド〜
OpenID Connect 入門 〜コンシューマーにおけるID連携のトレンド〜OpenID Connect 入門 〜コンシューマーにおけるID連携のトレンド〜
OpenID Connect 入門 〜コンシューマーにおけるID連携のトレンド〜
 
MongoDB Configパラメータ解説
MongoDB Configパラメータ解説MongoDB Configパラメータ解説
MongoDB Configパラメータ解説
 

Ähnlich wie Quick Start Guide using Virtuozzo 7 (β) on AWS EC2

Chris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialChris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks Tutorial
Cohesive Networks
 

Ähnlich wie Quick Start Guide using Virtuozzo 7 (β) on AWS EC2 (20)

Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howto
 
Chris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks TutorialChris Swan ONUG Academy - Container Networks Tutorial
Chris Swan ONUG Academy - Container Networks Tutorial
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWS
 
Jump into Squeak - Integrate Squeak projects with Docker & Github
Jump into Squeak - Integrate Squeak projects with Docker & GithubJump into Squeak - Integrate Squeak projects with Docker & Github
Jump into Squeak - Integrate Squeak projects with Docker & Github
 
One-Man Ops
One-Man OpsOne-Man Ops
One-Man Ops
 
Continuous Integration With Jenkins Docker SQL Server
Continuous Integration With Jenkins Docker SQL ServerContinuous Integration With Jenkins Docker SQL Server
Continuous Integration With Jenkins Docker SQL Server
 
Azure from scratch part 4
Azure from scratch part 4Azure from scratch part 4
Azure from scratch part 4
 
High available BizTalk infrastructure on Azure IaaS
High available BizTalk infrastructure on Azure IaaSHigh available BizTalk infrastructure on Azure IaaS
High available BizTalk infrastructure on Azure IaaS
 
OSS Japan 2019 service mesh bridging Kubernetes and legacy
OSS Japan 2019 service mesh bridging Kubernetes and legacyOSS Japan 2019 service mesh bridging Kubernetes and legacy
OSS Japan 2019 service mesh bridging Kubernetes and legacy
 
Learning how AWS implement AWS VPC CNI
Learning how AWS implement AWS VPC CNILearning how AWS implement AWS VPC CNI
Learning how AWS implement AWS VPC CNI
 
Web rtc, Media stream, Peer connection, Setting up STUN and TURN on Linux and...
Web rtc, Media stream, Peer connection, Setting up STUN and TURN on Linux and...Web rtc, Media stream, Peer connection, Setting up STUN and TURN on Linux and...
Web rtc, Media stream, Peer connection, Setting up STUN and TURN on Linux and...
 
Deep Dive OpenShitt on Azure & .NET Core on OpenShift
Deep Dive OpenShitt on Azure & .NET Core on OpenShiftDeep Dive OpenShitt on Azure & .NET Core on OpenShift
Deep Dive OpenShitt on Azure & .NET Core on OpenShift
 
Kubelet with no Kubernetes Masters | DevNation Tech Talk
Kubelet with no Kubernetes Masters | DevNation Tech TalkKubelet with no Kubernetes Masters | DevNation Tech Talk
Kubelet with no Kubernetes Masters | DevNation Tech Talk
 
citus™ iot ecosystem
citus™ iot ecosystemcitus™ iot ecosystem
citus™ iot ecosystem
 
Building an HPC Cluster in 10 Minutes
Building an HPC Cluster in 10 MinutesBuilding an HPC Cluster in 10 Minutes
Building an HPC Cluster in 10 Minutes
 
The Container Security Checklist
The Container Security Checklist The Container Security Checklist
The Container Security Checklist
 
Microservices Server - MSS Workshop
Microservices Server - MSS WorkshopMicroservices Server - MSS Workshop
Microservices Server - MSS Workshop
 
Advancing Bitcoin 2019 - BTCPayServer Architecture
Advancing Bitcoin 2019  - BTCPayServer ArchitectureAdvancing Bitcoin 2019  - BTCPayServer Architecture
Advancing Bitcoin 2019 - BTCPayServer Architecture
 
Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
 
Devstack lab guide
Devstack lab guideDevstack lab guide
Devstack lab guide
 

Mehr von Kentaro Ebisawa

Mehr von Kentaro Ebisawa (20)

P4 Updates (2020) (Japanese)
P4 Updates (2020) (Japanese)P4 Updates (2020) (Japanese)
P4 Updates (2020) (Japanese)
 
Barefoot Faster™ 日本語紹介
Barefoot Faster™ 日本語紹介Barefoot Faster™ 日本語紹介
Barefoot Faster™ 日本語紹介
 
IETF106 Hackathon 報告 & P4 based Switch の課題と未来
IETF106 Hackathon 報告 & P4 based Switch の課題と未来IETF106 Hackathon 報告 & P4 based Switch の課題と未来
IETF106 Hackathon 報告 & P4 based Switch の課題と未来
 
MPLS Japan 2019 : Data & Control Plane を繋ぐ API
MPLS Japan 2019 : Data & Control Plane を繋ぐ APIMPLS Japan 2019 : Data & Control Plane を繋ぐ API
MPLS Japan 2019 : Data & Control Plane を繋ぐ API
 
Yang Tools Quick Memo
Yang Tools Quick MemoYang Tools Quick Memo
Yang Tools Quick Memo
 
In Network Computing Prototype Using P4 at KSC/KREONET 2019
In Network Computing Prototype Using P4 at KSC/KREONET 2019In Network Computing Prototype Using P4 at KSC/KREONET 2019
In Network Computing Prototype Using P4 at KSC/KREONET 2019
 
Comparison of SRv6 Extensions uSID, SRv6+, C-SRH
Comparison of SRv6 Extensions uSID, SRv6+, C-SRHComparison of SRv6 Extensions uSID, SRv6+, C-SRH
Comparison of SRv6 Extensions uSID, SRv6+, C-SRH
 
Interop2019 Toyota Netcope P4
Interop2019 Toyota Netcope P4Interop2019 Toyota Netcope P4
Interop2019 Toyota Netcope P4
 
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U TranslationIETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
 
p4srv6 (P4-16) design document rev1.0
p4srv6 (P4-16) design document rev1.0p4srv6 (P4-16) design document rev1.0
p4srv6 (P4-16) design document rev1.0
 
SRv6 Mobile User Plane : Initial POC and Implementation
SRv6 Mobile User Plane : Initial POC and ImplementationSRv6 Mobile User Plane : Initial POC and Implementation
SRv6 Mobile User Plane : Initial POC and Implementation
 
JANOG43 Forefront of SRv6, Open Source Implementations
JANOG43 Forefront of SRv6, Open Source ImplementationsJANOG43 Forefront of SRv6, Open Source Implementations
JANOG43 Forefront of SRv6, Open Source Implementations
 
Using GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlUsing GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnl
 
GTPing, How To
GTPing, How ToGTPing, How To
GTPing, How To
 
"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越
 
SRv6 Mobile User Plane P4 proto-type
SRv6 Mobile User Plane P4 proto-typeSRv6 Mobile User Plane P4 proto-type
SRv6 Mobile User Plane P4 proto-type
 
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
 
Zebra 2.0 in Hybrid Cloud Era
Zebra 2.0 in Hybrid Cloud EraZebra 2.0 in Hybrid Cloud Era
Zebra 2.0 in Hybrid Cloud Era
 
p4alu: Arithmetic Logic Unit in P4
p4alu: Arithmetic Logic Unit in P4p4alu: Arithmetic Logic Unit in P4
p4alu: Arithmetic Logic Unit in P4
 
zebra & openconfigd Introduction
zebra & openconfigd Introductionzebra & openconfigd Introduction
zebra & openconfigd Introduction
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Quick Start Guide using Virtuozzo 7 (β) on AWS EC2

  • 1. Quick Start Guide using Virtuozzo 7 (β) on AWS EC2 Twitter: @ebiken | ebiken.g@gmail.com Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 1
  • 2. • Virtuozzo 7 is now available on Amazon EC2 since October 2015. • Announcement: • https://lists.openvz.org/pipermail/users/2015-October/006548.html • It is free provided you use t2.micro instance type. • This document aims to give you a quick overview of steps to setup Virtuozzo on Amazon EC2. • Steps was referenced from below OpenVZ wiki. • Please check the page for further information. • https://openvz.org/Using_Virtuozzo_in_the_Amazon_EC2 Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 2 About this Document
  • 3. • Virtuozzo only supports containers when deployed on Amazon EC2. • In other words, you can not create VMs on Virtuozzo running on EC2. • (At least as of today) Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 3 Important notes when using Virtuozzo on AWS EC2
  • 4. 1. Create EC2 (VPC) Instance • Create instance based on Community AMI (Virtuozzo) • Configure "Security Groups". • Create Key Pair. 2. Configuring IP Address for Container • To access container, you need to configure additional IP addresses. • Allocate Private address • Allocate Public (Elastic) IP address and associate with Private address 3. Connecting to the Instance via SSH 4. Create and Configure Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 4 Setting up Virtuozzo on Amazon EC2 : Overview
  • 5. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 5 a. Sign into the AWS web console. b. Click “EC2” c. Click “Launch Instance”
  • 6. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 6 a. Chose “Community AMIs” b. Search for “Virtuozzo” c. Click “Select”
  • 7. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 7 a. Select “t2.micro” for free try. b. Click “Review and Launch”
  • 8. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 8 By default, SSH is allowed from any address. a. Click “Select” Change any configuration to your preferred value. Recommend changing “Security Groups”.
  • 9. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 9 b. Click “Add Rule” Example to only allow access from the current address. a. Select “My IP” IPv4 Address you are currently accessing from is automatically filled.
  • 10. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 10 a. Click “Launch” Setting of “Security Groups” was changed.
  • 11. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 11 “Key Pair” creation wizard would start after clicking “Launch” in previous slide.
  • 12. 1. Create EC2 (VPC) Instance Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 12 a. Select “Create a new key pair” Create and Download Key Pair (Used later for SSH access) b. Enter “Key pair name” and “Download Key Pair” c. Click “Launch Instances”
  • 13. 2. Configuring IP Address for Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 13 To access container, you need to configure additional IP addresses. • Allocate Private address • Allocate Public IP address and map with Private address a. Select “Actions” -> “Networking” -> “Manage Private IP Addresses”
  • 14. 2. Configuring IP Address for Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 14 a. Click “Assign new IP” b. Click “Yes, Update” d. Close the dialog window. c. Address will be assigned.
  • 15. 2. Configuring IP Address for Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 15 a. Click “Elastic IPs” b. Click “Allocate New Address” Allocating Public IP Address (Elastic Address)
  • 16. 2. Configuring IP Address for Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 16 a. Select “VPC” (not EC2) c. Click “Close” Allocating Public IP Address (Elastic Address) b. Select “Yes Allocate”
  • 17. 2. Configuring IP Address for Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 17 !! Caution !! If EC2 was selected, instance would not be shown in the dialog box when associating it with instance / private address.
  • 18. 2. Configuring IP Address for Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 18 a. Select “Associate Address” b. Enter “Instance ID” Address will be associated. Associate Public (Elastic) with Private IP Address. c. Select newly allocated private address d. Click “Associate”
  • 19. 3. Connecting to the Instance via SSH Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 19 Example of connecting to the Instance via SSH (using TeraTerm) a. Enter Public IP address of the instance. b. User = “ec2user” / No Passphrase. c. Specify “*.pem” file of the “Key Pair”. d. Click “OK”
  • 20. 4. Create and Configure Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 20 a. Check release. set hostname. [ec2user@ip-172-30-x-xx ~]$ cat /etc/redhat-release CloudLinux release 7.1 (Vladimir Komarov) [ec2user@ip-172-30-x-xx ~]$ cat /etc/parallels-release Virtuozzo release 7.0.0 (495) [ec2user@ip-172-30-x-xx ~]$ sudo -i [root@ip-172-30-x-xx ~]# hostnamectl set-hostname vz7 [root@vz7 ~]# hostnamectl status Static hostname: vz7 Icon name: computer-vm Chassis: vm Machine ID: 85bd28436587402eb9b5ce23627487e7 Boot ID: 587a70b90bcb4d2e9813e03048a0e9c2 Virtualization: xen Operating System: Virtuozzo release 7.0.0 (495) CPE OS Name: cpe:/o:virtuozzoproject:vz:7 Kernel: Linux 3.10.0-123.1.2.vz7.5.29 Architecture: x86_64 Check Release Set hostname Virtuozzo 7 (β) is based on CloudLinux 7.1, which is based on CentOS7 / RHEL7. Thus, General Linux commands are identical to above distributions.
  • 21. 4. Create and Configure Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 21 b. Container creation / configuration [ec2user@vz7 ~]$ prlctl create 100700 --vmtype ct Creating the Virtuozzo Container... The Container has been successfully created. [ec2user@vz7 ~]$ prlctl set 100700 --ipadd 172.30.x.xxx/24 Enable automatic reconfiguration for this network adapter. Configure venet0 (+) type='routed' ips='172.30.x.xxx/255.255.255.0 ' Configured venet0 (+) type='routed' ips='172.30.x.xxx/255.255.255.0 ' The CT has been successfully configured. [ec2user@vz7 ~]$ prlctl set 100700 --nameserver 8.8.8.8 The CT has been successfully configured. [ec2user@vz7 ~]$ prlctl set 100700 --hostname ct100700 The CT has been successfully configured. [ec2user@vz7 ~]$ prlctl start 100700 Starting the CT... The CT has been successfully started. Set name server and hostname Create container. (Container ID = 100700 can be any number above 100) Set private IP address allocated on AWS console. Start container
  • 22. 4. Create and Configure Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 22 c. Check container. Set container password. [ec2user@vz7 ~]$ sudo -i [root@vz7 ~]# prlctl list UUID STATUS IP_ADDR T NAME {319323f3-7333-4286-98cc-12777e6d9c3c} running 172.30.x.xxx CT 100700 [root@vz7 ~]# prlctl enter 100700 entered into CT CT-319323f3 /# passwd Changing password for user root. New password: Retype new password: passwd: all authentication tokens updated successfully. “prlctl list” will show containers on the host. Enter container and set password. (password will be used when SSH to the container)
  • 23. 4. Create and Configure Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 23 d. Login to the container via SSH. SSH to “Elastic IP” associated with Private IP address of the container. User name : root Passphrase: <the one you set in the container> No need to specify “*.pem” file. (Only User name / Passphrase)
  • 24. 4. Create and Configure Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 24 e. Sample output inside Container [root@ct100700 ~]# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.2 19284 1452 ? Ss 10:17 0:00 init root 2 0.0 0.0 0 0 ? S 10:17 0:00 [kthreadd/319323] root 3 0.0 0.0 0 0 ? S 10:17 0:00 [khelper] root 140 0.0 0.1 10692 696 ? S<s 10:18 0:00 /sbin/udevd -d root 511 0.0 0.2 179560 1344 ? Sl 10:18 0:00 /sbin/rsyslogd -i /var/ru root 530 0.0 0.2 66276 1136 ? Ss 10:18 0:00 /usr/sbin/sshd root 540 0.0 0.1 21768 908 ? Ss 10:18 0:00 xinetd -stayalive -pidfil root 551 0.0 0.1 66460 904 ? Ss 10:18 0:00 /usr/sbin/saslauthd -m /v root 552 0.0 0.1 66460 652 ? S 10:18 0:00 /usr/sbin/saslauthd -m /v root 573 0.0 0.4 82640 2260 ? Ss 10:19 0:00 sendmail: accepting conne root 582 0.0 0.8 98436 4428 ? Ss 10:19 0:00 sshd: root@pts/0 root 584 0.0 0.3 11492 1620 pts/0 Ss+ 10:19 0:00 -bash root 597 0.0 0.8 98440 4424 ? Ss 10:20 0:00 sshd: root@pts/1 smmsp 599 0.0 0.3 78236 2052 ? Ss 10:20 0:00 sendmail: Queue runner@01 root 610 0.0 0.6 175264 3600 ? Ss 10:20 0:00 /usr/sbin/httpd apache 615 0.0 0.4 175264 2220 ? S 10:20 0:00 /usr/sbin/httpd root 622 0.0 0.2 20028 1204 ? Ss 10:20 0:00 crond root 629 0.0 0.1 4116 596 ? Ss+ 10:20 0:00 /sbin/mingetty console root 630 0.0 0.1 4116 596 ? Ss+ 10:20 0:00 /sbin/mingetty tty2 root 631 0.0 0.3 11492 1744 pts/1 Ss 10:20 0:00 -bash root 645 0.0 0.2 13372 1060 pts/1 R+ 10:24 0:00 ps aux [root@ct100700 ~]# Small number of processes. (PID starts from 1 == init)
  • 25. 4. Create and Configure Container Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 25 e. Sample output inside Container [root@ct100700 ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN link/void inet 127.0.0.1/32 scope host venet0 valid_lft forever preferred_lft forever inet 172.30.x.xxx/24 brd 172.30.0.255 scope global venet0:0 valid_lft forever preferred_lft forever [root@ct100700 ~]# cat /etc/redhat-release CentOS release 6.7 (Final) [root@ct100700 ~]# cat /etc/parallels-release cat: /etc/parallels-release: No such file or directory Only “lo” and “venet”. No “eth” etc having MAC addr. Running “CentOS 6.7” (different distribution from the host) No “/etc/parallels-release”
  • 26. Quick Start Guide using Virtuozzo 7 (beta) on AWS EC2 | 2015/10/31 26 Checkout OpenVZ wiki for more info!! https://openvz.org/ Feedback to the slides is also welcome. Twitter: @ebiken | email: ebiken.g@gmail.com

Hinweis der Redaktion

  1. Change any configuration to your preferred value. Recommend changing Security Groups while testing.
  2. Change any configuration to your preferred value. Recommend changing Security Groups while testing.
  3. Change any configuration to your preferred value. Recommend changing Security Groups while testing.