Coder Social home page Coder Social logo

mistercalvin / supermicro-java-ikvm Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 5.0 199 KB

A container for connecting to Supermicro Java based iKVM viewers via a web browser

License: MIT License

Dockerfile 36.35% Shell 63.65%
docker java kvm supermicro webui

supermicro-java-ikvm's Introduction

Main Window
Virtual Media

Supermicro Java iKVM Viewer Docker

A Docker container for connecting to Supermicro Java based iKVM Viewers, built from jlesage/docker-baseimage-gui. See Disclaimers & Current Bugs before using.

docker compose

version: '3.8'
services:
  supermicro-java-ikvm:
    image: ghcr.io/mistercalvin/supermicro-java-ikvm:latest
    container_name: supermicro-java-ikvm
    environment:
      TZ: UTC
      USER_ID: 1000
      GROUP_ID: 1000
      KVM_HOST: # IP or Hostname
      KVM_USER: # Your IPMI Username
      KVM_PASS: # Your IPMI Password
      DISPLAY_WIDTH: 1024 # Display Width
      DISPLAY_HEIGHT: 768 # Display Height
    ports:
      - 5800:5800 # Web UI Port
      - 5900:5900 # VNC Port
    volumes:
      - ./vmedia:/app/vmedia/ # Virtual Media ISO's
      - ./screenshots:/app/screenshots/ # Screenshots / Recordings
      - supermicro-java-ikvm:/config/ # Persistent Configuration for user preferences
    restart: no

volumes:
  supermicro-java-ikvm:
    name: supermicro-java-ikvm

docker cli

Create a named volume before executing the command below: docker volume create supermicro-java-ikvm (this will persist user preferences and iKVM .jar files)

docker run -d \
  --name=supermicro-java-ikvm \
  -e TZ="UTC" \
  -e USER_ID="1000" \
  -e GROUP_ID="1000" \
  -e KVM_HOST="" \
  -e KVM_USER="" \
  -e KVM_PASS="" \
  -e DISPLAY_WIDTH="1024" \
  -e DISPLAY_HEIGHT="768" \
  -p 5800:5800 \
  -p 5900:5900 \
  -v ./vmedia:/app/vmedia/ \
  -v ./screenshots:/app/screenshots/ \
  -v supermicro-java-ikvm:/config/ \
  --restart no \
  ghcr.io/mistercalvin/supermicro-java-ikvm:latest

Once the container is online you can access the web interface via the default port of 5800. If you wish to password protect this page take a look here for steps on how to do so.

User / Group Identifiers

You can specify the UID & GID for the user (app) inside the container, see this page for more information.

Disclaimers & Current Bugs

  • The image has additional environment variables you can customize, take a look at this page for more information. I have not tested the container with any variables other than what is defined in this repo; use these at your own risk.

  • This container has been tested with the following hardware and firmware revision: Supermicro X9DR3-F Motherboard (Nuvoton WPCM450 BMC), BMC Firmware 3.62 [SMT_X9_362.bin]

  • Selecting Español or Korean from Options > Preference > Language Setting will cause a crash, and any attempts to reconnect to the Java viewer will fail. To fix this, login to your server's web interface, then navigate to Maintenance > iKVM Reset. If this does not work you can also reboot the IPMI unit by navigating to Maintenance > Unit Reset.

  • If you are having issues with the UI upon boot, navigate to Options > Preference > Window and uncheck "Auto-resize window."

  • Continuing on the previous point: not all user preferences are saved. Hotkeys, Mouse Settings, and Keyboard settings seem to persist, but all other customization options such as mounted Virtual Media or Video Settings will be lost and need to be changed again if the container is restarted.

  • The container assumes your server's web interface is accessible via port 80 or port 443. If you are using a non-standard port and are having issues connecting you may need to modify the initialization script at build/rootfs/etc/cont-init.d/50-setup-ikvm.sh, specifically line 28, url="https://$KVM_HOST".

Credits

Walter Doekes for their ipmikvm-tls2020 script

supermicro-java-ikvm's People

Contributors

mistercalvin avatar theseubert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

supermicro-java-ikvm's Issues

50-setup-ikvm.sh: terminated with error 1.

Hey, fine project you got here :)

Unfortunately i am not able to run the docker, using the docker-compose script.
Maybe you can help out in this case :)

Thanks in advance!


 ✔ Network root_default            Created                                 0.1s 
 ✔ Volume "supermicro-java-ikvm"   Crea...                                 0.0s 
 ✔ Container supermicro-java-ikvm  Cre...                                  0.9s 
Attaching to supermicro-java-ikvm
supermicro-java-ikvm  | [init        ] container is starting...
supermicro-java-ikvm  | [cont-env    ] loading container environment variables...
supermicro-java-ikvm  | [cont-env    ] APP_NAME: loading...
supermicro-java-ikvm  | [cont-env    ] APP_VERSION: loading...
supermicro-java-ikvm  | [cont-env    ] DISPLAY: executing...
supermicro-java-ikvm  | [cont-env    ] DISPLAY: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] DISPLAY: loading...
supermicro-java-ikvm  | [cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
supermicro-java-ikvm  | [cont-env    ] DOCKER_IMAGE_VERSION: loading...
supermicro-java-ikvm  | [cont-env    ] GTK2_RC_FILES: executing...
supermicro-java-ikvm  | [cont-env    ] GTK2_RC_FILES: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] GTK2_RC_FILES: loading...
supermicro-java-ikvm  | [cont-env    ] GTK_THEME: executing...
supermicro-java-ikvm  | [cont-env    ] GTK_THEME: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] GTK_THEME: loading...
supermicro-java-ikvm  | [cont-env    ] HOME: loading...
supermicro-java-ikvm  | [cont-env    ] JAVA_OPTS: loading...
supermicro-java-ikvm  | [cont-env    ] QT_STYLE_OVERRIDE: executing...
supermicro-java-ikvm  | [cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
supermicro-java-ikvm  | [cont-env    ] QT_STYLE_OVERRIDE: loading...
supermicro-java-ikvm  | [cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_CACHE_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_CONFIG_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_DATA_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_RUNTIME_DIR: loading...
supermicro-java-ikvm  | [cont-env    ] XDG_STATE_HOME: loading...
supermicro-java-ikvm  | [cont-env    ] container environment variables initialized.
supermicro-java-ikvm  | [cont-secrets] loading container secrets...
supermicro-java-ikvm  | [cont-secrets] container secrets loaded.
supermicro-java-ikvm  | [cont-init   ] executing container initialization scripts...
supermicro-java-ikvm  | [cont-init   ] 10-certs.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-certs.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-check-app-niceness.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-check-app-niceness.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-clean-logmonitor-states.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-clean-tmp-dir.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-fontconfig-cache-dir.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-init-users.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-init-users.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-nginx.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-nginx.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-openbox.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-openbox.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-pkgs-mirror.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-set-tmp-dir-perms.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-vnc-password.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-vnc-password.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-web-data.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-web-data.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-x11-unix.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-x11-unix.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 10-xdg-runtime-dir.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 15-cjk-font.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 15-cjk-font.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 15-install-pkgs.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 15-install-pkgs.sh: terminated successfully.
supermicro-java-ikvm  | [cont-init   ] 50-setup-ikvm.sh: executing...
supermicro-java-ikvm  | [cont-init   ] 50-setup-ikvm.sh: terminated with error 1.
supermicro-java-ikvm exited with code 1

webui slash (/) instead of colon (:) after IP address

The webui has an extra slash before the port number (http://192.168.50.7/5800), ending in a '404 not found' error. I'm using unraid and my code is below.

Thanks!

version: "3"
services:
1U:
image: ghcr.io/mistercalvin/supermicro-java-ikvm:latest
container_name: 1U
environment:
TZ: UTC
USER_ID: 1000
GROUP_ID: 1000
KVM_HOST: 192.168.50.5
KVM_USER: ADMIN
KVM_PASS: ADMIN
DISPLAY_WIDTH: 1024 # Display Width
DISPLAY_HEIGHT: 768 # Display Height
ports:
- "5800:5800" # Web UI Port
- "5900:5900" # VNC Port
networks:
- anjo
volumes:
- /mnt/user/isos:/app/vmedia/ # Virtual Media ISO's
- /mnt/user/appdata/1U-ipmi/screenshots:/app/screenshots/ # Screenshots / Recordings
- 1U:/config/ # Persistent Configuration for user preferences
restart: no

volumes:
1U:
name: 1U

networks:
anjo:
driver: bridge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.