User Tools

Site Tools


cluster:132

This is an old revision of the document!



Back

LXC Linux Containers

Ok, virtualization again. Trying this approach on a Dell PowerEdge 2950.

Starting with the latter.

When you get the SElinux policy, create the *.te file then

[root@petaltail ~]# vi lxc.te
[root@petaltail ~]# semodule -l | grep lxc
[root@petaltail ~]# checkmodule -M -m -o lxc.mod lxc.te
checkmodule:  loading policy configuration from lxc.te
checkmodule:  policy configuration loaded
checkmodule:  writing binary representation (version 10) to lxc.mod
[root@petaltail ~]# semodule_package -o lxc.pp -m lxc.mod
[root@petaltail ~]# semodule -i lxc.pp
[root@petaltail ~]# semodule -l | grep ^lx
lxc     1.0

Ah, I'm simply going to CentOS7 because LXC is fully integrated

Ah, no. Took a look at v7 and it's very different with the over engineering part of system control. Will learn later, back to v6.5. I also want to preserve the ability to run different OS flavors which is not possible under LXC containers.

KVM

First I build my v1 clone the way I wanted it from ISO and then customized it manually. Added second bridge (br1, public) later via virt-manager GUI (view the details of vm and then select Add Hardware). Power this clone up, add to a test queue, and sbumit some jobs to make it all works. Then clone.

virt-install --connect=qemu:///system -n v1 -r 1024 --vcpus=1 \
--disk path=/var/lib/libvirt/images/v1.img,size=8 \
-c /var/lib/libvirt/images/CentOS-6.5-x86_64-bin-DVD1.iso \
--vnc --noautoconsole --os-type linux --os-variant rhel6 --accelerate \
--network=bridge:br0 --hvm


Back

cluster/132.1407424731.txt.gz · Last modified: 2014/08/07 11:18 by hmeij