Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple web interface based on libVirt and nodejs.

License

NotificationsYou must be signed in to change notification settings

Jiab77/libvirt-web-nodejs

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.

Preview

Images will be added soon.

Installation

The installation process is pretty simple and will require only few dependencies.

The web interface should be able to run on desktops and servers.

Dependencies

There is only few dependencies required:

  1. libvirt-bin (Thevirsh command should be provided bylibVirt)
  2. virt-viewer
  3. libguestfs
  4. nodejs
  5. npm

I have dropped the ImageMagickconvert command from dependencies.

Plaforms

The project has been tested onPop_OS!, a Linux distribution based onUbuntu 18.04 LTS.

Ubuntu and derivated distribs

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.

Run the web interface

You can run the web interface by using the embedded web server fromnodejs or usingapache ornginx.

PHP Embedded Web Server

You can start the server that way:

cd libvirt-web-nodejsnode server.js

To configure the server:

  • Define theLIBVIRT_WEB_HOST to change the listening address.
  • Define theLIBVIRT_WEB_PORT to change the listening port.

sudo is 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.

Apache / nginx

This setup is not tested yet and will be documented later.

Missing / Not Working

Here will be listed missing features / those not working correctly.

  • Remote connection on VM's usingvirt-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 tosudoers with filesystem permissions.
  • Graphics are still missing.

Thanks

Thanks to the respective developers for their amazing work.

Huge thanks to@baslr for thenode-ppm-bin module.

Contributions

Feel free to contribute by creating pull requests or new issues.

Contact

You can reach me on Twitter by using@jiab77.

About

A simple web interface based on libVirt and nodejs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp