Create XEN LXC DomU
- Read more about Create XEN LXC DomU
- Log in to post comments
DOMAIN_NAME=lxc
DOMAIN_MAC=00:00:00:ef:11:cc
DOMAIN_RAM=2Gb
DOMAIN_HDD=128Gb
xen-create-image \
--hostname=${DOMAIN_NAME} \
--dist=xenial \
--lvm=vg1 \
--fs=ext4 \
--dhcp \
--pygrub \
--mac=${DOMAIN_MAC} \
--mirror=http://archive.ubuntu.com/ubuntu \
--size=${DOMAIN_HDD} \
--memory=${DOMAIN_RAM} \
--swap=${DOMAIN_RAM} \
--genpass=0 \
--password=t00r \
--vcpus $(cat /proc/cpuinfo | grep processor | wc -l)
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto/12_lxc
mou