kvm autostart doesnt work

    • Official Post

    I can't explain it. It seemed like systems with ipv6 forwarding enabled when the network stack had ipv6 disabled caused the problem but you don't have ipv6 forwarding enabled. Since I can't reproduce this on any of my systems, all I can suggest is to look for some kind of error in the logs - /var/log/libvirt/libvirtd.log is where I would start first. I don't know what kind of errors to look for though.

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | 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!

  • Thank you very much for your help, ryecoaaron! For now the setups works for me and I have no issue with the missing IPv6. I will look into it later once I've sorted out my backup ideas for my dms inside the VM.

  • I have the same problem as FatherRandom. Not sure if this is relevant or a coincidence, but I also have my ethernet and VMs bridged like the poster here. Checking the entire boot logs, it appears all interfaces on br0 are disabled when libvirtd attempts to startup my VM. Could that be responsible for the failure of getaddrinfo? (I would still expect loopback to have an address there). ryecoaaron

    • Official Post

    Could that be responsible for the failure of getaddrinfo? (I would still expect loopback to have an address there)

    I use a bridge on my systems as well and don't have this problem. I haven't been able to reproduce either. So, not sure what failure you are seeing for getaddrinfo. All I can suggest is adding a delay to the libvirtd service by adding a systemd override.


    No need to tag me. I get notified of posts I have contributed to and others on the forum can help too.

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | 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!

  • Sorry, I don't have the logs in front of me at the moment, but it was basically getaddrinfo("0.0.0.0") Address family for hostname not supported when trying to connect to spice during the autostart. (same error as 4th post in this thread)

    • Official Post

    What version of OMV?

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | 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

    Are you using ipv6?

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | 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

    Have you or can you try disabling ipv6 to see if it fixes the issue?

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.2 | compose 7.4.4 | 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!

  • I'm not sure if this is an issue with multiple causes but I have located why my VM seems to fail to start which may be related to the issues others have had.


    Spice fails to start and then the VM exits. When i start the VM manually it runs fine but requires me to manually start spice if i want to get to the console which does work.


    I think the issue is this one https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1492621


    This it the forum post i found about it https://forums.debian.net/viewtopic.php?t=155857


    I tried the workaround but it does not work for me. It would be nice to have some way to delay startup until the adapter is up. I have yet to figure out a reliable way to do that, open to suggestions?


    That may be why the disabling ipv6 works for some if its making the ip4 come up faster?

  • Just an update with a solution I found for anyone suffering with this problem. You can add a delay to the startup by creating a systemd override.

    Code
    sudo systemctl edit libvirtd


    Then add the following lines to delay for 30 seconds. That works for my setup but the time can be altered to whatever works for the sytem.


    Code
    [Service]
    ExecStartPre=/bin/sleep 30


    The autostart function is now working fine for me.

Participate now!

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