Revision 3be34f57
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
621 | 621 |
utils.ShellQuote(cls._InstanceSerial(instance.name)))) |
622 | 622 |
else: |
623 | 623 |
shell_command = "echo 'No serial shell for instance %s'" % instance.name |
624 |
|
|
625 |
vnc_bind_address = hvparams[constants.HV_VNC_BIND_ADDRESS] |
|
626 |
if vnc_bind_address: |
|
627 |
if instance.network_port > constants.HT_HVM_VNC_BASE_PORT: |
|
628 |
display = instance.network_port - constants.HT_HVM_VNC_BASE_PORT |
|
629 |
vnc_command = ("echo 'Instance has VNC listening on %s:%d" |
|
630 |
" (display: %d)'" % (vnc_bind_address, |
|
631 |
instance.network_port, |
|
632 |
display)) |
|
633 |
shell_command = "%s; %s" % (vnc_command, shell_command) |
|
634 |
|
|
624 | 635 |
return shell_command |
625 | 636 |
|
626 | 637 |
def Verify(self): |
Also available in: Unified diff