vmid) { throw new \RuntimeException('VM ist nicht provisioniert.'); } $this->snapshots->autoBeforeDestructive($vm, $user, 'reinstall'); $vmid = (int) $vm->vmid; $this->proxmox->stopVM($vmid); $this->proxmox->deleteVM($vmid); $vm->update([ 'status' => 'pending', 'provisioning_step' => 'queued', 'proxmox_status' => null, 'proxmox_uptime' => null, 'error_message' => null, ]); ProvisionCustomerJob::dispatch($vm->id); } }