KVM management web application for low cost and immediate deployment. Manage nodes with SSH access using Libvirt-API, Ansible, etc.
Nodes are Linux with SSH connectivity and provisioning can be done through the UI.
The author is not responsible for any damage caused by the use of this software.
Nothing needs to be edited. Start with Docker-compose and connect to localhost:8765.
mkdir virty
cd virty
wget https://raw.githubusercontent.com/hibiki31/virty/master/docker-compose.example.yml
mv docker-compose.example.yml docker-compose.yml
docker-compose up -d
Select the text editor to use (optional).
sudo update-alternatives --config editor
Grant sudo privileges without password to the user connecting to SSH.
sudo visudo
-- end --
username ALL=(ALL) NOPASSWD: ALL
Use public key authentication. The key registered here will be added on the dashboard.
ssh-copy-id user@host
name | value |
---|---|
Bridge name | ovs-br0 |
Physical interface | eth0 |
Native VLAN | 100 |
VLAN to configure IP | 200 |
IP | 192.168.200.1 |
sudo apt update
sudo apt install openvswitch-common openvswitch-switch
sudo systemctl status openvswitch-switch.service
yum install -y openvswitch python-openvswitch
systemctl start openvswitch
systemctl enable openvswitch
ovs-vsctl add-br ovs-br0
ovs-vsctl add-port ovs-br0 eth0
ovs-vsctl set port ovs-br0 tag=200
ovs-vsctl set port eth0 tag=100 vlan_mode=native-untagged
ovs-vsctl show
network:
ethernets:
eth0:
dhcp4: false
ovs-br0:
dhcp4: false
addresses:
- 192.168.200.1/24
gateway4: 192.168.200.254
nameservers:
addresses: [ 192.168.200.254 ]
version: 2
docker-compose exec db pg_dump -U postgres mydatabase > virty_db_`date -Iseconds`.dump