A virtual machine on a node in the PVE cluster always shuts down automatically

runing

Member
Jun 21, 2022
18
0
6
A virtual machine was created on a node in the PVE cluster, but it always shuts down automatically. After deleting the virtual machine, it will still automatically shut down when recreated. The virtual machine deployment method is to use QM create, and the image used is Ubuntu 22.04 LTS. img 。May I ask how to identify the cause of the problem?

Here are the commands to create a virtual machine。
qm create 104 --cores 16 --memory 20480 --net0 virtio,bridge=vmbr0
qm importdisk 104 ubuntu-22.04-LTS.img vm_ssd
qm set 104 --ostype l26 --autostart 1 --ciuser root --cipassword ilove4dbim --scsihw virtio-scsi-pci --scsi0 vm_ssd:vm-104-disk-0 --ide1 vm_ssd:cloudinit --boot c --bootdisk scsi0 --serial0 socket --vga serial0 --ipconfig0 ip=172.30.0.104/24,gw=172.30.0.1 --name ubuntu.3090.pve
 
Hi,

Did you see anything interesting in the syslog when at the time when the VM shutdown?
 
qm importdisk 104 ubuntu-22.04-LTS.img vm_ssd
Don't see the disk ubuntu-22.04-LTS.img being use-added/attached to the VM afterwards.

As per the docs:
qm disk import <vmid> <source> <storage> [OPTIONS]
Import an external disk image as an unused disk in a VM. The image format has to be supported by qemu-img(1).
 
Last edited:
IDK what version of PVE you are using - but under Processor, I see no type.

Try changing Processor Type to host (since it appears you are doing passthrough)
 
IDK what version of PVE you are using - but under Processor, I see no type.
Replying to my own query - I imagine your VM is probably using Default kvm64 type - hence not showing anything.

As my above post try changing Processor Type to host (since it appears you are doing passthrough).
 
Replying to my own query - I imagine your VM is probably using Default kvm64 type - hence not showing anything.

As my above post try changing Processor Type to host (since it appears you are doing passthrough).
I'm not sure how to change to Processor Type host. Do you have any relevant reference documents? Thank you
 
too many RAM allocated ?
iirc, PCI passthrough lock RAM allocated.
Is it possible that the virtual machine can run normally, but will automatically shut down after running for a period of time, or is it PCI passthrough locking RAM? How to check if PCI passthrough locks RAM? Is there a solution?
 
I'm not sure how to change to Processor Type host. Do you have any relevant reference documents?
Just go to Web GUI, Node, VM, Hardware, Processors, Press Edit & change Type (list through the dropdown). Its really easy.
 

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!