control qm startall

sxlderek

Member
Dec 1, 2009
11
0
21
Sha Tin, Hong Kong, Hong Kong
Hi all,
I am a newbie, I have a few questions:

1. how to control the sequence of starting? (e.g. I want VM 102 to start first).

2. how to insert a delay between each startup (i.e. wait 40 seconds before starting the next VM)

3. how to fix the warning - Use of uninitialized value $path in concatenation (.) or string at /usr/share/perl5/PVE/QemuServer.pm line 585.

:D

my output:

vm3:~# qm startall
Starting Qemu VM 104
Starting Qemu VM 102
Starting Qemu VM 108
Starting Qemu VM 107
Starting Qemu VM 112
Starting Qemu VM 103
Starting Qemu VM 106
Starting Qemu VM 101
Use of uninitialized value $path in concatenation (.) or string at /usr/share/perl5/PVE/QemuServer.pm line 585.
Starting Qemu VM 105
Starting Qemu VM 113
Use of uninitialized value $path in concatenation (.) or string at /usr/share/perl5/PVE/QemuServer.pm line 585.
Starting Qemu VM 110
Use of uninitialized value $path in concatenation (.) or string at /usr/share/perl5/PVE/QemuServer.pm line 585.
 
1. how to control the sequence of starting? (e.g. I want VM 102 to start first).

2. how to insert a delay between each startup (i.e. wait 40 seconds before starting the next VM)

We do not have such features, sorry.

3. how to fix the warning - Use of uninitialized value $path in concatenation (.) or string at /usr/share/perl5/PVE/QemuServer.pm line 585.

What version do you use (pveversion -v)?

And please can you post the configuration of VM 101 (/etc/qemu-server/101.conf)?
 
Hi all,
I am a newbie, I have a few questions:

1. how to control the sequence of starting? (e.g. I want VM 102 to start first).

2. how to insert a delay between each startup (i.e. wait 40 seconds before starting the next VM)

There is no way, I spent whole week to write script that actually could do this for me...
 
Thanks for your help, below is my config:

vm3:/etc/qemu-server# cat 101.conf
name: back.xxxxx.local
ide2: cdrom,media=cdrom
vlan0: e1000=0A:A5:9B:ED:0B:B0
bootdisk: ide0
ostype: l26
ide0: local:101/vm-101-disk-1.raw
memory: 256
onboot: 1
sockets: 1
boot: c
freeze: 0
cpuunits: 800
acpi: 1
kvm: 1
cores: 1
description: 192.168.220.64<br>OpenSuse 11.1 i386<br>BackupPC 3.1
ide1: local:101/vm-101-disk-2.raw

------------------------

vm3:/etc/qemu-server# pveversion -v
pve-manager: 1.5-5 (pve-manager/1.5/4627)
running kernel: 2.6.24-10-pve
proxmox-ve-2.6.24: 1.5-21
pve-kernel-2.6.32-1-pve: 2.6.32-4
pve-kernel-2.6.24-10-pve: 2.6.24-21
pve-kernel-2.6.24-8-pve: 2.6.24-16
pve-kernel-2.6.18-1-pve: 2.6.18-4
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-8
vncterm: 0.9-2
vzctl: 3.0.23-1pve6
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.11.1-1
 
Yes, you are right, I don't have a cdrom.

The problem is solved by changing cdrom to none in the web ui.

btw, here is my qm showcmd

vm3:~# qm showcmd 101
Use of uninitialized value $path in concatenation (.) or string at /usr/share/perl5/PVE/QemuServer.pm line 585.
/usr/bin/kvm -monitor unix:/var/run/qemu-server/101.mon,server,nowait -vnc unix:/var/run/qemu-server/101.vnc,password -pidfile /var/run/qemu-server/101.pid -daemonize -usbdevice tablet -name back.sxl.local -smp sockets=1,cores=1 -boot menu=on,order=c -vga cirrus -tdf -k en-us -drive file=/var/lib/vz/images/101/vm-101-disk-2.raw,if=ide,index=1 -drive file=/var/lib/vz/images/101/vm-101-disk-1.raw,if=ide,index=0,boot=on -drive file=,if=ide,index=2,media=cdrom -m 256 -net tap,vlan=0,ifname=vmtab101i0,script=/var/lib/qemu-server/bridge-vlan -net nic,vlan=0,model=e1000,macaddr=0A:A5:9B:ED:0B:B0 -id 101 -cpuunits 800


Thank you again for your help. :eek: