Hi, I'm trying to create vm, on my proxmox test cluster with ceph storage, virtual machine exclusively via cli.
I understood that I have to use the qm command, but I did not understand where in the command the hard drive is created like when I create it from the GUI.
Could some of you guide me "in translating" everything that is usually done via GUI in CLI or if you have example links for the various cases?
This is my starting point where I got stuck:
qm create 105 --name vm1 --autostart 1 --balloon 2048 --memory 2048 --sockets 1 --cores 1 --smp 1 --keyboard it --numa 1 --ostype l26 --start 1 --storage cephsdata_storage --cdrom cephfs:iso/Centos7Kickstart.iso --scsihw virtio-scsi-pci --scsi0
the iso image is "cooked" specifically with kickstart, it is a centos 7, so that once started it installs in "unattended" mode.
I am also attaching the screenshots of all the steps I take via the GUI.
cephfs is the storage part of the ceph cluster dedicated to ISOs,
while cephfs_data_storage_data is the part dedicated to storing the VMs inside the ceph cluster.
BR !
I understood that I have to use the qm command, but I did not understand where in the command the hard drive is created like when I create it from the GUI.
Could some of you guide me "in translating" everything that is usually done via GUI in CLI or if you have example links for the various cases?
This is my starting point where I got stuck:
qm create 105 --name vm1 --autostart 1 --balloon 2048 --memory 2048 --sockets 1 --cores 1 --smp 1 --keyboard it --numa 1 --ostype l26 --start 1 --storage cephsdata_storage --cdrom cephfs:iso/Centos7Kickstart.iso --scsihw virtio-scsi-pci --scsi0
the iso image is "cooked" specifically with kickstart, it is a centos 7, so that once started it installs in "unattended" mode.
I am also attaching the screenshots of all the steps I take via the GUI.
cephfs is the storage part of the ceph cluster dedicated to ISOs,
while cephfs_data_storage_data is the part dedicated to storing the VMs inside the ceph cluster.
BR !