Starting the VM from Jenkins

rvkasyanov

New Member
Jun 23, 2020
3
0
1
29
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: 38
hi,

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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!