====== Libvirt Installation ======
# Obsolete/Improper commands
# ovs-vsctl -v add-br virbr0
# ovs-vsctl add-port virbr0 lan0
# ovs-vsctl set-controller virbr0 ptcp:
# ovs-vsctl set bridge virbr0 stp_enable=true
====== WebVirtCloud Installation ======
su wvm
git clone https://github.com/retspen/webvirtcloud
virtualenv --system-site-packages ~/webvirtcloud-venv
source ~/webvirtcloud-venv/bin/activate
import random, string
haystack = string.ascii_letters + string.digits + string.punctuation
print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
cp webvirtcloud/settings.py.template webvirtcloud/settings.py
# now put secret key to webvirtcloud/settings.py
pip install -r conf/requirements.txt
python3 manage.py migrate
vim webvirtcloud/settings.py
~/webvirtcloud-venv/bin/gunicorn webvirtcloud.wsgi:application -c /var/srv/wvm/webvirtcloud/gunicorn.conf.py
python3 /var/srv/wvm/webvirtcloud/console/novncd
====== WebVirtCloud Upgrade ======
virtualenv --system-site-packages ~/webvirtcloud-venv --upgrade
source webvirtcloud-venv/bin/activate
cd webvirtcloud
pip install -r conf/requirements.txt
python3 manage.py makemigrations --merge
python3 manage.py migrate