Revision 7adf7814
b/lib/constants.py | ||
---|---|---|
636 | 636 |
HV_KERNEL_PATH: VTYPE_STRING, |
637 | 637 |
HV_KERNEL_ARGS: VTYPE_STRING, |
638 | 638 |
HV_INITRD_PATH: VTYPE_STRING, |
639 |
HV_ROOT_PATH: VTYPE_STRING, |
|
639 |
HV_ROOT_PATH: VTYPE_MAYBE_STRING,
|
|
640 | 640 |
HV_SERIAL_CONSOLE: VTYPE_BOOL, |
641 | 641 |
HV_USB_MOUSE: VTYPE_STRING, |
642 | 642 |
HV_DEVICE_MODEL: VTYPE_STRING, |
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
459 | 459 |
constants.HV_BOOTLOADER_ARGS: hv_base.NO_CHECK, |
460 | 460 |
constants.HV_KERNEL_PATH: hv_base.REQ_FILE_CHECK, |
461 | 461 |
constants.HV_INITRD_PATH: hv_base.OPT_FILE_CHECK, |
462 |
constants.HV_ROOT_PATH: hv_base.REQUIRED_CHECK,
|
|
462 |
constants.HV_ROOT_PATH: hv_base.NO_CHECK,
|
|
463 | 463 |
constants.HV_KERNEL_ARGS: hv_base.NO_CHECK, |
464 | 464 |
constants.HV_MIGRATION_PORT: hv_base.NET_PORT_CHECK, |
465 | 465 |
constants.HV_MIGRATION_MODE: hv_base.MIGRATION_MODE_CHECK, |
... | ... | |
521 | 521 |
config.write("vif = [%s]\n" % ",".join(vif_data)) |
522 | 522 |
config.write("disk = [%s]\n" % ",".join(disk_data)) |
523 | 523 |
|
524 |
config.write("root = '%s'\n" % hvp[constants.HV_ROOT_PATH]) |
|
524 |
if hvp[constants.HV_ROOT_PATH]: |
|
525 |
config.write("root = '%s'\n" % hvp[constants.HV_ROOT_PATH]) |
|
525 | 526 |
config.write("on_poweroff = 'destroy'\n") |
526 | 527 |
config.write("on_reboot = 'restart'\n") |
527 | 528 |
config.write("on_crash = 'restart'\n") |
b/man/gnt-instance.rst | ||
---|---|---|
334 | 334 |
needed for Xen PVM, while for KVM it is only used if the |
335 | 335 |
``kernel_path`` option is also specified. |
336 | 336 |
|
337 |
Please note, that if this setting is an empty string and the |
|
338 |
hypervisor is Xen it will not be written to the Xen configuration |
|
339 |
file |
|
340 |
|
|
337 | 341 |
serial\_console |
338 | 342 |
Valid for the KVM hypervisor. |
339 | 343 |
|
Also available in: Unified diff