Revision 31f6f67a
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
508 | 508 |
kvm_cmd.extend(['-append', ' '.join(root_append)]) |
509 | 509 |
|
510 | 510 |
mouse_type = hvp[constants.HV_USB_MOUSE] |
511 |
vnc_bind_address = hvp[constants.HV_VNC_BIND_ADDRESS] |
|
512 |
|
|
511 | 513 |
if mouse_type: |
512 | 514 |
kvm_cmd.extend(['-usb']) |
513 | 515 |
kvm_cmd.extend(['-usbdevice', mouse_type]) |
516 |
elif vnc_bind_address: |
|
517 |
kvm_cmd.extend(['-usbdevice', constants.HT_MOUSE_TABLET]) |
|
514 | 518 |
|
515 |
vnc_bind_address = hvp[constants.HV_VNC_BIND_ADDRESS] |
|
516 | 519 |
if vnc_bind_address: |
517 | 520 |
if utils.IsValidIP(vnc_bind_address): |
518 | 521 |
if instance.network_port > constants.VNC_BASE_PORT: |
Also available in: Unified diff