Does OVM / KVM support macvlan?

  • Hello,


    I have just configued KVM via the plugin on OMV 7.7

    The guests - Windows and Linux - are up running and connected in bridge mode via macvtap. The guest machines can reach all devices on the network, except the host it self.

    I have tried to see if it can be bypassed in the firewall, but seems to be the design of macvtap. Alternatives are additional NICs in the guests, or using macvlan. I would like to avoid the extra NIC, leaving it to macvlan. But I dont find anything about in, only in regards to Docker.


    Does the OMV / KVM support the macvlan? Do I somehow need to install or load it?

    If not, what alternatives do I have to be able to reach the host?


    Many thanks K

  • Many thanks!


    Sounds easy, though, I tried it.

    The OMV host has the new interface as the guide describe and is on the net.

    I have removed the networks from the KVMs, and tried to add a new network, bridge assigned to br0, as described the the technote.

    But it fails, with Error 500 - Unable to add network adapter to VM..


    Any clue - or suggestions where to look for further information?

    • Official Post

    But it fails, with Error 500 - Unable to add network adapter to VM..


    Any clue - or suggestions where to look for further information?

    Can you get the entire error from the bell in the top right of the omv interface?

    Was the VM powered off?

    Are you able to create a new VM using a bridge? No need to power it on.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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 only message I got was "Error 500 - Unable to add network adapter to VM". No further information.


    I was able to create a new blank VM and assign the Br0 to it without problems.

    I removed my existing VMs, and created them again with same specifications, disks etc and could also here assign the Br0 without issues.

    So it seems there was some issues on the existing VMs, even I already had all network information removed.


    It works now as wanted - they are able to connect to the host - THANKS! :) But unfortunately I didnt leave much information for further trouble shooting on the issue with the existing VMs.


    I am looking forward to see how the Linux and Windows VMs operate and perform - I am only used to work with VMware and VirtualBox.


    Thanks again for your help!

    • Official Post

    So it seems there was some issues on the existing VMs, even I already had all network information removed.

    I will check it out on my dev machine.

    I am looking forward to see how the Linux and Windows VMs operate and perform - I am only used to work with VMware and VirtualBox.

    I am a VMware admin at work and use the kvm plugin at home. I am actually happier with the kvm plugin than I am VMware (VMware has a lot of issues since the Broadcom purchase).

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • Just happened to stumble upon the same issue.


    Here is the full output of the error (you need to check the notifications and copy to clipboard):


    Code
    Unable to add network adapter to VM -
    
    
    OMV\Exception: Unable to add network adapter to VM -  in /usr/share/openmediavault/engined/rpc/kvm.inc:386
    Stack trace:
    #0 [internal function]: OMVRpcServiceKvm->addVmNic()
    #1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array()
    #2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
    #3 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()
    #4 {main}
    • Official Post

    Here is the full output of the error (you need to check the notifications and copy to clipboard):

    I can reproduce it and am still working on it.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

  • Can confirm that the quickest way to get past that is to delete the VM (without deleting the storage of course) and then re-create it so you can attach the previous virtual drive and the br0 bridge.

    • Official Post

    Can confirm that the quickest way to get past that is to delete the VM (without deleting the storage of course) and then re-create it so you can attach the previous virtual drive and the br0 bridge.

    I would just use virt-manager to change the current nic to br0.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

    • Official Post

    So, I don't know why I didn't see the problem before but it jumped right out at me this time. Fixed and will be in the next release

    fix adding bridge nic to vm · OpenMediaVault-Plugin-Developers/openmediavault-kvm@5b3d1c3
    Signed-off-by: Aaron Murray <plugins@omv-extras.org>
    github.com

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

    • Official Post

    openmediavault-kvm 7.1.0 is in the repos as of last night.

    omv 7.7.7-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.5.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.1


    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!

Participate now!

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