linux和kvm之间的关系,linux内核 – KVM和LXC之间的区别

Linux Containers Compared to KVM Virtualization

The main difference between the KVM virtualization and Linux

Containers is that virtual machines require a separate kernel instance

to run on, while containers can be deployed from the host operating

system. This significantly reduces the complexity of container

creation and maintenance. Also, the reduced overhead lets you create a

large number of containers with faster startup and shutdown speeds.

Both Linux Containers and KVM virtualization have certain advantages

and drawbacks that influence the use cases in which these technologies

are typically applied:

KVM virtualization

KVM virtualization lets you boot full operating systems of different

kinds, even non-Linux systems. However, a complex setup is sometimes

needed. Virtual machines are resource-intensive so you can run only a

limited number of them on your host machine.

Running separate kernel instances generally means better separation

and security. If one of the kernels terminates unexpectedly, it does

not disable the whole system. On the other hand, this isolation makes

it harder for virtual machines to communicate with the rest of the

system, and therefore several interpretation mechanisms must be used.

Guest virtual machine is isolated from host changes, which lets you

run different versions of the same application on the host and virtual

machine. KVM also provides many useful features such as live

migration. For more information on these capabilities, see Red Hat

Enterprise Linux 7 Virtualization Deployment and Administration Guide.

Linux Containers:

The current version of Linux Containers is designed primarily to

support isolation of one or more applications, with plans to implement

full OS containers in the near future. You can create or destroy

containers very easily and they are convenient to maintain.

System-wide changes are visible in each container. For example, if you

upgrade an application on the host machine, this change will apply to

all sandboxes that run instances of this application.

Since containers are lightweight, a large number of them can run

simultaneously on a host machine. The theoretical maximum is 6000

containers and 12,000 bind mounts of root file system directories.

Also, containers are faster to create and have low startup times.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值