Skip to content

CA-410965: Modify default ref of console #6553

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
merged 1 commit into from
Jun 26, 2025

Conversation

BengangY
Copy link
Contributor

@BengangY BengangY commented Jun 24, 2025

The ref parameter within the location attribute of the console can refer to either the VM's ref or the console's own ref. Currently, the console's location uses the VM's ref by default.

This causes an issue: when executing xe console, the requested location contains the VM's ref. If the ref points to the VM, xapi will attempt to use the RFB console (which is graphical) by default, rather than the VT100 console (which is text-based). As a result, the xs console command fails to open the console and hangs.

Solution:
Update the default ref in the console's location to the console's own ref. With this change, whether accessing the RFB or the VT100 console, the ref in the location will always point to the respective console itself.

The `ref` parameter within the `location` attribute of the console can
refer to either the VM's ref or the console's own ref. Currently, the
console's location uses the VM's ref by default.

This causes an issue: when executing xs console, the requested
location contains the VM's ref. If the ref points to the VM, xapi will
attempt to use the RFB console (which is graphical) by default, rather
than the VT100 console (which is text-based). As a result, the xs
console command fails to open the console and hangs.

**Solution:**
Update the default ref in the console's `location` to the console's
own ref. With this change, whether accessing the RFB or the VT100
console, the ref in the `location` will always point to the respective
console itself.

Signed-off-by: Bengang Yuan <bengang.yuan@cloud.com>
Copy link
Member

@psafont psafont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this was an oversight

@BengangY BengangY marked this pull request as ready for review June 25, 2025 09:31
@changlei-li
Copy link
Contributor

I edited the PR msg "xs console" -> "xe console".
Could you kindly point out the location in the code that If the ref points to the VM, xapi will attempt to use the RFB console? I am trying to understand the issue better.

@BengangY
Copy link
Contributor Author

I edited the PR msg "xs console" -> "xe console". Could you kindly point out the location in the code that If the ref points to the VM, xapi will attempt to use the RFB console? I am trying to understand the issue better.

Thanks. It's in function default_console_of_vm in console.ml.

@BengangY BengangY added this pull request to the merge queue Jun 26, 2025
Merged via the queue into xapi-project:master with commit ee85085 Jun 26, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants