Revision 3b6d8c9b scripts/gnt-instance
b/scripts/gnt-instance | ||
---|---|---|
241 | 241 |
|
242 | 242 |
(pnode, snode) = SplitNodeOption(opts.node) |
243 | 243 |
|
244 |
kernel_path = _TransformPath(opts.kernel_path) |
|
245 |
initrd_path = _TransformPath(opts.initrd_path) |
|
246 |
|
|
244 | 247 |
op = opcodes.OpCreateInstance(instance_name=instance, mem_size=opts.mem, |
245 | 248 |
disk_size=opts.size, swap_size=opts.swap, |
246 | 249 |
disk_template=opts.disk_template, |
... | ... | |
249 | 252 |
snode=snode, vcpus=opts.vcpus, |
250 | 253 |
ip=opts.ip, bridge=opts.bridge, |
251 | 254 |
start=opts.start, ip_check=opts.ip_check, |
252 |
wait_for_sync=opts.wait_for_sync, mac=opts.mac) |
|
255 |
wait_for_sync=opts.wait_for_sync, |
|
256 |
mac=opts.mac, |
|
257 |
kernel_path=kernel_path, |
|
258 |
initrd_path=initrd_path) |
|
253 | 259 |
SubmitOpCode(op) |
254 | 260 |
return 0 |
255 | 261 |
|
... | ... | |
745 | 751 |
make_option("--no-ip-check", dest="ip_check", default=True, |
746 | 752 |
action="store_false", help="Don't check that the instance's IP" |
747 | 753 |
" is alive (only valid with --no-start)"), |
754 |
make_option("--kernel", dest="kernel_path", |
|
755 |
help="Path to the instances' kernel (or 'default')", |
|
756 |
default=None, |
|
757 |
type="string", metavar="<FILENAME>"), |
|
758 |
make_option("--initrd", dest="initrd_path", |
|
759 |
help="Path to the instances' initrd (or 'none', or 'default')", |
|
760 |
default=None, |
|
761 |
type="string", metavar="<FILENAME>"), |
|
748 | 762 |
] |
749 | 763 |
|
750 | 764 |
commands = { |
Also available in: Unified diff