Closed rdavid000 closed 1 year ago
Hey there, the reason you don't have load_user_setup.sh
in ~/.exegol/my-resources/setup/
is probably because you haven't started any container yet. Can you try to create one (exegol start containername someimage
) and check again?
Fyi, the ~/.exegol/my-resources/setup/load_user_setup.sh
is the host path, and /opt/my-resources/setup/load_user_setup.sh
is the path in the container.
Thanks for helping but nop :(
r2d2@IAMPreseed:~$ exegol start my nightly
[*] Exegol is currently in version v4.1.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev) π
[+] We thank HackTheBox for sponsoring the multi-arch support π
[*] Starting exegol
[*] Arguments supplied with the command, skipping interactive mode
β Container summary
ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β Name β my β
β Image β nightly - v.d3d8f764 (Up to date) β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββ€
β GUI β On β β
β Network β host β
β Timezone β On β β
β Exegol resources β On β (/opt/resources) β
β My resources β On β (/opt/my-resources) β
β Shell logging β Off πͺ β
β Privileged β Off β β
β Workspace β Dedicated (/workspace) β
ββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββ
[*] Creating new exegol container
[+] Exegol container successfully created !
sh: 1: xhost: not found
[*] Location of the exegol workspace on the host : /home/r2d2/.exegol/workspaces/my
[+] Opening shell in Exegol 'my'
[oh-my-zsh] Would you like to update? [Y/n]
Updating Oh My Zsh
master
BREAKING CHANGES:
- fc72280 [jira]
Rename myissues to mine and add completion (#10931)
- 61dd368 [nats]
Rename `nsc` plugin to `nats`
- f1a8000 [brew]
Rename `buf` alias to `bfu` to avoid conflicts with protobuf tool
- d48cbb8 [git]
`gpf` and `gpsupf` now have the `--force-if-includes` flag if git
version is greater than 2.30. It will make force pushes more safer. See
https://stackoverflow.com/questions/65837109/when-should-i-use-git-push-force-if-includes
Features:
- c189e8b [agnoster] Add remote-tracking status to prompt (#7209)
- 041c35f [amuse] Add virtualenv support (#8987)
- eb2147c [aws] Load profiles from credentials file (#11196)
- 379fe0f [azure] Add `azure` plugin (#8848)
- 08c3ce8 [bridgetown] Add plugin for Ruby bridgetown site generator (#10496)
- ea4854d [directories] Add config to skip aliases (#11469)
- 3705edf [docker] Add `drs` alias (#11393)
- 2bc42d2 [docker-compose] Add `dcupdb` alias (#10235)
- 27f3179 [dotnet] Add `dwt` alias (#11470)
- 4b5076b [extract] Add `pbzip2` and `pixz` (#11435)
- 9b91e82 [extract] Add `zpaq` support (#11478)
- bf57b4f [functions/take] Make `.tgz` behave as `.tar.gz` (#11446)
- a1c54e0 [fzf] Add `skip-dpkg` flag to avoid some regressions
- 280c99d [git] Accept `default` and `mainline` as main branches (#11431)
- d48cbb8 [git] Add `force-if-includes` flag (#11481)
- 39525e5 [git] Add `gpsupf` alias (#11268)
- 3545419 [git] Use verbose flags in aliases
- 0e9e536 [gradle] Update completion from upstream (#11485)
- 7ea8a93 [helm] Add aliases (#11361)
- 746424f [homebrew] Adding new alias for brew uninstall --zap as buz closes #10329 (#10331)
- fc86a16 [homebrew] Brew greedy upgrade aliases (#9623)
- b2313ec [installer] Respect and install in `$ZDOTDIR` if set (#9376)
- 5850843 [jira] Add optional plugin "tempo" path (#11121)
- e0d0dfb [jira] Support rapid view on rapid board mode (#9459)
- a3c579b [maven] Add `quarkus` command support (#11405)
- 7de5584 [mlh] Add separate prompt symbol for root user (#11451)
- a051eb0 [mvn] Add completion for Vaadin (#11362)
- 61dd368 [nats] Rename `nsc` plugin to `nats`
- 8f0e296 [nsc] Add completion plugin
- 64bc22a [nvm] Add `silent-autoload` setting (#11363)
- cc5100d [pip] Add several aliases (#10647)
- 00c37b6 [pipenv] Standarize completion generation (#11424)
- e583648 [qrcode] New plugin to generate qrcode via https://qrcode.show (#10247)
- 55e4e6c [systemd] Add support for user units in prompt (#11417)
- 13082bb [watson] Add completion (#10886)
- 4181e8a [yarn] Add alias for `yarn why` (#10773)
- 3a9322b [yarn] Add format alias (#11368)
- 3fd63fd [zsh-interactive-cd] Sync version with upstream (#11024)
Bug fixes:
- 6710fd5 [autojump] Fix autojump sourcing in nix (-darwin) (#11422)
- 36f1055 [autojump] Use sh file instead of zsh in NixOS (#11425)
- f1a8000 [brew] Rename `buf` alias to `bfu`
- 6eefaf5 [brew] Renamed buf alias to bfu (#11195)
- df65835 [clipboard] Move wsl detection to higher priority (#11440)
- 9c2d1af [doctl] Actually load completions (#11402)
- ca0acf3 [emacs] Make `alternate-editor` work for emacs >28
- b0bffca [fzf] Fix check for true Debian-like in debian setup function (#11460)
- 3e1c0d5 [fzf] Installation dir for brew M1 (#11490)
- 45571bf [git] `gpristine` requires two `--force` flags
- 71ca386 [git-extras] Type properly `__gitex_command_successful` calls
- f9104d1 [gradle] Move compdef line (#11488)
- 5b9de6a [init] Remove duplicated check
- 6c3cf65 [installer] Automatically create ZDOTDIR path if it doesn't exist
- 5c9a3d2 [installer] Don't use `$ZDOTDIR` in zshrc file if same as `$HOME`
- 9f31951 [jira] Make prefix check on "jira branch" command case-insensitive (#8799)
- 046f0ca [jira] Update README examples to a table format
- b692ff2 [kubectl] Redirect stderr in completion generation
- 2c2187b [macos] Fix `man-preview` for macOS Ventura (#11324)
- 585e713 [nvm] Omit message when silent-autoload is enabled (#11371)
- fc44c49 [nvm] Trim non-printable chars from .nvmrc (#10997)
- f8bf8f0 [sudo] Only call redisplay if zle is enabled
- e55e3f0 [systemadmin] Handle error for no IPv6 route in `geteip` (#11458)
- 657ad05 [theme-and-appearance] Fix `diff` completion in macOS
- f4dc8c5 [tmux] Use `$...SESSION_NAME` while attaching (#10946)
- 3fca9c8 [upgrade] Check if git is available and working
- fe0dd82 [upgrade] Do not upgrade if not called from tty
Performance:
- ba8777f [fzf] Speed up startup on debian (#11122)
Documentation:
- b256c12 [fasd] Recommend fork over original fasd (#11474)
- 6dc6646 [git] Add missing entries and run formatter
- 87f1941 [git] Remove duplicated line
- ed40746 [lando] Php support (#11491)
- 0f71cfd [qrsvg] Fix command example (#11436)
- 29cf199 [term_tab] Plugin can only be used with linux and solaris (#11385)
- 82c0db4 [term_tab] Rewrite README in markdown (#11381)
Other changes:
- bc36043 [heroku-cli] Add heroku cli alias (#9073)
- fc72280 [jira] Refactor: Rename myissues to mine and add completion (#10931)
- 658eb01 [kubectl] Refactor: Standarize completion generation
You can see the changelog with `omz changelog`
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/
Hooray! Oh My Zsh has been updated!
To keep up with the latest news and updates, follow us on Twitter: https://twitter.com/ohmyzsh
Want to get involved in the community? Join our Discord: https://discord.gg/ohmyzsh
Get your Oh My Zsh swag at: https://shop.planetargon.com/collections/oh-my-zsh
[Feb 12, 2023 - 16:38:03 (CET)] exegol-my /workspace #
r2d2@IAMPreseed:~$ exegol info
[*] Exegol is currently in version v4.1.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev) π
[+] We thank HackTheBox for sponsoring the multi-arch support π
πΈ Available images
βββββββββββββ¬ββββββββββββββββββββββ¬ββββββββββββββββββββββββββ
β Image tag β Size β Status β
βββββββββββββΌββββββββββββββββββββββΌββββββββββββββββββββββββββ€
β nightly β 27.2GB β Up to date (v.d3d8f764) β
β full β 11.9GB (compressed) β Not installed β
β ad β 8.6GB (compressed) β Not installed β
β web β 6.8GB (compressed) β Not installed β
β osint β 3.6GB (compressed) β Not installed β
β light β 4.8GB (compressed) β Not installed β
βββββββββββββ΄ββββββββββββββββββββββ΄ββββββββββββββββββββββββββ
π½ Available containers
βββββββββββββββββ¬ββββββββββ¬ββββββββββββ¬ββββββββββββββββββββββββ
β Container tag β State β Image tag β Configurations β
βββββββββββββββββΌββββββββββΌββββββββββββΌββββββββββββββββββββββββ€
β my β Running β nightly β Default configuration β
βββββββββββββββββ΄ββββββββββ΄ββββββββββββ΄ββββββββββββββββββββββββ
r2d2@IAMPreseed:~$ ls /opt/my-resources/setup/
ls: cannot access '/opt/my-resources/setup/': No such file or directory
r2d2@IAMPreseed:~$ ls /opt/
containerd
r2d2@IAMPreseed:~$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
393856fe7a63 nwodtuhs/exegol:nightly "/.exegol/entrypointβ¦" 3 minutes ago Up 3 minutes exegol-my
r2d2@IAMPreseed:~$ ls ~/.exegol/my-resources/setup/load_user_setup.sh
/home/r2d2/.exegol/my-resources/setup/load_user_setup.sh
r2d2@IAMPreseed:~$ exegol stop my
[*] Exegol is currently in version v4.1.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev) π
[+] We thank HackTheBox for sponsoring the multi-arch support π
[*] Stopping exegol
[*] Stopping container my
r2d2@IAMPreseed:~$ exegol start my
[*] Exegol is currently in version v4.1.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev) π
[+] We thank HackTheBox for sponsoring the multi-arch support π
[*] Starting exegol
[*] Arguments supplied with the command, skipping interactive mode
[*] Starting container my
sh: 1: xhost: not found
[*] Location of the exegol workspace on the host : /home/r2d2/.exegol/workspaces/my
[+] Opening shell in Exegol 'my'
[Feb 12, 2023 - 16:44:21 (CET)] exegol-my /workspace # service ssh status
sshd is not running ... failed!
[Feb 12, 2023 - 16:44:27 (CET)] exegol-my /workspace #
From the container, can you cat /var/log/exegol/load_setups.log
?
Can you also run the following command inside your container ?
ls -lhaR /opt/my-resources/
ps -faux
And also just to better understand the needs, you are trying to start an ssh server from within the container ?
Because there is a problem here, the load_user_setup sh
script is executed one time at the container creation and not at each start, it could be used to install or customize some configuration but not really useful at starting service every time...
It still not explain why you didn't find your script file inside your container (maybe there is a bug with your nightly release, the stable one is full
).
Hope it can be useful
I just redo the things and now i see this files. Strange. Ty for the help
Describe the bug
Start container command can't be setup.
I dont have this files /opt/my-resources/setup/load_user_setup.sh (fresh install from a pip install exegol) Anyway i try /root/.exegol/my-resources/setup/load_user_setup.sh without success and no load_setups.log is found
Same after : echo "#!/bin/bash" > /opt/my-resources/setup/load_user_setup.sh echo "service ssh start" >> /opt/my-resources/setup/load_user_setup.sh
Steps To Reproduce
apt-get update -y apt-get upgrade -y apt-get install openssh-server sudo -y useradd -s /bin/bash -m r2d2 && echo 'r2d2:1234' | chpasswd usermod -aG sudo r2d2 newgrp sudo apt-get clean -yq systemctl daemon-reload sudo su r2d2 cd /home/r2d2 sudo apt install ca-certificates curl gnupg lsb-release -y sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update -y sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin pip -y sudo usermod -aG docker r2d2 newgrp docker sudo systemctl enable docker.service sudo systemctl enable containerd.service python3 -m pip install exegol exegol install exegol start MyExegol nightly
Exegol Wrapper Version
Host OS
Configuration of the concerned container
Execution logs in debug mode
Exception
No response
Anything else?