Linux

[XENSERVER] VM 자동 재부팅 ON

YH.Dream 2025. 11. 4. 22:37

1. 호스트

# POOL
xe pool-param-set uuid=$(xe pool-list --minimal) other-config:auto_poweron=true

# 단독
xe host-param-set uuid=$(xe host-list --minimal) other-config:auto_poweron=true

2. VM

for i in $(seq -w 1 84); do
    VM_UUID=$(xe vm-list name-label=${i} --minimal)
    if [ -n "$VM_UUID" ]; then
        xe vm-param-set uuid=${VM_UUID} other-config:auto_poweron=true
    else
        echo "VM ${i} not found"
    fi
done