KVM: make the kernel and initrd arguments optional
authorGuido Trotter <ultrotter@google.com>
Thu, 29 Jan 2009 15:50:38 +0000 (15:50 +0000)
committerGuido Trotter <ultrotter@google.com>
Thu, 29 Jan 2009 15:50:38 +0000 (15:50 +0000)
commitdf5ab9f0d7b462f9c3c513f45599338c9affe20b
tree7308b9583a7ca3f971563b51e753e1ef7c49cef6
parenta2faf9ee552bf7f0bbb7e03e0be05562763fcb01
KVM: make the kernel and initrd arguments optional

Under KVM we don't strictly need a kernel and initrd. If some are passed
we'll use them, otherwise the guest OS will need to behave as fully
native, and have its own boot loader and kernel.
The root_path hypervisor parameter becomes mandatory only if a kernel is
specified.

Reviewed-by: iustinp
lib/hypervisor/hv_kvm.py