Create VM causes Proxmox error: start failed

eiger3970

Well-Known Member
Sep 9, 2012
276
3
58
Hello,
I have created a 4th VM on Proxmox and when I try to start the VM I receive the below Proxmox error:
TASK ERROR: start failed: command '/usr/bin/kvm -id 159 -chardev 'socket,id=qmp,path=/var/run/qemu-server/159.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/159.vnc,x509,password -pidfile /var/run/qemu-server/159.pid -daemonize -name Test -smp 'sockets=1,cores=1' -nodefaults -boot 'menu=on' -vga cirrus -k en-us -m 2048 -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -drive 'file=/var/lib/vz/template/iso/ubuntu-14.04-server-amd64.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/159/vm-159-disk-1.raw,if=none,id=drive-virtio0,format=raw,aio=native,cache=none' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap159i0,script=/var/lib/qemu-server/pve-bridge' -device 'e1000,mac=2E:92:98:F6:FB:CF,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1

I have searched for a solution, but no luck so far.
Any suggestions please?
 
Thank you.
# qm start 159 also shows an error:
Failed to allocate 2147483648 B: Cannot allocate memory
start failed: command '/usr/bin/kvm -id 159 -chardev 'socket,id=qmp,path=/var/run/qemu-server/159.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/159.vnc,x509,password -pidfile /var/run/qemu-server/159.pid -daemonize -name Test -smp 'sockets=1,cores=1' -nodefaults -boot 'menu=on' -vga cirrus -k en-us -m 2048 -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -drive 'file=/var/lib/vz/template/iso/ubuntu-14.04-server-amd64.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/159/vm-159-disk-1.raw,if=none,id=drive-virtio0,format=raw,aio=native,cache=none' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap159i0,script=/var/lib/qemu-server/pve-bridge' -device 'e1000,mac=2E:92:98:F6:FB:CF,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1

Perhaps as I have 4 VMs on Proxmox, the total CPU or memory usage of the 4 VMs exceed the computer's CPU and memory power?
 
Thank you.
# qm start 159 also shows an error:
Failed to allocate 2147483648 B: Cannot allocate memory
....

Perhaps as I have 4 VMs on Proxmox, the total CPU or memory usage of the 4 VMs exceed the computer's CPU and memory power?

how much RAM do you have on your host? never assign more RAM as you have physically on your host to your VMs.
 
Last edited:
Thank you.
I use 2048 MB on each of the 4 VMs, as the 2048 MB worked on the 3 VMs, but not this 4th VM?
I checked the RAM on the Proxmox computer which seems to show 57 (MB?) free.
Code:
             total       used       free     shared    buffers     cached
Mem:          1743       1685         57          0          4         44
-/+ buffers/cache:       1636        106
Swap:         4095       2683       1412
 
how much RAM do you have on your host?
 
so you have just 2 GB RAM, so you should not assign more than 1.5 GB to your VM´s in total.
 
Thank you.
I set the new VM to 1024 MB rather than the usual 2048 MB (which works on the 3 other VMs) and the server works.
Strange how the other VMs work, but atleast it's working for now.