New openmediavault-kvm plugin

    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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 6.0 in proxmox 7.1-10 - AMD Ryzen 1700 - 48GB DDR4 :thumbup:

    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    5.0.7 with fixes mentioned in this thread in the testing repo now.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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 6.0 in proxmox 7.1-10 - AMD Ryzen 1700 - 48GB DDR4 :thumbup:

    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    so it should be possible to create a gui for it?

    Yep. I will probably make it a separate plugin.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    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

  • I need to ask a very noob/dumb question.....how do i access the VM

    Normally if its in red it's bad!!!


    Machine 1 - Dell OptiPlex 790 - Core i5-2400 3.10GHz - 16GB RAM - OMV5

    Machine 2 - Raspberry PI4 - ARMv7 - 2GB - OMV5

    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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

    Normally if its in red it's bad!!!


    Machine 1 - Dell OptiPlex 790 - Core i5-2400 3.10GHz - 16GB RAM - OMV5

    Machine 2 - Raspberry PI4 - ARMv7 - 2GB - OMV5

    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    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 6.0 in proxmox 7.1-10 - AMD Ryzen 1700 - 48GB 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

    Normally if its in red it's bad!!!


    Machine 1 - Dell OptiPlex 790 - Core i5-2400 3.10GHz - 16GB RAM - OMV5

    Machine 2 - Raspberry PI4 - ARMv7 - 2GB - OMV5

  • 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}
    • Offizieller Beitrag

    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 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Einmal editiert, zuletzt von ryecoaaron ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!