New openmediavault-kvm plugin

  • Hi i

    this will create an /etc/systemd/system/docker.service.d/override.conf

    and remove all firwall rules

    if i do iptables -L i get this


    iptables -L

    Chain INPUT (policy ACCEPT)

    target prot opt source destination


    Chain FORWARD (policy ACCEPT)

    target prot opt source destination


    Chain OUTPUT (policy ACCEPT)

    target prot opt source destination


    i reboot the system kvm is working but docker not anymore

    • Offizieller Beitrag

    this will create an /etc/systemd/system/docker.service.d/override.conf

    and remove all firwall rules

    The delete is commented out. So, it is only adding an append. How does that delete all rules?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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!

  • The delete is commented out. So, it is only adding an append. How does that delete all rules?

    My mistake


    override.conf


    [Service]

    ExecStopPost=/usr/bin/iptables -A FORWARD -p all -i br0 -j ACCEPT


    now the iptables are good again

    but i don't see the rule for br0 (kvm still not working)


    iptables -L

    Chain INPUT (policy ACCEPT)

    target prot opt source destination

    ACCEPT udp -- anywhere anywhere udp dpt:domain

    ACCEPT tcp -- anywhere anywhere tcp dpt:domain

    ACCEPT udp -- anywhere anywhere udp dpt:bootps

    ACCEPT tcp -- anywhere anywhere tcp dpt:67


    Chain FORWARD (policy DROP)

    target prot opt source destination

    ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED

    ACCEPT all -- 192.168.122.0/24 anywhere

    ACCEPT all -- anywhere anywhere

    REJECT all -- anywhere anywhere reject-with icmp-port-unreachable

    REJECT all -- anywhere anywhere reject-with icmp-port-unreachable

    DOCKER-USER all -- anywhere anywhere

    DOCKER-ISOLATION-STAGE-1 all -- anywhere anywhere

    ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED

    DOCKER all -- anywhere anywhere

    ACCEPT all -- anywhere anywhere

    ACCEPT all -- anywhere anywhere


    Chain OUTPUT (policy ACCEPT)

    target prot opt source destination

    ACCEPT udp -- anywhere anywhere udp dpt:bootpc


    Chain DOCKER (1 references)

    target prot opt source destination

    ACCEPT tcp -- anywhere 172.17.0.2 tcp dpt:9090

    ACCEPT tcp -- anywhere 172.17.0.3 tcp dpt:8082

    ACCEPT tcp -- anywhere 172.17.0.2 tcp dpt:http-alt


    Chain DOCKER-ISOLATION-STAGE-1 (1 references)

    target prot opt source destination

    DOCKER-ISOLATION-STAGE-2 all -- anywhere anywhere

    RETURN all -- anywhere anywhere


    Chain DOCKER-ISOLATION-STAGE-2 (1 references)

    target prot opt source destination

    DROP all -- anywhere anywhere

    RETURN all -- anywhere anywhere


    Chain DOCKER-USER (1 references)

    target prot opt source destination

    RETURN all -- anywhere anywhere

    • Offizieller Beitrag

    iptables is not my specialty. Maybe docker is deleting all rules and adding its own? You could add a dependency to libvirtd that docker is started.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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!

  • iptables is not my specialty. Maybe docker is deleting all rules and adding its own? You could add a dependency to libvirtd that docker is started.

    i think i solved it

    when i reboot

    get this

    iptables -x -v --line-numbers -L FORWARD

    Chain FORWARD (policy DROP 0 packets, 0 bytes)

    num pkts bytes target prot opt in out source destination

    1 0 0 ACCEPT all -- any virbr0 anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED

    2 0 0 ACCEPT all -- virbr0 any 192.168.122.0/24 anywhere

    3 0 0 ACCEPT all -- virbr0 virbr0 anywhere anywhere

    4 0 0 REJECT all -- any virbr0 anywhere anywhere reject-with icmp-port-unreachable

    5 0 0 REJECT all -- virbr0 any anywhere anywhere reject-with icmp-port-unreachable

    6 38 10811 DOCKER-USER all -- any any anywhere anywhere

    7 38 10811 DOCKER-ISOLATION-STAGE-1 all -- any any anywhere anywhere

    8 17 7925 ACCEPT all -- any docker0 anywhere anywhere ctstate RELATED,ESTABLISHED

    9 2 662 DOCKER all -- any docker0 anywhere anywhere

    10 19 2224 ACCEPT all -- docker0 !docker0 anywhere anywhere

    11 2 662 ACCEPT all -- docker0 docker0 anywhere anywhere


    when a add i by hand

    like this

    iptables -A FORWARD -p all -i br0 -j ACCEPT

    then it works


    look at rule 12 (the overide.conf is probably not working )


    iptables -x -v --line-numbers -L FORWARD

    Chain FORWARD (policy DROP 0 packets, 0 bytes)

    num pkts bytes target prot opt in out source destination

    1 0 0 ACCEPT all -- any virbr0 anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED

    2 0 0 ACCEPT all -- virbr0 any 192.168.122.0/24 anywhere

    3 0 0 ACCEPT all -- virbr0 virbr0 anywhere anywhere

    4 0 0 REJECT all -- any virbr0 anywhere anywhere reject-with icmp-port-unreachable

    5 0 0 REJECT all -- virbr0 any anywhere anywhere reject-with icmp-port-unreachable

    6 40 11473 DOCKER-USER all -- any any anywhere anywhere

    7 40 11473 DOCKER-ISOLATION-STAGE-1 all -- any any anywhere anywhere

    8 17 7925 ACCEPT all -- any docker0 anywhere anywhere ctstate RELATED,ESTABLISHED

    9 4 1324 DOCKER all -- any docker0 anywhere anywhere

    10 19 2224 ACCEPT all -- docker0 !docker0 anywhere anywhere

    11 4 1324 ACCEPT all -- docker0 docker0 anywhere anywhere

    12 0 0 ACCEPT all -- br0 any anywhere anywhere



    now only how to make it persistent ?????

    • Offizieller Beitrag

    ook at rule 12 (the overide.conf is probably not working )

    The override should be working. It is just running too early and being removed by docker. Add something docker.service right before local-fs.target in /etc/systemd/system/libvirtd.service.d/waitAllMounts.conf

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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

    Would the Backup function be placing the storage and xml files in the same path?

    Maybe. I haven't really thought about where the files would go. Just how to make them. Why?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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!

  • When we create a VM using this plugin its VNC port listens on 0.0.0.0 and is accessible everywhere and we have to manually remove it from XML or set it to 127.0.0.1 so its only accessible from noVNC if enabled.


    Can there be a option to quickly do this from the GUI ? and can there be a security mechanism such as authentication for accessing websockify by using the JWT or another plugin that it supports. ?

    • Offizieller Beitrag

    When we create a VM using this plugin its VNC port listens on 0.0.0.0 and is accessible everywhere and we have to manually remove it from XML or set it to 127.0.0.1 so its only accessible from noVNC if enabled.

    Yep, I will add that. I will see if I can only enable the vnc/spice port when the consoles are enabled.

    and can there be a security mechanism such as authentication for accessing websockify by using the JWT or another plugin that it supports. ?

    I really don't want to deal with authentication for websockify because the console is only meant for setup. Once the OS is setup, you should use the OS level remote desktop tools. Otherwise, I think the OS level security should be ok.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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!

  • Please help ! Stuck in...

    • Offizieller Beitrag

    Your default network is inactive. Mark it active in the network tab.

    Did you add the ISO to the VM to boot from it?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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!

  • Don't ask me why but I discovered this thread just a few days ago 🙄

    My OMV is running under Proxmox so it already is a virtualization (not a solution I'm too satisfied with but too much trouble reinstalling OMV atm).


    With this setup: I there a chance I can use KVM in my OMV (probably not, right)?


    Is it possible to run a test OMV with KVM in Virtualbox or KVM?

    I do like the idea of having OMV with KVM but would like to try it first on a test system.

    OMV6.x

    AMD Ryzen 5 5600G

    ASRock B550M Pro4

    Crucial DIMM 16GB

    Western Digital WD Blue SN570

    Seagate IronWolf 8TB/WD Red 8TB

    AeroCool CS-102

    • Offizieller Beitrag

    My OMV is running under Proxmox so it already is a virtualization (not a solution I'm too satisfied with but too much trouble reinstalling OMV atm).

    Not going to explain how but I actually converted my proxmox install to OMV with the kvm plugin. All of the VMs just work.


    I there a chance I can use KVM in my OMV (probably not, right)?

    Yep. I test all the time like that. It is called nested virtualization. It does require a couple of changes to the host. https://pve.proxmox.com/wiki/Nested_Virtualization



    Is it possible to run a test OMV with KVM in Virtualbox or KVM?

    That is how I test the kvm plugin.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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

    I cannot delete a previous KVM

    Virsh doesn't allow deleting a VM while a snapshot exists. So, you just need to delete your snapshot first.


    on the one working got no internet connection?

    Does the VM have an ip address? Can you ping your router?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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!

  • Your default network is inactive. Mark it active in the network tab.

    Did you add the ISO to the VM to boot from it?

    Everything is fine, it turned out to fully launch the virtual machine via Bridge (macvtap). However, I ran into a problem that I can't solve. The host and the guest do not see each other on the network. How can this error be fixed in the plugin, or what configuration in the plugin should be done so that the host and guests can mutually see each other(since there are SMBs on the host that guest systems need access to). Thanks.

    OMV 6.
    Motherboard: Intel DP55WG
    CPU: Intel Xeon X3470
    12GB DDR3 RAM
    WD Black WD5000LPSX - system
    WD Blue 4GB x4 - RAID 10
    500GB SSD x2 - RAID 1 for VM's and Docker containers

  • And he also noticed the oddity. Installed on KVM Win7, mounted the Virtio driver disk in the Guest system, installed. But all the same, the Win7 GUI slows down and stutters, there is not enough fluidity. All drivers are installed from here https://fedorapeople.org/group…-1/virtio-win-0.1.196.iso
    However, the smoothness of the GUI is poor.
    Thanks.

    OMV 6.
    Motherboard: Intel DP55WG
    CPU: Intel Xeon X3470
    12GB DDR3 RAM
    WD Black WD5000LPSX - system
    WD Blue 4GB x4 - RAID 10
    500GB SSD x2 - RAID 1 for VM's and Docker containers

    • Offizieller Beitrag

    The host and the guest do not see each other on the network. How can this error be fixed in the plugin

    This is a limitation of macvtap. You need to setup a bridge. There are few posts about that in this thread.

    But all the same, the Win7 GUI slows down and stutters, there is not enough fluidity. All drivers are installed from here https://fedorapeople.org/group…-1/virtio-win-0.1.196.iso
    However, the smoothness of the GUI is poor.

    This could be your server or storage or how you are connecting. The consoles provided by the plugin are only meant to use for setup. You should use the native RDP server on Win 7 (which is EOL by the way).

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | 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!

Jetzt mitmachen!

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