From c11ff72486f4067202ec6bbff42f35b6caa7f21d Mon Sep 17 00:00:00 2001 From: Dramelac Date: Mon, 8 Jul 2024 21:37:01 +0200 Subject: [PATCH] Orbstack warning about device sharing Signed-off-by: Dramelac --- exegol/model/ContainerConfig.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/exegol/model/ContainerConfig.py b/exegol/model/ContainerConfig.py index 62ed4b06..f72bcf8e 100644 --- a/exegol/model/ContainerConfig.py +++ b/exegol/model/ContainerConfig.py @@ -1280,9 +1280,13 @@ def addRawVolume(self, volume_string): def addUserDevice(self, user_device_config: str): """Add a device from a user parameters""" - if EnvInfo.isDockerDesktop() and user_device_config not in self.__whitelist_dd_devices: - logger.warning("Docker desktop (Windows & macOS) does not support USB device passthrough.") - logger.verbose("Official doc: https://docs.docker.com/desktop/faqs/#can-i-pass-through-a-usb-device-to-a-container") + if (EnvInfo.isDockerDesktop() or EnvInfo.isOrbstack()) and user_device_config not in self.__whitelist_dd_devices: + if EnvInfo.isDockerDesktop(): + logger.warning("Docker desktop (Windows & macOS) does not support USB device passthrough.") + logger.verbose("Official doc: https://docs.docker.com/desktop/faqs/#can-i-pass-through-a-usb-device-to-a-container") + elif EnvInfo.isOrbstack(): + logger.warning("Orbstack does not support (yet) USB device passthrough.") + logger.verbose("Official doc: https://docs.orbstack.dev/machines/#usb-devices") logger.critical("Device configuration cannot be applied, aborting operation.") self.__addDevice(user_device_config)