Files
VirtWeb/virtweb_docs/SETUP_DEV.md
Pierre HUBERT 9bd702d60f
All checks were successful
continuous-integration/drone/push Build is passing
Add cloud-localds as a required program
2025-06-06 17:19:11 +02:00

996 B

Setup for developpment

  1. The libvirt-dev package must be installed:
sudo apt install libvirt-dev
  1. Libvirt and cloud image utilities must also be installed:
sudo apt install qemu-kvm libvirt-daemon-system cloud-image-utils
  1. Allow the current user to manage VMs:
sudo adduser $USER libvirt
sudo adduser $USER kvm 

Note: You will need to login again for this change to take effect.

  1. Install required developpment tools:
  1. Run sample OpenID service
cd virtweb_backend
docker compose up
  1. Run the backend:
sudo mkdir /var/virtweb
sudo chown $USER:$USER /var/virtweb
cd virtweb_backend
cargo fmt && cargo clippy && cargo run -- -s /var/virtweb --hypervisor-uri "qemu:///system" --website-origin "http://localhost:5173"
  1. Run the frontend
cd virtweb_frontend
npm run start

Have fun with your development!