ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    ProxMox: Set VM to AutoStart from Command Line CLI Start

    IT Discussion
    qm proxmox kvm command line cli linux debian
    3
    5
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Getting a VM to start automatically is a common task and would be far easier to do from the command line shell than to take the time to log into the web GUI, hunt around, etc. So much faster. You just need the command...

      qm set VMID_Here --onboot 1
      
      scottalanmillerS 1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller @scottalanmiller
        last edited by

        Example usage, if the VM that we want to start is "101"...

        # qm set 101 --onboot 1
        update VM 101: -onboot 1
        

        If you don't know how to quickly find the VMID of your VM, us...

        qm list
        
        1 Reply Last reply Reply Quote 1
        • 1
          1337
          last edited by

          Nice but it's even easier with pure kvm as you don't have to go the roundabout way of using VMid.

          virsh autostart somevm

          JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @1337
            last edited by

            @Pete-S said in ProxMox: Set VM to AutoStart from Command Line CLI Start:

            Nice but it's even easier with pure kvm as you don't have to go the roundabout way of using VMid.

            virsh autostart somevm

            And the exact VM name (case sensitive) is different than the VM ID how?

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller @1337
              last edited by

              @Pete-S said in ProxMox: Set VM to AutoStart from Command Line CLI Start:

              Nice but it's even easier with pure kvm as you don't have to go the roundabout way of using VMid.

              virsh autostart somevm

              Personally I find the number quite a bit easier.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post