Revision 8b3fd458 lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
176 | 176 |
|
177 | 177 |
kvm = constants.KVM_PATH |
178 | 178 |
kvm_cmd = [kvm] |
179 |
kvm_cmd.extend(['-m', instance.memory])
|
|
180 |
kvm_cmd.extend(['-smp', instance.vcpus])
|
|
179 |
kvm_cmd.extend(['-m', instance.beparams[constants.BE_MEMORY]])
|
|
180 |
kvm_cmd.extend(['-smp', instance.beparams[constants.BE_VCPUS]])
|
|
181 | 181 |
kvm_cmd.extend(['-pidfile', pidfile]) |
182 | 182 |
# used just by the vnc server, if enabled |
183 | 183 |
kvm_cmd.extend(['-name', instance.name]) |
... | ... | |
372 | 372 |
""" |
373 | 373 |
if not os.path.exists(constants.KVM_PATH): |
374 | 374 |
return "The kvm binary ('%s') does not exist." % constants.KVM_PATH |
375 |
|
Also available in: Unified diff