#!/bin/bash
vmid=<103>
vmstatus=$(qm status $vmid)
if [ "$vmstatus" == "status: stopped" ]; then
    qm start $vmid
fi