D
D
Dmitry Lebedev2015-08-10 09:26:02
linux
Dmitry Lebedev, 2015-08-10 09:26:02

How to properly partition Centos 7 Server for virtual machines and containers?

Hello.
Tell me how to properly mark up a hard disk for virtual machines and containers?
Main OS Centos 7 minimal, hard 500GB, 8GB Ram.
And does it even make sense to do some special markup?
Also, what file systems should be used?
Learn the Zen of LVM, Docker, OpenVZ, etc. The server is more of a test/development, but definitely not a Production.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Shubnikov, 2015-08-21
@shubnikov_av

Don't look at virtualization through the lens of a hypervisor, try Docker

Y
younghacker, 2015-08-22
@younghacker

Correct/incorrect is a relative assessment.
I do so.
up to 500 mega under /boot,
then I create an LVM on which I put
/
/home
/log
swap
But the important thing is that I do not allocate all the free space, but only the necessary plus a small margin. With this approach, as long as there is free space on LVM, it is possible to do lvresize and resize2fs on the fly without rebooting the system.
I allocate disks for virtualon directly in LVM.
For virtualization I use KVM.

V
Vadim, 2015-08-11
@VanKLiF

Well, if the server is Test, then why bother with markup?
And so I would rather advise you to immediately install XenServer and similar hypervisors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question