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

    ProxMox: Set VM to AutoStart from Command Line CLI Start

    IT Discussion
    qm proxmox kvm command line cli linux debian
    3
    5
    116
    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.
    • scottalanmiller
      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
      
      scottalanmiller 1 Reply Last reply Reply Quote 1
      • scottalanmiller
        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
        • Pete.S
          Pete.S 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

          JaredBusch scottalanmiller 2 Replies Last reply Reply Quote 0
          • JaredBusch
            JaredBusch @Pete.S 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 0
            • scottalanmiller
              scottalanmiller @Pete.S 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
              • First post
                Last post