Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
3be34f57
Commit
3be34f57
authored
16 years ago
by
Guido Trotter
Browse files
Options
Downloads
Patches
Plain Diff
KVM: advise about VNC support on GetShellCommand
Reviewed-by: iustinp
parent
8470c8db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/hypervisor/hv_kvm.py
+11
-0
11 additions, 0 deletions
lib/hypervisor/hv_kvm.py
with
11 additions
and
0 deletions
lib/hypervisor/hv_kvm.py
+
11
−
0
View file @
3be34f57
...
...
@@ -621,6 +621,17 @@ class KVMHypervisor(hv_base.BaseHypervisor):
utils
.
ShellQuote
(
cls
.
_InstanceSerial
(
instance
.
name
))))
else
:
shell_command
=
"
echo
'
No serial shell for instance %s
'"
%
instance
.
name
vnc_bind_address
=
hvparams
[
constants
.
HV_VNC_BIND_ADDRESS
]
if
vnc_bind_address
:
if
instance
.
network_port
>
constants
.
HT_HVM_VNC_BASE_PORT
:
display
=
instance
.
network_port
-
constants
.
HT_HVM_VNC_BASE_PORT
vnc_command
=
(
"
echo
'
Instance has VNC listening on %s:%d
"
"
(display: %d)
'"
%
(
vnc_bind_address
,
instance
.
network_port
,
display
))
shell_command
=
"
%s; %s
"
%
(
vnc_command
,
shell_command
)
return
shell_command
def
Verify
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment