- 
                Notifications
    
You must be signed in to change notification settings  - Fork 120
 
extensions: instance console access #560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
      
        
          +71
        
        
          −6
        
        
          
        
      
    
  
  
     Merged
                    Changes from 3 commits
      Commits
    
    
            Show all changes
          
          
            13 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      f095fb3
              
                extensions: vnc console access
              
              
                shwstppr 7eb478f
              
                update
              
              
                shwstppr ed0f119
              
                add note
              
              
                shwstppr 19124f3
              
                review
              
              
                shwstppr 56997a5
              
                Update source/adminguide/extensions/inbuilt_extensions.rst
              
              
                shwstppr 1fd5cec
              
                changes
              
              
                shwstppr 6ce89d1
              
                fix
              
              
                shwstppr e7785a3
              
                note on proxmox connnection
              
              
                shwstppr 4ac6476
              
                clarity
              
              
                shwstppr 74ee978
              
                fix
              
              
                shwstppr 2e80163
              
                more changes
              
              
                shwstppr 36bef4b
              
                change
              
              
                shwstppr a033fd6
              
                more
              
              
                shwstppr File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -120,7 +120,48 @@ Action Lifecycle | |
| 1. A CloudStack action (e.g., deploy VM) triggers a corresponding extension action. | ||
| 2. CloudStack invokes the extension’s executable with appropriate parameters. | ||
| 3. The extension processes the input and responds within the timeout. | ||
| 4. CloudStack continues orchestration based on the result. | ||
| 4. CloudStack continues action workflow based on the result. | ||
| 
     | 
||
| Console Access for Instances with Orchestrator Extensions | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| 
     | 
||
| Orchestrator extensions can provide console access for instances either through **VNC** or a **direct URL**. | ||
                
       | 
||
| To enable this, the extension must implement the ``getconsole`` action and return output in one of the following JSON formats: | ||
| 
     | 
||
| VNC-based console: | ||
| 
     | 
||
| .. code-block:: json | ||
| 
     | 
||
| { | ||
| "status": "success", | ||
| ... | ||
| "console": { | ||
| "host": "pve-node1.internal", | ||
| "port": "5901", | ||
| "password": "PVEVNC:6329C6AA::ZPcs5MT....d9", | ||
| "protocol": "vnc" | ||
| } | ||
| } | ||
| 
     | 
||
| For VNC-based access, the returned details are forwarded to the Console Proxy VM (CPVM) in the same zone as the instance. The specified **host** and **port** must be reachable from the CPVM. | ||
| 
     | 
||
| Direct URL-based console: | ||
| 
     | 
||
| .. code-block:: json | ||
| 
     | 
||
| { | ||
| "status": "success", | ||
| ... | ||
| "console": { | ||
| "url": "CONSOLE_URL", | ||
| "protocol": "direct" | ||
| } | ||
| } | ||
| 
     | 
||
| 
     | 
||
| .. note:: | ||
| For direct URL–based console access, CloudStack does not report the acquired or client IP address. | ||
| In this mode, security and access control must be handled by the server providing the console. | ||
| 
     | 
||
| Custom Actions | ||
| ^^^^^^^^^^^^^^ | ||
| 
          
            
          
           | 
    @@ -183,4 +224,4 @@ For a clearer understanding of how to implement an extension, developers can ref | |
| 
     | 
||
| It serves as a template with minimal required action handlers, making it a useful starting point for building new extensions. | ||
| 
     | 
||
| Additionally, CloudStack includes built-in extensions for Proxmox and Hyper-V that demonstrate how to implement extensions in different languages - Bash and Python. | ||
| Additionally, CloudStack includes in-built extensions for Proxmox and Hyper-V that demonstrate how to implement extensions in different languages - Bash and Python. | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.