Virtualization using LXC: Difference between revisions

From The Opensource Knowledgebase
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{| style="float:right;border:1px solid black"
| <strong> Host Details </strong>
|-
|
hostname: infrabase1 <br>
Network: 172.16.149.128/25 <br>
IP Address : 172.16.149.176 <br>
Subnet Mask: 255.255.255.128 <br>
Gateway: 172.16.176.129 <br>
DNS: 8.8.8.8 <br><br>
Domain search: networked.net, bamboo.com <br>
Operating System: Ubuntu 18.04 server <br>
sudo user: kedar <br><br>
FTP Client: Filezilla <br>
ssh client: terminal, reminna<br>
Text editors: gedit, sublime-text<br>
|}
=Introduction=
=Introduction=
LXC (Linux Containers) is an operating system level virtualization method for running several isolated Linux systems (containers) on a host running a linux operating system. The containers use the kernel of the host operating system and hence lxc does not have to virtualize he entire hardware of the host. Containers are relatively low on resource requirement and a singe host has the ability to run a very dense container environment, running several containers as opposed to a conventional KVM based virtualization. More information is available on [https://linuxcontainers.org/lxc/introduction/ here].
LXC (Linux Containers) is an operating system level virtualization method for running several isolated Linux systems (containers) on a host running a linux operating system. The containers use the kernel of the host operating system and hence lxc does not have to virtualize the entire hardware of the host. Containers are relatively low on resource requirement and a singe host has the ability to run a very dense container environment, running several containers as opposed to a conventional KVM based virtualization. More information is available on [https://linuxcontainers.org/lxc/introduction/ here].


=Preparing lxc Host=
=Preparing lxc Host=

Revision as of 05:43, 8 January 2020

Host Details

hostname: infrabase1
Network: 172.16.149.128/25
IP Address : 172.16.149.176
Subnet Mask: 255.255.255.128
Gateway: 172.16.176.129
DNS: 8.8.8.8

Domain search: networked.net, bamboo.com
Operating System: Ubuntu 18.04 server
sudo user: kedar

FTP Client: Filezilla
ssh client: terminal, reminna
Text editors: gedit, sublime-text

Introduction

LXC (Linux Containers) is an operating system level virtualization method for running several isolated Linux systems (containers) on a host running a linux operating system. The containers use the kernel of the host operating system and hence lxc does not have to virtualize the entire hardware of the host. Containers are relatively low on resource requirement and a singe host has the ability to run a very dense container environment, running several containers as opposed to a conventional KVM based virtualization. More information is available on here.

Preparing lxc Host

  • Ensure the

Installing lxc

Creating Containers

Useful commands

Container modification

SSH into container

Conclusion

Experimental