Starting the VM from Jenkins

rvkasyanov

New Member
Jun 23, 2020
3
0
1
30
Hello there again!

I'm testing a band Jenkins+Proxmox using a Jenkins plugin "Proxmox plugin".
Jenkins v.:2.204
Jenkins plugin v.:0.4.1
Proxmox v.: 6.2-4

My basic pipeline consists of 1 Stage and 1 step. Here is it
qm create 201 --cdrom data:iso/sintezm-server-7.7.191220-x86_64.iso --name ${JOB_NAME} --arch x86_64 --boot ncd --virtio0 data:8,format=raw --memory 1024 --sockets 1 --vga qxl qm set 201 -vga qxl sleep 3 qm start 201 sleep 3 cp /root/spice.sh . bash ./spice.sh -u 'root@pam' -p 12345678 201 pve 10.0.1.118

Generally the pipeline works fine except one moment. During the execution of the shell command on a Jenkins agent (Proxmox VE) qm start 201 the VM starts but after a couple of seconds turns off....But if I start a VM directly from the PVE server via qm start command it works all fine.

Did anybody face that problem?
 

Attachments

  • 2020-06-23_16-35.png
    2020-06-23_16-35.png
    73.6 KB · Views: 42
hi,

what do you see in the tasklog when you double click the 'qmstart' task? any errors?