New openmediavault-kvm plugin

  • Not sure what i'm doing wrong but i'm trying to set my VM to have its on IP

    What i do is

    1. Services > KVM > Networks
    2. Click on the plus arrow
    3. Select "add network", fill in name, fill in gateway IP address, leave MC and subnet as is, click on DHCP
    4. Type in IP range from 192.168.68.101 to 192.168.68.110
    5. click "add"

    but when i go to activate i get this

    Code
    Unable to start network - internal error: Network is already in use by interface eno1
    
    OMV\Exception: Unable to start network - internal error: Network is already in use by interface eno1 in /usr/share/openmediavault/engined/rpc/kvm.inc:319
    Stack trace:
    #0 [internal function]: OMVRpcServiceKvm->networkCommand(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('networkCommand', Array, Array)
    #3 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Kvm', 'networkCommand', Array, Array, 1)
    #4 {main}

    i never had this problem before, im sure im missing something simple???

    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

    Type in IP range from 192.168.68.101 to 192.168.68.110

    What is the host's ip address?

    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!

  • What is the host's ip address?

    OMV Server is 192.168.68.78

    Default Gateway is 192.168.68.1


    i remember writing a guide for this last year or something im trying to go through the pages on the post to find it

    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

    OMV Server is 192.168.68.78

    Default Gateway is 192.168.68.1


    i remember writing a guide for this last year or something im trying to go through the pages on the post to find it

    The dhcp range for the network you are creating can't be the same subnet as the host. I would use a bridge and let your router do dhcp instead.

    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!

  • The dhcp range for the network you are creating can't be the same subnet as the host. I would use a bridge and let your router do dhcp instead.

    Sorry to be a pain is this how you do bridge again, it been a long time since i did this

    1. Under Services/KVM/Networks
    2. Click plus icon then "Add macvtap network"
    3. then click add and start/activate the connection
    4. then in Services/KVM/VMs
    5. Click on the VM then from the top row click on the network icon and then "add network"

    that's as far as i get before my mind goes blank

    • Offizieller Beitrag

    remind me how i do bridge again?

    delete your network adapter in the OMV network tab

    DO NOT apply changes

    create a bridge with the same network setup as the adapter you just deleted.

    apply changes.

    Use bridge adapter type and then pick br0 when creating a vm. No network creation in the kvm plugin needed.

    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!

  • delete your network adapter in the OMV network tab

    DO NOT apply changes

    create a bridge with the same network setup as the adapter you just deleted.

    apply changes.

    Use bridge adapter type and then pick br0 when creating a vm. No network creation in the kvm plugin needed.

    Ok just did all that and it worked, but my VM still has the same IP as my OMV server

    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

    my VM still has the same IP as my OMV server

    Strange. The guest is reporting it has the same IP and is using dhcp?

    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!

  • Strange. The guest is reporting it has the same IP and is using dhcp?

    Yeah, im confused to say the least (or hungry)

    this is the network on my OMV


    Went into my routers DCHP page nether the OMV or the VM show up, so i just typed in the IP address for the OMV server in RealVNC and it connected to the VM, i'm wondering if it is because i set a static IP for my OMV server maybe i need to set a static IP for the VM once it is set up?

    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

    Went into my routers DCHP page nether the OMV or the VM show up, so i just typed in the IP address for the OMV server in RealVNC and it connected to the VM, i'm wondering if it is because i set a static IP for my OMV server maybe i need to set a static IP for the VM once it is set up?

    Ah. Your router won't show your OMV ip address on the dhcp page since it is using a static ip address. And VNC is connecting to the VM because you are connecting to the vnc server running on the OMV system just for that VM. Your vnc client is not directly connecting to the VM. The VM has to be running and trying to get its own ip address (dhcp works).

    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!

  • Strange. The guest is reporting it has the same IP and is using dhcp?

    Yeah im still confused, so finished the install of Debian on the VM. Went to go change the IP and then i found this


    So my router has given it address, but then when i try and VNC into that address the IP 192.168.68.93 it comes up with cannot be reached but if i type in the IP of the OMV server it connects to the VM fine? is that normal?

    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

  • Ah. Your router won't show your OMV ip address on the dhcp page since it is using a static ip address. And VNC is connecting to the VM because you are connecting to the vnc server running on the OMV system just for that VM. Your vnc client is not directly connecting to the VM. The VM has to be running and trying to get its own ip address (dhcp works).

    Ah ok, that makes more sense now, So current with this set up i can only access the VM when im at home. If i installed RealVNC on the VM itself would everything work normally or will it just mess things up?

    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

    So my router has given it address, but then when i try and VNC into that address the IP 192.168.68.93 it comes up with cannot be reached but if i type in the IP of the OMV server it connects to the VM fine? is that normal?

    Did you enable vnc in the VM's guest OS?


    So current with this set up i can only access the VM when im at home. If i installed RealVNC on the VM itself would everything work normally or will it just mess things up?

    kvm does not care what you install on the VM. I run xrdp on many VMs.

    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!

  • Did you enable vnc in the VM's guest OS?

    I must have missed the option to enable VNC in the VM's guest OS (using Deb11 as the guest OS)

    kvm does not care what you install on the VM. I run xrdp on many VMs.

    That's good to know

    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

  • Any guide how to install swtpm on debian 11 with openmediavault/shaitan,now 6.0.40-2?

    root@htpc:~# apt install openmediavault-kvm

    Reading package lists... Done

    Building dependency tree... Done

    Reading state information... Done

    Some packages could not be installed. This may mean that you have

    requested an impossible situation or if you are using the unstable

    distribution that some required packages have not yet been created

    or been moved out of Incoming.

    The following information may help to resolve the situation:


    The following packages have unmet dependencies:

    openmediavault-kvm : Depends: swtpm but it is not installable

    Depends: swtpm-tools but it is not installable

    E: Unable to correct problems, you have held broken packages.

    root@htpc:~#

    root@htpc:~# apt-cache policy swtpm swtpm-tools

    swtpm:

    Installed: (none)

    Candidate: (none)

    Version table:

    swtpm-tools:

    Installed: (none)

    Candidate: (none)

    Version table:


    EDIT: I used this guide: https://wiki.debian.org/Backports

    Machine 1 - Asrock J4205-ITX - Quad-Core Pentium J4205- 16GM RAM - OMV6

    Einmal editiert, zuletzt von khain0 ()

    • Offizieller Beitrag

    Any guide how to install swtpm

    There is a checkbox to enable backports in omv-extras.

    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!

  • Hello everyone. I have began to try in my new server this plugin. Works great. But a question raised on my mind.

    I have now the server connected to my main PC display. And KVM USB switch connected to the PC and Server with the mouse/keyboard to use on both. So I want to use the Guest VMs on the Host locally instead remotely.


    Anyone know if is that possible?


    Thanks in advance. Best regards.

    • Offizieller Beitrag

    Anyone know if is that possible?

    It is if you passthrough a gpu, keyboard, and mouse to the guest. You will need a second gpu in most systems to do that.

    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!

  • kvm does not care what you install on the VM. I run xrdp on many VMs.

    Ryecoaaron, are you running xrdp on VMs using KVM? I've never been able to get it to work. I just loaded a fresh Debian 11 VM using the default network (NAT). The xrdp service is running on the default port (3389), and there's no firewall (ufw) loaded on the VM. When I try to connect from a Windows machine (to the host IP), it fails. Is there some configuration change I need to make to allow traffic through to the VM?


    Thanks.

Jetzt mitmachen!

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