A
A
appplemac2012-04-19 22:33:58
LXC
appplemac, 2012-04-19 22:33:58

How fast can you create LXC containers?

Welcome all.
There is a certain project, for the normal functioning of which you need to quickly create a large number of virtual machines or containers and after a short time, compile certain code into them, execute it and extinguish the virtual machines.

I would like to know how fast you can create LXC containers from scratch, and are there any tricks (like copying ZFS zone clones to Solaris) that can speed up this process?

I would also like to hear if there are options for server virtualization that would be better suited for this task.

Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2012-04-19
@appplemac

[email protected]:~# time lxctl create blah.test.ru --rootsz 5G
You did not specify IP address! using default.
You did not specify default gateway! using default.
You did not specify DNS! using default.
Creating container blah.test.ru…
Creating root logical volume: /dev/vg00/blah.test.ru
Creating ext4 FS with options -b 4096: /dev/vg00/blah.test.ru
mke2fs 1.41.11 (14-Mar -2010)
Creating directory: /var/lxc/root/blah.test.ru
Fixing fstab…
Mounting FS…
Creating lxc configuration file: /var/lib/lxc/blah.test.ru/config
Setting MAC: FC:69: b6:07:eb:01
Deploying template: /var/lxc/templates/ubuntu-10.04-amd64.tar.gz
Regenerating SSH keys…
Setting hostname: blah
Setting search domain: test.ru
Adding blah.test.ru to autostart
Container blah.test.ru' created.
real 0m7.820s
user 0m5.300s
sys 0m1.870s

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question