Repository navigation
fix(ubuntu): make the Proxmox consoles usable (VGA display, English with nl keyboard, Unicode font) - #5
Merged
Conversation
The base template set vga to serial0, which leaves Proxmox with only the xterm.js console. Keep the serial socket and use a standard VGA display: the cloud image kernel already writes to tty1 and ttyS0, so noVNC shows the tty1 login and xterm.js keeps ttyS0.
…ole font Select the nl keyboard layout in place of Belgian AZERTY, in the Packer build config and the Armbian defaults. Write /etc/default/console-setup with the Uni2 code set and TerminusBold 8x16 so the noVNC text console draws box and symbol glyphs. The fresh-instance check verifies both, and the Proxmox guide points day-to-day work at the xterm.js console.
The image used nl_BE.UTF-8. Use en_US.UTF-8 and keep the Dutch QWERTY keyboard, in the Packer build config and the Armbian defaults. The fresh-instance check verifies the locale.
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.
Console usability for the Ubuntu template. There are three changes.
1. noVNC works again. The base template import set
--vga serial0. With that, Proxmox offers only the xterm.js serial console, noVNC shows nothing, and clones inherit the setting. The import now keeps--serial0 socketand sets--vga std. The cloud image kernel already boots withconsole=tty1 console=ttyS0and getty runs on both, so noVNC showstty1and xterm.js showsttyS0.2. English language, Dutch QWERTY keyboard.
keyboard.layoutchanges frombe(AZERTY) tonl, andlocalefromnl_BE.UTF-8toen_US.UTF-8, incloud-init/build-config.yamland in the Armbian defaults.3. Unicode console font. The build writes
/etc/default/console-setupwithCODESET="Uni2",FONTFACE="TerminusBold"andFONTSIZE="8x16".install.shnow also runs cloud-init'swrite_filesmodule. The Proxmox guide says to use Console > xterm.js for day-to-day work, because it is a real UTF-8 terminal with colours and copy-paste. noVNC is for boot output and recovery.Checks:
check-instance.shverifies the English locale, thenllayout and the console font in a fresh clone.python3 -m unittest discover -s packer/ubuntu/tests. I also ranbash -non the changed scripts andshellcheck -S warningonimport-base-template.sh. I did not runpacker validate, because no HCL changed.Proof on pve:
sw-dev, cloned from template 9100) with--vga std: a screendump showed a shell ontty1, and the serial socket answered from/dev/ttyS0.build-config.yamlwithcloud-init single(keyboard,write_files) and rebooted.localectlshowsX11 Layout: nl,console-setupandserial-getty@ttyS0are active, thettyS0socket shows a login prompt, and a screendump oftty1shows the box-drawing glyphs. Clone 106 is destroyed.Limits:
⏺,⎿), so they still show as diamonds on noVNC. That is why the guide points to xterm.js.systemctl restart console-setuplost the D-Bus connection. console-setup applied the settings on the next boot.Related: lab#16.