New openmediavault-kvm plugin

  • should i delete the snapshot and try to delete it afterwards?

    Yes. I will add the logic to disable the remove if there is a snapshot.

    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!

  • ok, looks good now... another question, where I can find those snapshots?


    will be there also some kind of backup logic available for this plugin? like choose path for the snapshots, or scheduled backups to specific path or to CIFS/SMB share with mail notification :)

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

  • another question, where I can find those snapshots?

    Not sure what you mean. There is a snapshot dropdown. The revert and delete will show you when they were taken.

    will be there also some kind of backup logic available for this plugin?

    To backup VMs? Hadn't thought that far ahead. All you really need to do is backup your storage pool directories.

    like choose path for the snapshots

    That isn't something that can be done with libvirt that the plugin uses.


    scheduled backups to specific path

    I'll look at it.

    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.7 with fixes mentioned in this thread 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!

  • Not sure what you mean.

    the snapshot probably works different way like VM backup as I though :D


    yeah, I can backup the pools, but the VM should be properly stopped and so I can back it up. So for that I suggested to have kind of backup, where you can choose stop VM before backup, path where the backup should be saved, choose if you want to backup all volumes or only system volume and so on.

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

  • yeah, I can backup the pools, but the VM should be properly stopped and so I can back it up. So for that I suggested to have kind of backup, where you can choose stop VM before backup, path where the backup should be saved, choose if you want to backup all volumes or only system volume and so on.

    There are many ways to back up a VM. You can back it up running. You can take a snapshot and backup that snapped state. And you can back it up when it is off. VMware has the ability to quiesce the VM to snap and backup. I need to do some research about what the plugin could offer.

    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!

  • From a quick glance, it looks like backing up a VM running could go like this:

    • Take a new snapshot
    • Backup the qcow2 file(s) (snapshot info is stored in the qcow2 file)
    • Backup the VM xml in /etc/libvirt/qemu/VM_NAME.xml
    • Backup the snapshot xml in /var/lib/libvirt/qemu/snapshot/VM_NAME (don't worry about moving these. They are just small xml files)
    • Remove the snapshot

    To backup a VM that is powered off or running (no snapshot):

    • Backup the qcow2 file(s)
    • Backup the VM xml in /etc/libvirt/qemu/VM_NAME.xml

    I should be able to create some bash scripts that use virsh to do this.

    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!

  • it could also be a really nice thing to have the option for Spice QXL video creation, like Cockpit has.

    Spice video has been added and will be in next release. I will keep looking for a web spice viewer docker.

    https://github.com/OpenMediaVa…b4afda9aa32c964980189466d

    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!

  • how do i access the VM

    Using a vnc viewer and connect to port 5900 on your omv system. Or if you have docker installed, you can create a noVNC console in the console drop down and access it in the browser.

    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!

  • Thanks, i have got docker installed but not "noVNC console" i think i managed to connect to it ia VNC but i keep getting this

    Are you still connected to the VM with your vnc viewer while trying the noVNC console? You can only have one connected at a time. If not, have you looked to see if the container is running in portainer?

    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!

  • input devices added. They will be in the next release. https://github.com/OpenMediaVa…f0b26bd5a8ec4bf7a7f99ec20 Worked well on my Windows test VM.

    I am sorry to say this but will you please remove this:

    Code
    $xml .= "<input type='mouse' bus='usb'/>";
    $xml .= "<input type='keyboard' bus='usb'/>";
    $xml .= "<input type='mouse' bus='virtio'/>";
    $xml .= "<input type='keyboard' bus='virtio'/>";

    It was only the tablet part that is necessary. The mouse and keyboard is created as a default thing so you don't have to add them, only the tablet part is necessary to add.

  • please what is actual release for this plugin? I manually installed the 5.0.8 and i red here that there should be 5.0.9 available? coz i dont see any new in updates

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

  • Sorry to sound so confusing, I have docker and portainer installed but when I click on the link for noVNC it asks me for a port that's where I get stuck. I don't know how noVNC works.


    I'm only using one instance at a time so only using VNC to connect to the VM

  • I'm getting this error when attaching an already existing volume(originally created in cockpit).


    Code
    Error #0:
    OMV\Exception: Unable to add disk to VM - Unable to attach disk in /usr/share/openmediavault/engined/rpc/kvm.inc:512
    Stack trace:
    #0 [internal function]: OMVRpcServiceKvm->setVm(Array, Array)
    #1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setVm', Array, Array)
    #3 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Kvm', 'setVm', Array, Array, 1)
    #4 {main}
  • please what is actual release for this plugin?

    5.0.10 is in the repos now. Did you disable the testing repo?


    Sorry to sound so confusing, I have docker and portainer installed but when I click on the link for noVNC it asks me for a port that's where I get stuck. I don't know how noVNC works.


    I'm only using one instance at a time so only using VNC to connect to the VM

    The port it asks you for is the html port you will connect to. So, it defaults to 8081. You don't have to know how VNC works. You just need to decide what port its html server listens on.

    I'm getting this error when attaching an already existing volume(originally created in cockpit).

    Unfortunately that error output doesn't help. I need to figure out how to get the message displayed when omv-engined is in debug mode into the message displayed in the web interface. If you want to try that:


    sudo monit stop omv-engined

    sudo omv-engined -df

    #try attaching existing volume

    # look at output from omv-engined

    sudo killall omv-engined # you can type this even though output from omv-engined in debug mode might keep scrolling

    sudo monit start omv-engined # start omv-engined in normal mode again

    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 ().

Participate now!

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