Code Monkey home page Code Monkey logo

Comments (5)

ShutdownRepo avatar ShutdownRepo commented on July 26, 2024

Hey there, thank you for raising this issue. Here are some guidelines that could help us help you

  1. please format your code like ```some code``` so that it can be easily read. I will edit your issue to give you an example.
  2. append -vvv to your command line so that we can have a detailed log of what's happening.

Finally, we support Linux and Windows but MacOS, and especially an M1 architecture, could easily raise some issues. We do not fully support MacOS yet (we don't own any 😞). We will use this issue to start the support.

from exegol.

selimchiki avatar selimchiki commented on July 26, 2024

Here is the command with detailed log, I fork the project to see if I find a solution. You never know

~/Exegol on master ················································································· took 4s Py base ─╮
❯                                                                                                                    ─╯
❯ exegol start -vvv
[*] Starting exegol
[D] Attribute not found in parameters: multicontainertag
[!] No containers have been created yet
[V] Configuring new exegol container
[D] Attribute not found in parameters: multiimagetag
[D] Fetching remote image tags, digests and sizes
[D] Fetching information from: https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags
[D] └── nightly → (remote) sha256:fbfa1aeec10286b310fde112920f8b811d24499b7c07b5c5ff3b08e3dc0f98d6
[D] └── full-2.0.1      → (remote) sha256:8ff1870bd0dc5c7d79772454b67651d79a23f2b6ad15ab490f00822f6ee324f1
[D] └── full    → (remote) sha256:8ff1870bd0dc5c7d79772454b67651d79a23f2b6ad15ab490f00822f6ee324f1
[D] └── ad-2.0.1        → (remote) sha256:55e5271e6d8a73d745c3200ce4cb0298b4063e20dfd9f762fc506ca359805d51
[D] └── ad      → (remote) sha256:55e5271e6d8a73d745c3200ce4cb0298b4063e20dfd9f762fc506ca359805d51
[D] └── web-2.0.1       → (remote) sha256:ca9c34fb433797ee51199e75b0cebc051fde9b1fe837a03ca5b286478cc05250
[D] └── web     → (remote) sha256:ca9c34fb433797ee51199e75b0cebc051fde9b1fe837a03ca5b286478cc05250
[D] └── light-2.0.1     → (remote) sha256:9e7f1228f18ec1cc687d2e45fe6ca50013dc30a2f2b0ff4a9cd2bfcbb468dc5d
[D] └── light   → (remote) sha256:9e7f1228f18ec1cc687d2e45fe6ca50013dc30a2f2b0ff4a9cd2bfcbb468dc5d
[D] └── osint-2.0.1     → (remote) sha256:7ea562eb869ccc1b729e6468af151b0e4f3d1aeb739baf5d9f20207c5f8b104a
[D] Fetching information from: https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags?page=2
[D] └── osint   → (remote) sha256:7ea562eb869ccc1b729e6468af151b0e4f3d1aeb739baf5d9f20207c5f8b104a
[D] └── web-2.0.0       → (remote) sha256:f74fcc92b8e3f31f45e4141fb9eb7f9e85c29e61785eda85b2aa989c56d94571
[D] └── light-2.0.0     → (remote) sha256:18fc89446474dfd8ceb2951df41baa571447e4eb6ea7df1b127d8cd6caea222c
[D] └── osint-2.0.0     → (remote) sha256:e5e1832f98ce7cc69b9317bab5a9374e2a9d3c0489c36db6572c6ca4387d86b1
[D] └── full-2.0.0b5    → (remote) sha256:252afb0667c3d51670d53fdfb53550d71fc7a4d45c4f326b158ff346f0bb0b14
[D] └── ad-2.0.0b5      → (remote) sha256:42ac024f403e51dbd5d500afad3750b7666456fa22348740412071ec90481108
[D] └── web-2.0.0b5     → (remote) sha256:cc4966d12043bc6a8d98647ab185eef1d157b0bc9103d5ec2cebb3b6e91b98c1
[D] └── light-2.0.0b5   → (remote) sha256:b0409163fc61ac9e987843894c9ac53bf117bedce3f36f019115c668fc0c5123
[D] └── osint-2.0.0b5   → (remote) sha256:2f693307e10d40785ec0724ccc8b28ef7b7ca4ff6efd21c66da71d0af7d432cd
[D] Fetching local image tags, digests (and other attributes)

🛸 Available images
┌───────────────┬───────────┬───────────────┬──────────────┬──────────────────┬──────────────────────┐
│ Id            │ Image tag │ Download size │ Size on disk │ Build date (UTC) │ Status               │
├───────────────┼───────────┼───────────────┼──────────────┼──────────────────┼──────────────────────┤
│ d96aec80c03a  │ full      │ 13.4GB        │ 28.3GB       │ 30/04/2022 19:01 │ Up to date (v.2.0.1) │
│ a008c75c4ecf  │ light     │ 5.2GB         │ 11.7GB       │ 30/04/2022 19:01 │ Up to date (v.2.0.1) │
│ Not installed │ nightly   │ 12.5GB        │ N/A          │ N/A              │ Not installed        │
│ Not installed │ ad        │ 10.9GB        │ N/A          │ N/A              │ Not installed        │
│ Not installed │ web       │ 7.7GB         │ N/A          │ N/A              │ Not installed        │
│ Not installed │ osint     │ 4.0GB         │ N/A          │ N/A              │ Not installed        │
└───────────────┴───────────┴───────────────┴──────────────┴──────────────────┴──────────────────────┘

[*] You can use a name that does not already exist to build a new image from local sources
[?] Select an image by its name (full): full
[V] Config: Enabling display sharing
[V] Config: Enabling host timezones
[V] Config: Enabling shared resources volume
[D] Git submodule repository detected
[D] Loading git at /Users/seliatis/Exegol/exegol-resources
[D] Repo path: /Users/seliatis/Exegol/.git/modules/exegol-resources
[D] Git repository successfully loaded
[V] Config: Enabling exegol resources volume
[?] Enter the name of your new exegol container (default):

⭐ Container summary
┌──────────────────┬─────────────────────────────────────────────────────────────────┐
│             Name │ default                                                         │
│            Image │ full - v.2.0.1 (Up to date)                                     │
├──────────────────┼─────────────────────────────────────────────────────────────────┤
│              GUI │ On ✔                                                            │
│          Network │ host                                                            │
│         Timezone │ On ✔                                                            │
│ Exegol resources │ On ✔ (/opt/resources)                                           │
│     My resources │ On ✔ (/my-resources)                                            │
│              VPN │ N/A                                                             │
│       Privileged │ Off ✔                                                           │
│        Workspace │ Dedicated (/workspace)                                          │
│             Envs │ DISPLAY=/private/tmp/com.apple.launchd.VQaVfInVdo/org.xquartz:0 │
│                  │ QT_X11_NO_MITSHM=1                                              │
│          Volumes │ /tmp/.X11-unix ➡ /tmp/.X11-unix                                 │
│                  │ /etc/timezone ➡ /etc/timezone (RO)                              │
│                  │ /etc/localtime ➡ /etc/localtime (RO)                            │
│                  │ /Users/selimchiki/.exegol/my-resources ➡ /my-resources          │
│                  │ /Users/selimchiki/Exegol/exegol-resources ➡ /opt/resources      │
└──────────────────┴─────────────────────────────────────────────────────────────────┘

[?] Is the container configuration correct? [Y/n]: Y
[*] Command line of the configuration: exegol start default full
[*] To use exegol without interaction, read CLI options with exegol start -h
[*] Creating new exegol container
[D] default - full
Privileged: False
Capabilities: []
Sysctls: {}
X: True
TTY: True
Network host: host
Share timezone: True
Common resources: True
Env (2): {'DISPLAY': '/private/tmp/com.apple.launchd.VQaVfInVdo/org.xquartz:0', 'QT_X11_NO_MITSHM': '1'}
Shares (6): [{'Target': '/tmp/.X11-unix', 'Source': '/tmp/.X11-unix', 'Type': 'bind', 'ReadOnly': False}, {'Target':
'/etc/timezone', 'Source': '/etc/timezone', 'Type': 'bind', 'ReadOnly': True}, {'Target': '/etc/localtime', 'Source':
'/etc/localtime', 'Type': 'bind', 'ReadOnly': True}, {'Target': '/my-resources', 'Source':
'/Users/seliiatis/.exegol/my-resources', 'Type': 'bind', 'ReadOnly': False}, {'Target': '/opt/resources', 'Source':
'/Users/seliatis/Exegol/exegol-resources', 'Type': 'bind', 'ReadOnly': False}, {'Target': '/workspace', 'Source':
'/Users/seliatis/.exegol/workspaces/default', 'Type': 'bind', 'ReadOnly': False}]
Devices (0): []
VPN: N/A
[-] OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545:
container init caused: rootfs_linux.go:76: mounting "/host_mnt/private/etc/timezone" to rootfs at "/etc/timezone"
caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)?
Check if the specified host path exists and is the expected type
[D] 400 Client Error for
http+docker://localhost/v1.41/containers/3b075c596906711d3a21aa4ab981a63b0ed7e1a169aca500faf62082384f97e6/start: Bad
Request ("OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545:
container init caused: rootfs_linux.go:76: mounting "/host_mnt/private/etc/timezone" to rootfs at "/etc/timezone"
caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)?
Check if the specified host path exists and is the expected type")
[!] Error while creating exegol container. Exiting.

from exegol.

Dramelac avatar Dramelac commented on July 26, 2024

Hello, thank you for the feedback.
Indeed it is difficult for us to test exegol in a macOS environment without eh corresponding hardware.
Could you try again from the "dev" branch.
You can change branch with exegol update -v or git checkout dev.

from exegol.

selimchiki avatar selimchiki commented on July 26, 2024

Good evening, as I explained to Shutdown via private message, I tried with the command --disable-shared-timezones and now I have everything working.
Otherwise I updated as requested and re-run the command without using the -disable-shared-timezones flag and here is the log

[V] Configuring new exegol container
[D] Attribute not found in parameters: multiimagetag
[D] Fetching remote image tags, digests and sizes
[D] Fetching information from: https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags
[D] └── nightly → (remote) sha256:fbfa1aeec10286b310fde112920f8b811d24499b7c07b5c5ff3b08e3dc0f98d6
[D] └── full-2.0.1      → (remote) sha256:8ff1870bd0dc5c7d79772454b67651d79a23f2b6ad15ab490f00822f6ee324f1
[D] └── full    → (remote) sha256:8ff1870bd0dc5c7d79772454b67651d79a23f2b6ad15ab490f00822f6ee324f1
[D] └── ad-2.0.1        → (remote) sha256:55e5271e6d8a73d745c3200ce4cb0298b4063e20dfd9f762fc506ca359805d51
[D] └── ad      → (remote) sha256:55e5271e6d8a73d745c3200ce4cb0298b4063e20dfd9f762fc506ca359805d51
[D] └── web-2.0.1       → (remote) sha256:ca9c34fb433797ee51199e75b0cebc051fde9b1fe837a03ca5b286478cc05250
[D] └── web     → (remote) sha256:ca9c34fb433797ee51199e75b0cebc051fde9b1fe837a03ca5b286478cc05250
[D] └── light-2.0.1     → (remote) sha256:9e7f1228f18ec1cc687d2e45fe6ca50013dc30a2f2b0ff4a9cd2bfcbb468dc5d
[D] └── light   → (remote) sha256:9e7f1228f18ec1cc687d2e45fe6ca50013dc30a2f2b0ff4a9cd2bfcbb468dc5d
[D] └── osint-2.0.1     → (remote) sha256:7ea562eb869ccc1b729e6468af151b0e4f3d1aeb739baf5d9f20207c5f8b104a
[D] Fetching information from: https://hub.docker.com/v2/repositories/nwodtuhs/exegol/tags?page=2
[D] └── osint   → (remote) sha256:7ea562eb869ccc1b729e6468af151b0e4f3d1aeb739baf5d9f20207c5f8b104a
[D] └── web-2.0.0       → (remote) sha256:f74fcc92b8e3f31f45e4141fb9eb7f9e85c29e61785eda85b2aa989c56d94571
[D] └── light-2.0.0     → (remote) sha256:18fc89446474dfd8ceb2951df41baa571447e4eb6ea7df1b127d8cd6caea222c
[D] └── osint-2.0.0     → (remote) sha256:e5e1832f98ce7cc69b9317bab5a9374e2a9d3c0489c36db6572c6ca4387d86b1
[D] └── full-2.0.0b5    → (remote) sha256:252afb0667c3d51670d53fdfb53550d71fc7a4d45c4f326b158ff346f0bb0b14
[D] └── ad-2.0.0b5      → (remote) sha256:42ac024f403e51dbd5d500afad3750b7666456fa22348740412071ec90481108
[D] └── web-2.0.0b5     → (remote) sha256:cc4966d12043bc6a8d98647ab185eef1d157b0bc9103d5ec2cebb3b6e91b98c1
[D] └── light-2.0.0b5   → (remote) sha256:b0409163fc61ac9e987843894c9ac53bf117bedce3f36f019115c668fc0c5123
[D] └── osint-2.0.0b5   → (remote) sha256:2f693307e10d40785ec0724ccc8b28ef7b7ca4ff6efd21c66da71d0af7d432cd
[D] Fetching local image tags, digests (and other attributes)

🛸 Available images
┌───────────────┬───────────┬───────────────┬──────────────┬──────────────────┬──────────────────────┐
│ Id            │ Image tag │ Download size │ Size on disk │ Build date (UTC) │ Status               │
├───────────────┼───────────┼───────────────┼──────────────┼──────────────────┼──────────────────────┤
│ d96aec80c03a  │ full      │ 13.4GB        │ 28.3GB       │ 30/04/2022 19:01 │ Up to date (v.2.0.1) │
│ a008c75c4ecf  │ light     │ 5.2GB         │ 11.7GB       │ 30/04/2022 19:01 │ Up to date (v.2.0.1) │
│ Not installed │ nightly   │ 12.5GB        │ N/A          │ N/A              │ Not installed        │
│ Not installed │ ad        │ 10.9GB        │ N/A          │ N/A              │ Not installed        │
│ Not installed │ web       │ 7.7GB         │ N/A          │ N/A              │ Not installed        │
│ Not installed │ osint     │ 4.0GB         │ N/A          │ N/A              │ Not installed        │
└───────────────┴───────────┴───────────────┴──────────────┴──────────────────┴──────────────────────┘

[*] You can use a name that does not already exist to build a new image from local sources
[?] Select an image by its name (full):
[V] Config: Enabling display sharing
[V] Config: Enabling host timezones
[V] Config: Enabling shared resources volume
[D] Git submodule repository detected
[D] Loading git at /Users/selimchiki/Exegol/exegol-resources
[D] Repo path: /Users/selimchiki/Exegol/.git/modules/exegol-resources
[D] Git repository successfully loaded
[V] Config: Enabling exegol resources volume

⭐ Container summary
┌──────────────────┬─────────────────────────────────────────────────────────────────┐
│             Name │ test                                                            │
│            Image │ full - v.2.0.1 (Up to date)                                     │
├──────────────────┼─────────────────────────────────────────────────────────────────┤
│              GUI │ On ✔                                                            │
│          Network │ host                                                            │
│         Timezone │ On ✔                                                            │
│ Exegol resources │ On ✔ (/opt/resources)                                           │
│     My resources │ On ✔ (/my-resources)                                            │
│              VPN │ N/A                                                             │
│       Privileged │ Off ✔                                                           │
│        Workspace │ Dedicated (/workspace)                                          │
│             Envs │ DISPLAY=/private/tmp/com.apple.launchd.VQaVfInVdo/org.xquartz:0 │
│                  │ QT_X11_NO_MITSHM=1                                              │
│                  │ _JAVA_AWT_WM_NONREPARENTING=1                                   │
│          Volumes │ /tmp/.X11-unix ➡ /tmp/.X11-unix                                 │
│                  │ /etc/timezone ➡ /etc/timezone (RO)                              │
│                  │ /etc/localtime ➡ /etc/localtime (RO)                            │
│                  │ /Users/selimchiki/.exegol/my-resources ➡ /my-resources          │
│                  │ /Users/selimchiki/Exegol/exegol-resources ➡ /opt/resources      │
└──────────────────┴─────────────────────────────────────────────────────────────────┘

[?] Is the container configuration correct? [Y/n]:
[*] Command line of the configuration: exegol start test full
[*] To use exegol without interaction, read CLI options with exegol start -h
[*] Creating new exegol container
[D] test - full
Privileged: False
Capabilities: []
Sysctls: {}
X: True
TTY: True
Network host: host
Share timezone: True
Common resources: True
Env (3): {'DISPLAY': '/private/tmp/com.apple.launchd.VQaVfInVdo/org.xquartz:0', 'QT_X11_NO_MITSHM': '1',
'_JAVA_AWT_WM_NONREPARENTING': '1'}
Shares (6): [{'Target': '/tmp/.X11-unix', 'Source': '/tmp/.X11-unix', 'Type': 'bind', 'ReadOnly': False}, {'Target':
'/etc/timezone', 'Source': '/etc/timezone', 'Type': 'bind', 'ReadOnly': True}, {'Target': '/etc/localtime', 'Source':
'/etc/localtime', 'Type': 'bind', 'ReadOnly': True}, {'Target': '/my-resources', 'Source':
'/Users/selimchiki/.exegol/my-resources', 'Type': 'bind', 'ReadOnly': False}, {'Target': '/opt/resources', 'Source':
'/Users/selimchiki/Exegol/exegol-resources', 'Type': 'bind', 'ReadOnly': False}, {'Target': '/workspace', 'Source':
'/Users/selimchiki/.exegol/workspaces/test', 'Type': 'bind', 'ReadOnly': False}]
Devices (0): []
VPN: N/A
[-] failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused:
process_linux.go:545: container init caused: rootfs_linux.go:75: mounting "/host_mnt/private/etc/timezone" to rootfs at
"/etc/timezone" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file
(or vice-versa)? Check if the specified host path exists and is the expected type
[D] 400 Client Error for
http+docker://localhost/v1.41/containers/91850f8534346e103699bad510a37d1d4eed99ea0985edc3ccf9d92e8d2ab750/start: Bad
Request ("failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused:
process_linux.go:545: container init caused: rootfs_linux.go:75: mounting "/host_mnt/private/etc/timezone" to rootfs at
"/etc/timezone" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file
(or vice-versa)? Check if the specified host path exists and is the expected type")
[!] Error while creating exegol container. Exiting.

from exegol.

Dramelac avatar Dramelac commented on July 26, 2024

After investigation with @selimchiki (thank you for your help), the bug is indeed the same as #86 . So it is already corrected in the dev branch.
However, if exegol is executed with root / sudo rights or with docker desktop (apparently), a folder will be created in /etc/timezone (but invisible to ls) which is incompatible with the volume that exegol / docker wants to mount.

To correct the problem, just execute sudo rm -r /etc/timezone using the 4.0.1 release (or in the dev branch).

from exegol.

Related Issues (20)

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.