git から webvirtmgrのモジュールをダウンロードする。

$ sudo git clone git://github.com/retspen/webvirtmgr.git /var/www/webvirtmgr
Cloning into '/var/www/webvirtmgr'...
remote: Enumerating objects: 5730, done.
remote: Total 5730 (delta 0), reused 0 (delta 0), pack-reused 5730
Receiving objects: 100% (5730/5730), 3.01 MiB | 121.00 KiB/s, done.
Resolving deltas: 100% (3688/3688), done.
$
$ ls 
webvirtmgr
$ 

python requirements をインストールする。

$ cd webvirtmgr
[webvirtmgr]$ 

[webvirtmgr]$ sudo pip install -r requirements.txt
Collecting django==1.5.5 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/38/49/93511c5d3367b6b21fc2995a0e53399721afc15e4cd6eb57be879ae13ad4/Django-1.5.5.tar.gz (8.1MB)
    100% |████████████████████████████████| 8.1MB 169kB/s 
Collecting gunicorn==19.5.0 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/f9/4e/f4076a1a57fc1e75edc0828db365cfa9005f9f6b4a51b489ae39a91eb4be/gunicorn-19.5.0-py2.py3-none-any.whl (113kB)
    100% |████████████████████████████████| 122kB 699kB/s 
Collecting lockfile>=0.9 (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/c8/22/9460e311f340cb62d26a38c419b1381b8593b0bb6b5d1f056938b086d362/lockfile-0.12.2-py2.py3-none-any.whl
Installing collected packages: django, gunicorn, lockfile
  Running setup.py install for django ... done
Successfully installed django-1.5.5 gunicorn-19.5.0 lockfile-0.12.2
You are using pip version 8.1.2, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[webvirtmgr]$ 

Diango データベース上に必要なテーブルを作成する。認証システムで使用するスーパーユーザーアカウントを作成するか確認されるため、アカウントを作成する。

[webvirtmgr]$ ./manage.py syncdb
WARNING:root:No local_settings file found.
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table servers_compute
Creating table instance_instance
Creating table create_flavor

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'root'):   ※ Enter
Email address: r@example.com            ※ 適用なメールアドレス
Password:                               ※ アカウントパスワード登録
Password (again): 
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 6 object(s) from 1 fixture(s)
[webvirtmgr]$ 

Djangoのstaticファイル(静的ファイル)をデプロイ(配置)する。

[webvirtmgr]# ./manage.py collectstatic
WARNING:root:No local_settings file found.

You have requested to collect static files at the destination
location as specified in your settings.

This will overwrite existing files!
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes
Copying '/var/www/webvirtmgr/webvirtmgr/static/css/bootstrap-multiselect.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/css/bootstrap.min.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/css/signin.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/css/table-sort.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/css/webvirtmgr.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/fonts/glyphicons-halflings-regular.eot'
Copying '/var/www/webvirtmgr/webvirtmgr/static/fonts/glyphicons-halflings-regular.svg'
Copying '/var/www/webvirtmgr/webvirtmgr/static/fonts/glyphicons-halflings-regular.ttf'
Copying '/var/www/webvirtmgr/webvirtmgr/static/fonts/glyphicons-halflings-regular.woff'
Copying '/var/www/webvirtmgr/webvirtmgr/static/img/asc.gif'
Copying '/var/www/webvirtmgr/webvirtmgr/static/img/bg.gif'
Copying '/var/www/webvirtmgr/webvirtmgr/static/img/desc.gif'
Copying '/var/www/webvirtmgr/webvirtmgr/static/img/favicon.ico'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/Chart.min.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/bootstrap-multiselect.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/bootstrap.min.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/infrastructure.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/jquery-1.10.2.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/jquery-migrate-1.2.1.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/jquery.tablesorter.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/Orbitron700.ttf'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/Orbitron700.woff'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/base.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/base64.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/black.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/blue.css'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/des.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/display.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/input.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/jsunzip.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/logo.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/playback.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/rfb.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/ui.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/util.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/websock.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/webutil.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/chrome-app/tcp-client.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/web-socket-js/README.txt'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/web-socket-js/WebSocketMain.swf'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/web-socket-js/swfobject.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/novnc/web-socket-js/web_socket.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/atKeynames.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/bitmap.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/cursor.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/display.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/enums.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/filexfer.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/inputs.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/jsbn.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/lz.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/main.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/playback.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/png.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/prng4.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/quic.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/resize.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/rng.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/rsa.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/sha1.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/simulatecursor.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/spicearraybuffer.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/spiceconn.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/spicedataview.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/spicemsg.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/spicetype.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/ticket.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/utils.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/webm.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/wire.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/thirdparty/jsbn.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/thirdparty/prng4.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/thirdparty/rng.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/thirdparty/rsa.js'
Copying '/var/www/webvirtmgr/webvirtmgr/static/js/spice-html5/thirdparty/sha1.js'

75 static files copied.
[webvirtmgr]$

WebVirtMgrのWeb画面にログインするユーザーを作成する。

[webvirtmgr]$ ./manage.py createsuperuser
WARNING:root:No local_settings file found.
Username:                            ※ ログインアカウント登録
Email address: ad@example.com        ※ 適用なメールアドレス登録
Password:                            ※ アカウントパスワード登録
Password (again): 
Superuser created successfully.
[webvirtmgr]$