- Notifications
You must be signed in to change notification settings - Fork2
A simple web interface based on libVirt and nodejs.
License
Jiab77/libvirt-web-nodejs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A simple web interface based onlibVirt andnodejs.
This project is still aWork In Progress, it might not work correctly on your side.
Please, create an issue in this case so I can track and fix it.
Thank you.
If you were looking for aPHP version:https://github.com/Jiab77/libvirt-web.
Images will be added soon.
The installation process is pretty simple and will require only few dependencies.
The web interface should be able to run on desktops and servers.
There is only few dependencies required:
libvirt-bin(Thevirshcommand should be provided bylibVirt)virt-viewerlibguestfsnodejsnpm
I have dropped the ImageMagick
convertcommand from dependencies.
The project has been tested onPop_OS!, a Linux distribution based onUbuntu 18.04 LTS.
You should only need to install these packages:
# Install dependencies (desktop)sudo apt install libvirt-bin virt-viewer libguestfs-tools nodejs npm# Install dependencies (server)sudo apt install libvirt-bin libguestfs-tools nodejs npm# Install nodejs modulesgit clone https://github.com/Jiab77/libvirt-web-nodejs.gitcd libvirt-web-nodejsnpm install
I still need to validate the packages list so this might change later.
You can run the web interface by using the embedded web server fromnodejs or usingapache ornginx.
You can start the server that way:
cd libvirt-web-nodejsnode server.jsTo configure the server:
- Define the
LIBVIRT_WEB_HOSTto change the listening address. - Define the
LIBVIRT_WEB_PORTto change the listening port.
sudois not required to run the server. It is required only if you want to run the server on a port below1024.You can also choose any other ports than8001.
Then navigate tohttp://localhost:8001 with your internet browser.
I'm using Chromium but it should work on any other modern browser.
This setup is not tested yet and will be documented later.
Here will be listed missing features / those not working correctly.
- Remote connection on VM's using
virt-viewer.- Works on local only...
- Connection to remote hypervisor.
- Not implemented yet / not correctly...
- ISO image upload.
- The upload is working but the uploaded file can't be moved to
/var/lib/libvirt/images... - This is due to access restricted to
sudoerswith filesystem permissions.
- The upload is working but the uploaded file can't be moved to
- Graphics are still missing.
Thanks to the respective developers for their amazing work.
Huge thanks to@baslr for thenode-ppm-bin module.
Feel free to contribute by creating pull requests or new issues.
You can reach me on Twitter by using@jiab77.
About
A simple web interface based on libVirt and nodejs.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.