Skip to content

fix(ubuntu): make the Proxmox consoles usable (VGA display, English with nl keyboard, Unicode font) - #5

Merged
michielvha merged 3 commits into
mainfrom
fix/proxmox-vga-console
Nov 23, 2026
Merged

michielvha merged 3 commits into
mainfrom
fix/proxmox-vga-console

Conversation

@michielvha

@michielvha michielvha commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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 socket and sets --vga std. The cloud image kernel already boots with console=tty1 console=ttyS0 and getty runs on both, so noVNC shows tty1 and xterm.js shows ttyS0.

2. English language, Dutch QWERTY keyboard. keyboard.layout changes from be (AZERTY) to nl, and locale from nl_BE.UTF-8 to en_US.UTF-8, in cloud-init/build-config.yaml and in the Armbian defaults.

3. Unicode console font. The build writes /etc/default/console-setup with CODESET="Uni2", FONTFACE="TerminusBold" and FONTSIZE="8x16". install.sh now also runs cloud-init's write_files module. 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.sh verifies the English locale, the nl layout and the console font in a fresh clone.
  • New unit test for the build config, plus an assertion on the import flags. All 49 tests pass with python3 -m unittest discover -s packer/ubuntu/tests. I also ran bash -n on the changed scripts and shellcheck -S warning on import-base-template.sh. I did not run packer validate, because no HCL changed.

Proof on pve:

  • VM 105 (sw-dev, cloned from template 9100) with --vga std: a screendump showed a shell on tty1, and the serial socket answered from /dev/ttyS0.
  • Disposable linked clone 106 of 9100: I applied this branch's build-config.yaml with cloud-init single (keyboard, write_files) and rebooted. localectl shows X11 Layout: nl, console-setup and serial-getty@ttyS0 are active, the ttyS0 socket shows a login prompt, and a screendump of tty1 shows the box-drawing glyphs. Clone 106 is destroyed.

Limits:

  • Terminus Uni2 has no glyphs for some symbols Claude Code uses (⏺, ⎿), so they still show as diamonds on noVNC. That is why the guide points to xterm.js.
  • In the clone, cloud-init's keyboard module wrote the layout but logged a failure, because its systemctl restart console-setup lost the D-Bus connection. console-setup applied the settings on the next boot.
  • Template 9100 itself is unchanged until it is rebuilt from this branch. I did not do a full Packer rebuild.

Related: lab#16.

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.
@michielvha michielvha changed the title fix(proxmox): keep a VGA display so the noVNC console works fix(ubuntu): make the Proxmox consoles usable (VGA display, nl keyboard, Unicode font) Nov 23, 2026
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.
@michielvha michielvha changed the title fix(ubuntu): make the Proxmox consoles usable (VGA display, nl keyboard, Unicode font) fix(ubuntu): make the Proxmox consoles usable (VGA display, English with nl keyboard, Unicode font) Nov 23, 2026
@michielvha
michielvha merged commit e050652 into main Nov 23, 2026
1 check passed
@michielvha
michielvha deleted the fix/proxmox-vga-console branch November 23, 2026 16:08
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.

1 participant