I want to deploy a host in proxmox using bootdisk as a non root user using api. I have an iso file outside proxmox server that needs to be attached to cdrom. This is I have tried so far:
1. Copy iso file to
2. Once the cdrom is attached (VM is powered on) I need to set the boot order so that cdrom is first in boot order list. Issue: I need to restart the vm in order for the boot order to set.
3. Once the vm is booted, I detach the cdrom otherwise after finishing the system boot process vm automatically reboots and it selects the cdrom again and start booting the system with that cdrom. Issue: I cannot detach the cdrom without restarting the vm as it throws hotplug error or doen't update the server (text is in yellow for hardware section in GUI). But if I restart the vm then other processes which are needed for the host configuration are stopped.
I have tried using ide2, scsi0 for cdrom and I have tried booting with harddisk as well but they all either fail with hotplug problem or don't update powered on server unless I explicitly restart it (which is not possible in my case otherwise other processes for host configuration will stop).
Is there any other way to deploy vm using iso as a non-root user via api so that it can update the boot order without system restart and detach the bootdisk device after successful built?
1. Copy iso file to
/var/lib/vz/template/iso
and then attach this storage volume to cd-rom. Issue: I cannot copy the file to this path as a non-root user.2. Once the cdrom is attached (VM is powered on) I need to set the boot order so that cdrom is first in boot order list. Issue: I need to restart the vm in order for the boot order to set.
3. Once the vm is booted, I detach the cdrom otherwise after finishing the system boot process vm automatically reboots and it selects the cdrom again and start booting the system with that cdrom. Issue: I cannot detach the cdrom without restarting the vm as it throws hotplug error or doen't update the server (text is in yellow for hardware section in GUI). But if I restart the vm then other processes which are needed for the host configuration are stopped.
I have tried using ide2, scsi0 for cdrom and I have tried booting with harddisk as well but they all either fail with hotplug problem or don't update powered on server unless I explicitly restart it (which is not possible in my case otherwise other processes for host configuration will stop).
Is there any other way to deploy vm using iso as a non-root user via api so that it can update the boot order without system restart and detach the bootdisk device after successful built?