Conversation
Closes lxc#2054 Signed-off-by: Mahesh Punjabi <mahesh.punjabi86@gmail.com>
ddcff32 to
22f8e7a
Compare
stgraber
approved these changes
Aug 10, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ask
#2054: Ability to add arguments for VM console without a workaround on the OS. for ex: incus console instance --type=vga will launch spicy or remote-viewer.
What was changed?
After discussion in #2054 :
DefaultSettingsstruct:Add a methods
defaultConsoleType()anddefaultConsoleVgaCommand()incmd/incus/main.goto return the "vga" if the user configured console_prefer_vga, otherwise return "console"for flag, replace
consolewith call todefaultConsoleType()incmd/incus/console.goupdate logic in
vga()method to calldefaultConsoleVgaCommand()and apply returned string after replacing SOCKET keywordTests Done
incuson test system and confirmed that new rule was put in placeNote to self:
Basic setup:
Manual test procedure:
defaults:
console_prefer_vga: true
console_vga_command: /usr/bin/remote-viewer -t i2054 SOCKET
incuscmdRef: https://discuss.linuxcontainers.org/t/how-to-connect-to-remote-windows-vm/20210/2
Ref: https://linuxcontainers.org/incus/news/ section: Configuration of list format