no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | access_legacy_bmc_kvm_consoles_and_other_legacy_java_applets_using_a_podman_container [23.11.2022 18:25] (current) – created Pascal Suter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== access legacy BMC KVM consoles and other legacy Java Applets using a podman container ====== | ||
+ | occasionally I have to access a KVM remote console of an old server where the web GUI of the BMC (some call it IPMI, ILO, RMM) is very old and the java applet that's launched in order to provide the remote KVM is no longer running on an up-to-date javaws installation. If you're lucky you can update the server' | ||
+ | that's why i came up with the following script, which I simply save in my '' | ||
+ | |||
+ | if the legacyff container exists already or once it is built, the script will launch it with x-forwarding, | ||
+ | |||
+ | here's the script that does it all: | ||
+ | |||
+ | <code bash legacyff> | ||
+ | #!/bin/bash | ||
+ | if ! which podman; then | ||
+ | echo " | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | if ! podman image exists legacyff; then | ||
+ | echo " | ||
+ | cat > / | ||
+ | FROM docker.io/ | ||
+ | RUN apt-get update && apt-get -y install icedtea-plugin firefox | ||
+ | RUN timeout 2 firefox --headless || exit 0 | ||
+ | RUN cd / | ||
+ | CMD firefox | ||
+ | EOF | ||
+ | podman build -t legacyff -f legacyff.docker /tmp/ || { echo "BUILD FAILED" | ||
+ | rm -f / | ||
+ | echo "done building the container" | ||
+ | fi | ||
+ | |||
+ | podman run --rm -ti -e DISPLAY -v / | ||
+ | </ |