KVM doesnt autostart

  • I have run the code suggested and this shows


    this is what mine shows


    Code

    Code
    sudo ls -al /etc/libvirt/qemu/autostart/
    total 8
    drwxr-xr-x 2 root root 4096 May  9 15:48 .
    drwxr-xr-x 4 root root 4096 May  7 20:21 ..
    lrwxrwxrwx 1 root root   27 May  9 15:48 Win10.xml -> /etc/libvirt/qemu/Win10.xml
    
    sudo virsh list --autostart Id   Name    State
    ----------------------- 2    Win10   running


    log file

    • Neu
    • Offizieller Beitrag

    have run the code suggested and this shows

    Did you create the VM with the plugin?

    Did you try removing spice from the VM?

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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 tried removing it but get this



    I dont even know where to add or not add when creating a VM, so it will have been left as default, xml shows


    • Neu
    • Offizieller Beitrag

    I dont even know where to add or not add when creating a VM, so it will have been left as default, xml shows

    If you check the Advanced options checkbox, you can see it. But I still don't understand why it isn't working on your system. I can't recreate.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

    • Neu
    • Offizieller Beitrag

    root@omv7dev:~# grep -i spice /var/log/libvirt/qemu/autostarttest1.log

    -chardev spicevmc,id=charchannel1,name=vdagent \

    -device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":2,"chardev":"charchannel1","id":"channel1","name":"com.redhat.spice.0"}' \

    -audiodev '{"id":"audio1","driver":"spice"}' \

    -spice port=5901,addr=0.0.0.0,disable-ticketing=on,image-compression=off,seamless-migration=on \

    -chardev spicevmc,id=charredir0,name=usbredir \

    -chardev spicevmc,id=charredir1,name=usbredir \


    Works just fine on new VM.


    root@omv7dev:~# dpkg -l | grep -i spice

    ii libspice-server1:amd64 0.15.1-1 amd64 Implements the server side of the SPICE protocol

    ii spice-html5 0.3.0-2 all Spice Web client which runs entirely within a modern browser

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

  • Never noticed the advanced tick, so wouldnt have used it.


    I dont know what spice is tbh

    I just thought with a manual start wokring, and it not on auto startup it was just something starting too early

    • Neu
    • Offizieller Beitrag

    I dont know what spice is tbh

    spice is a more efficient console viewer. It is similar to vnc which is why it is in the same section. I added both for flexibility.

    I just thought with a manual start wokring, and it not on auto startup it was just something starting too early

    It seems to be something with your network setup on the host. I don't know what would cause it though.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

    • Neu
    • Offizieller Beitrag

    could I not just remove spice from the XML? if its that thats causing issue

    Of course. I just don't know why spice is having that issue on your system. It is not having any issues on my four systems with many VMs.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

  • happy to try anything you suggust,





    If im going it right I remove


    Code
    <graphics type='spice' autoport='yes' listen='0.0.0.0'>
          <listen type='address' address='0.0.0.0'/>
          <image compression='off'/>
        </graphics>
        
    
    
    <audio id='1' type='spice'/>



    but when i save it I get this



    • Neu
    • Offizieller Beitrag

    virsh has a hard time with these old nvram VMs. I recommend using virt-manager to edit those VMs. Or edit the XML directly while the VM is powered off in /etc/libvirt/qemu/

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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 you change the nvrams to new ones?


    the Vm was off, so do you just mean use NANO to edit the file in SSH?


    virt-manager, is this install on a ubuntu device then connect it over network?

    • Neu
    • Offizieller Beitrag

    can you change the nvrams to new ones?

    Not easily. Even harder with Windows.


    the Vm was off, so do you just mean use NANO to edit the file in SSH?

    You might use nano. I would use vim. Use whatever editor you are comfortable with.


    virt-manager, is this install on a ubuntu device then connect it over network?

    That is one way. You can also use the virt-manager example in the compose plugin. Then you just use a browser.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

  • no worries, i wont mess with nvrams lol


    I like nano, although can only just use it, editing on there worked it now with on boot.


    tbh I thought the one in the pluggin was jsut like a text editor


    I`ll have a look at adding the virtmanager to docke, as it might be handy but tbh, its rare I change anything on the VMs or create new ones


    thanks for you help though

    • Neu
    • Offizieller Beitrag

    tbh I thought the one in the pluggin was jsut like a text editor

    Nope. It uses virsh to make sure the edit is valid.

    which docker image would you recomend?

    The one in the virt-manager example file in the Compose plugin when you "Add from Example".

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!