New openmediavault-kvm plugin

  • After a few weeks of working on a KVM plugin, I have added it to the omv-extras testing repo. I think it is working fairly well. I have been able to install Linux and Windows.


    The plugin uses libvirt (so virsh commands will work) and borrowed ideas from VMdashboard.


    There is no need to install cockpit to use this plugin but they should not cause problems with the other.


    No network bridge is needed. You can use a regular network if it is ok for the VM to live behind NAT -or- you can use a macvtap network to let the VM live on the same network as the host. Even docker is working.


    After install, make sure to create at least one pool and make it active (State -> Start). Also make sure the network is active. A default NAT network should be created. Create a macvtap network if you don't want to use NAT. Make it active after creation.


    To attach an ISO to a VM, you need to add it to a storage pool first. That means copying it to the path of the pool you create. I create a pool called ISOs and just put .iso files in it. When adding an optical drive, it will only show .iso files.


    When a VM is created, a VNC port will be open to use any vncviewer to connect. If you prefer a web-based vnc viewer, you can add a web console. The web console is a noVnc docker container. You will need to create one for each VM. These containers will not be running after rebooting the host (vnc ports may change on the VM).


    I will work on some howtos after the plugin is moved to the regular omv-extras repo. I still have some minor things to tweak and a feature or two to get working. Let me know if you can think of other features to add but I want to keep it fairly simple. The plugin may work on armhf/arm64 but it is not in the repo because I didn't see much need to run VMs on sbc boards.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

    Edited once, last by ryecoaaron ().

  • I'm assuming Android work fine on it?

    I assume Android should since it is Linux but I didn't try. I can add it to the OS dropdown if any special settings are needed.

    Do I need to search for anything in omv extras

    If you enable the testing repo, the plugin should show in the Plugins tab.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Looks awesome so far. Great job on this one. Really one of the last pieces I was looking for here. Cockpit is OK, but having this directly in OMV web ui is awesome.

  • I think i will wait for the how to guides, after enabling the test repo and updating i still cant find it in the plugins.

    Did you try apt-clean and then search for kvm in the plugins tab? I assure you it is in the repo.


    aaron@omv5dev:/srv/plugins/installScript$ apt-cache policy openmediavault-kvm

    openmediavault-kvm:

    Installed: 5.0.1

    Candidate: 5.0.1

    Version table:

    *** 5.0.1 500

    500 https://openmediavault-plugin-…github.io/packages/debian usul-testing/main amd64 Packages

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • should I be concerned about the error?

    You will see that on every plugin install. It just means omv-engined is being restarted.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • im receiving error when i want to delete stopped pool:

    I fixed it in the next release. I just have a few others things to add before I release it. Should be today sometime.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 5.0.2 is in the testing repo now. This adds the ability to add or remove network interfaces and fixes the delete pool issue.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I am also just testing you awesome plugin. It seems to be nice and user friendly to work with but i can't add a volume for some reason.


    Update: I am also able to add a pool but not able to delete it again. Just to see if it help to make a new pool and create a volume. But no such luck. :(

  • I actually might have meant to remove that button because adding a disk (volume) to the VM is most likely going to be the more common method. I will see what is wrong with it though.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Add and delete volumes in the Volumes tab is fixed in 5.0.3 in the testing repo now.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • But I am not able to use it :( It gives me this when I try to make a new VM

    I knew you were going to try that. I haven't figured out why it won't use existing disks (yet, next thing to look at). Is there a reason you created the volume in the Volume tab instead of picking "Create new disk" in the drop down to do the same thing?

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Hi ryecoaaron , im still not able to delete the pool after update of the plugin:


    and this is in syslog

    omv 5.6 in proxmox 6.3-6 - AMD Ryzen 1700 - 16GB DDR4 :thumbup:

  • Yay now I am able to create the volume... But I am not able to use it :( It gives me this when I try to make a new VM

    This is fixed in 5.0.4 in the testing repo now.


    im still not able to delete the pool after update of the plugin:

    I must have broke it fixing something else. Checking now.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • im still not able to delete the pool after update of the plugin:

    Should be working in 5.0.5 in the testing repo now.

    omv 5.6.4 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!