Skip to content

NickVolynkin/vmmaster

 
 

Repository files navigation

vmmaster

Build Status Coverage

dependencies:

  • tox
  • postgresql

install

manual

run vmmaster

user@machine: chmod +x install_dependencies.sh
user@machine: ./install_dependencies.sh
user@machine: sudo pip install tox
user@machine: tox
user@machine: mv ./config_template.py config.py
user@machine: sudo .tox/bin/python manage.py init
user@machine: .tox/bin/python manage.py migrations
user@machine: .tox/bin/python manage.py runserver

commands to create qcow2 VM's origins

create qcow2 drive

qemu-img create -f qcow2 -o preallocation=metadata ubuntu-13.04-x64-origin.qcow2 8G

install ubuntu from iso

sudo virt-install --connect=qemu:///system --name ubuntu-13.04-x64-origin --network=bridge:virbr0 --ram 2048 --vcpus 2 --disk path=$VMMASTER_HOME/origins/ubuntu-13.04-x64/drive.qcow2,format=qcow2,bus=virtio,cache=none --cdrom $ISO_PLACE/ubuntu-13.04-desktop-amd64.iso --vnc --accelerate --os-type=linux --os-variant=generic26 --hvm

generate settings.xml

TODO

development

environment

pip install -r requirements-dev.txt ./install-hooks.sh

linting

  • .tox/bin/flake8 vmmaster/ tests/

unittests with coverage

  • .tox/bin/coverage run --source=vmmaster,vmpool,core run_unittests.py
  • .tox/bin/coverage html
  • look for coverage/index.html

Documentation

More information

About

Automatic virtual machines manager for selenium-based testing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.2%
  • Other 0.8%