[GH-ISSUE #23] Updates for your install instructions #16

Open
opened 2026-02-27 15:57:00 +03:00 by kerem · 0 comments
Owner

Originally created by @claytondukes on GitHub (Jun 23, 2015).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/23

Couple of notes:
The section for
cd ..
sudo mv webvirtcloud /srv
should be moved up since where you have it will set the wrong path in venv/bin/gunicorn (it sets it to /root/webvirtcloud).
You also need to add www-data to the proper groups.
So the guide should be:

sudo apt-get -y install git python-virtualenv python-dev \
libxml2-dev libvirt-dev zlib1g-dev nginx supervisor
sudo mkdir /srv && cd /srv
git clone https://github.com/retspen/webvirtcloud && cd webvirtcloud
virtualenv venv
source venv/bin/activate
pip install -r conf/requirements.txt
python manage.py migrate
sudo cp conf/supervisor/webvirtcloud.conf /etc/supervisor/conf.d
sudo cp conf/nginx/webvirtcloud.conf /etc/nginx/conf.d
sudo chown -R www-data:www-data /srv/webvirtcloud

Restart services

sudo service nginx restart
sudo service supervisor restart

Install

wget -O - https://clck.ru/9V9fH | sudo sh

Add users to proper groups

(this is missing in your instructions)
sudo adduser www-data libvirtd
sudo adduser www-data kvm

  • note you may also want to add yourself, like so:

sudo adduser id -un libvirtd
sudo adduser id -un kvm

Update gstfsd

(I wasn't sure if this step was needed but it didn't hurt either)
wget -O - https://clck.ru/9VMRH | sudo tee -a /usr/local/bin/gstfsd
sudo service supervisor restart

Make sure it's working

  • If not, check /var/log/supervisor/*.log

/srv/webvirtcloud# supervisorctl status
gstfsd RUNNING pid 17346, uptime 0:00:05
novncd RUNNING pid 17345, uptime 0:00:05
webvirtcloud RUNNING pid 17344, uptime 0:00:05

Originally created by @claytondukes on GitHub (Jun 23, 2015). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/23 Couple of notes: The section for `cd ..` `sudo mv webvirtcloud /srv` should be moved up since where you have it will set the wrong path in `venv/bin/gunicorn` (it sets it to `/root/webvirtcloud`). You also need to add www-data to the proper groups. So the guide should be: `sudo apt-get -y install git python-virtualenv python-dev \` `libxml2-dev libvirt-dev zlib1g-dev nginx supervisor` `sudo mkdir /srv && cd /srv` `git clone https://github.com/retspen/webvirtcloud && cd webvirtcloud` `virtualenv venv` `source venv/bin/activate` `pip install -r conf/requirements.txt` `python manage.py migrate` `sudo cp conf/supervisor/webvirtcloud.conf /etc/supervisor/conf.d` `sudo cp conf/nginx/webvirtcloud.conf /etc/nginx/conf.d` `sudo chown -R www-data:www-data /srv/webvirtcloud` # Restart services `sudo service nginx restart` `sudo service supervisor restart` # Install `wget -O - https://clck.ru/9V9fH | sudo sh` # Add users to proper groups (this is missing in your instructions) `sudo adduser www-data libvirtd` `sudo adduser www-data kvm` - note you may also want to add yourself, like so: `sudo adduser `id -un` libvirtd` `sudo adduser `id -un` kvm` # Update gstfsd (I wasn't sure if this step was needed but it didn't hurt either) `wget -O - https://clck.ru/9VMRH | sudo tee -a /usr/local/bin/gstfsd` `sudo service supervisor restart` # Make sure it's working - If not, check /var/log/supervisor/*.log `/srv/webvirtcloud# supervisorctl status` `gstfsd RUNNING pid 17346, uptime 0:00:05` `novncd RUNNING pid 17345, uptime 0:00:05` `webvirtcloud RUNNING pid 17344, uptime 0:00:05`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#16
No description provided.