pvectl list: missing vm

mir

Famous Member
Apr 14, 2012
3,568
127
133
Copenhagen, Denmark
Hi all,

Doing a pvectl list displays a list with a missing vm?
pvectl list
Use of uninitialized value in printf at /usr/bin/pvectl line 46.
VMID NAME STATUS MEM(MB) DISK(GB)
101 repo running 512 50.00
102 nfs1 stopped 1024 100.00
103 postgres stopped 512 10.00
105 www stopped 1024 15.00
106 wheezy stopped 512 4.00
112 owncloud running 512 30.00
123 ubuntu-1204 stopped 1024 10.00
125 fw1-pub stopped 256 2.00

As the above shows the command also displays an error.

The missing vm:
cat /etc/pve/qemu-server/109.conf
#eth0%3A 192.168.2.201
#eth1%3A 172.16.1.201
boot: cn
bootdisk: virtio0
cores: 2
cpu: qemu32
ide2: none,media=cdrom
memory: 384
name: ns1.datanom.net
net0: virtio=76:18:DB:B7:EB:C9,bridge=vmbr0
net1: virtio=7E:D7:33:6D:FB:4A,bridge=vmbr10
ostype: l26
sockets: 1
startup: order=1
virtio0: qnap_nfs:109/vm-109-disk-1.raw,size=4303355904

pveversion -v
pve-manager: 2.2-32 (pve-manager/2.2/3089a616)
running kernel: 2.6.32-17-pve
proxmox-ve-2.6.32: 2.2-83
pve-kernel-2.6.32-17-pve: 2.6.32-83
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.4-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.93-2
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.9-1
pve-cluster: 1.0-34
qemu-server: 2.0-72
pve-firmware: 1.0-21
libpve-common-perl: 1.0-41
libpve-access-control: 1.0-25
libpve-storage-perl: 2.0-36
vncterm: 1.0-3
vzctl: 4.0-1pve2
vzprocps: 2.0.11-2
vzquota: 3.1-1
pve-qemu-kvm: 1.3-10
ksm-control-daemon: 1.1-1

- - - Updated - - -

Actually several vm's are missing.

Screenshot-1.png
 
see 'man pvectl'

this tool does not show VM´s, only CT´s.

see 'man qm' for managing KVM VM´s.
 
BTW. Found the cause to the error:
printf "%10s %-20s %-10s %-10s %-12s %-10s\n",
qw(VMID NAME STATUS MEM(MB) DISK(GB));

5 strings written into a format block which expects 6 strings. Is a variable missing or does the format block expects to many strings?

Should I create a bug report?
 
yes.
 

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!