Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Docker #365

Open
Syzeyna55 opened this issue Oct 11, 2021 · 9 comments
Open

Issue with Docker #365

Syzeyna55 opened this issue Oct 11, 2021 · 9 comments

Comments

@Syzeyna55
Copy link

Current Behavior

I used to run Docker but it’s impossible to run it at the same time as Virtualbox.
To run Docker, I have to check in my windows settings the Virtual Machine Platform (see below image), restart my machine and then it’s works.
image

To run virtualbox, i have to uncheck Virtual Machine Platform and restart the machine. If i don’t uncheck this parameter, i will have this message:
image

Now i can’t run docker, when i try i have this following message:
image

Expected Behavior

Both should run at the same time without an error

Possible Solution

It try some solutions from the these websites, but i haven’t able to solve the problem
https://www.tcg.com/blog/yes-you-can-run-docker-and-virtualbox-on-windows-10-home/
https://fredrikaverpil.github.io/2018/03/15/switching-between-docker-and-virtualbox-on-windows-10/

Steps to Reproduce

Try to run Docker in Windows 10

Detailed Description

Maybe the problem come from window 10. It works or not depending on the machine

@fxi
Copy link
Collaborator

fxi commented Oct 11, 2021

Hi, thanks for your report.

Are you using windows 10 pro ? It looks like a Windows issue. @carlosrochoa, I remember you managed to run both vbox and docker on your machine or server. Can we have your input on this ? Thanks :)

There is also a version of AccessMod built with docker, running inside VirtualBox. Here is a link to the pre-release 5.7.16-alpha ( version non-upgradable yet, but import / export of projects should work ). Performance comparison of different versions / config : #360

@carlosrochoa
Copy link
Collaborator

I have the same Windows 10Pro machine as @Syzeyna55 (Lenovo ThinkPad X1), and in my case both versions work simultaneously without problem.
I suppose the problem might be in the BIOS settings? Virtualization? I could take a look at how they are, because I have not done any modifications there in several years.

@Syzeyna55
Copy link
Author

Syzeyna55 commented Oct 11, 2021 via email

@Syzeyna55
Copy link
Author

Syzeyna55 commented Oct 19, 2021 via email

@fxi
Copy link
Collaborator

fxi commented Oct 19, 2021

I'm not sure to understand.

You have the exact same settings ( bios > virtualisation, etc..) and different outcome ?

@Syzeyna55
Copy link
Author

Yes we have the same settings (bios > virtualisation, etc..) but i still have my issue with Docker.

@fxi
Copy link
Collaborator

fxi commented Nov 1, 2021

If together you did not find a solution to this issue, it's very unlikely that on the field, offline, on older machines, this solution will be frictionless.

However, this article says that's possible (on Home edition). @carlosrochoa @Syzeyna55, have you tried this ?

@nicolasray, in my current understanding:

  • Windows can't run VirtualBox and Docker at the same time, because of unclear virtualisation settings and undefined issue. I'm relying on @carlosrochoa and @Syzeyna55 finding. I can take time to investigate myself if required.

  • Direct Docker ( non-launcher ) version works fine on all platforms. Requires creating containers and volumes manually or with a docker-compose file. Command line is required but doesn't seem to be an option in our case.

  • Launcher ( and installer ) for Window and launcher has received very few feedback : there is still a lot of unknown. I require help on this, because I'm unfamiliar with Windows. However, if VirtualBox compatibility is not required, it seems to be the best solution.

  • Hybrid VirtualBox-docker version of AccessMod works now on Windows and Mac, but newer ARM-based M1 chips do break this. Nested virtualisation is not very efficient. All new Apple machines are ARM-based. VirtualBox will probably never work on them, and if it does, it will be limited to ARM compiled OS. Docker can run ARM-based images. UTM can run anything on mac (and iPad/iPhone too). Both use Qemu. VMvare fusion seems to have ported Fusion recently.

So, during the past year, a lot of things happened that add some friction to the docker-fits-all solution.

-> We have to decide which platform, OS type, version and settings we will support, and if we support docker and VirtualBox at the same time.

@Syzeyna55
Copy link
Author

In this article the proposed solutions are:

  1. Go to Virtualbox Settings > Acceleration > select Hyper-V
  2. In the Motherboard tab disable APC I/O
  3. Add an obscure parameter to the .vbox file associated to your VM image:
    VBoxManage setextradata "" "VBoxInternal/NEM/UseRing0Runloop" 0
    I did steps 1 and 2. For step 3 I didn't find the .vbox file and i read in a forum that it's not advised to do step 3 because we don't know the impacts.
    With Carlos we were able to extract all the information in our machines (Window>type command>in the command prompt>systeminfo) and compare them (see below). The two things that in our opinion show a difference are:
    (1) the fact that I was using Kaspersky anti-virus while Carlos uses Window Security. I uninstalled Kaspersky but Docker doesn't work again;
    (2) in Network (Card) Virtualbox is mentioned while I don't have it on my computer
    For information, I also updated virtualbox and I have the version 6.1.30

See below my system info :

Host Name: LAPTOP-GGL5GHII
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19044 N/A Build 19044
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Windows User
Registered Organization:
Product ID: 00330-51179-97509-AAOEM
Original Install Date: 31/10/2020, 10:28:08
System Boot Time: 03/12/2021, 16:13:10
System Manufacturer: LENOVO
System Model: 20KH006MMZ
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 142 Stepping 10 GenuineIntel ~1792 Mhz
BIOS Version: LENOVO N23ET78W (1.53 ), 09/08/2021
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume2
System Locale: en-us;English (United States)
Input Locale: en-gb;English (United Kingdom)
Time Zone: (UTC+01:00) Brussels, Copenhagen, Madrid, Paris
Total Physical Memory: 16.239 MB
Available Physical Memory: 10.465 MB
Virtual Memory: Max Size: 22.639 MB
Virtual Memory: Available: 16.769 MB
Virtual Memory: In Use: 5.870 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \LAPTOP-GGL5GHII
Hotfix(s): 14 Hotfix(s) Installed.
[01]: KB4601554
[02]: KB4562830
[03]: KB4577266
[04]: KB4577586
[05]: KB4580325
[06]: KB4586864
[07]: KB4589212
[08]: KB4593175
[09]: KB4598481
[10]: KB5000736
[11]: KB5003791
[12]: KB5007186
[13]: KB5006753
[14]: KB5005699
Network Card(s): 6 NIC(s) Installed.
[01]: Kaspersky Security Data Escort Adapter
Connection Name: Ethernet 5
Status: Hardware not present
[02]: Fortinet Virtual Ethernet Adapter (NDIS 6.30)
Connection Name: Ethernet 6
Status: Media disconnected
[03]: Intel(R) Ethernet Connection (4) I219-V
Connection Name: Ethernet
Status: Media disconnected
[04]: Intel(R) Dual Band Wireless-AC 8265
Connection Name: Wi-Fi
DHCP Enabled: Yes
DHCP Server: 192.168.8.1
IP address(es)
[01]: 192.168.8.179
[02]: fe80::3162:65c2:c7b:c6cc
[03]: fd00:bb1c:bb8f:dc00:e8e8:b0d0:d764:95a9
[04]: fd00:bb1c:bb8f:dc00:3162:65c2:c7b:c6cc
[05]: Bluetooth Device (Personal Area Network)
Connection Name: Bluetooth Network Connection
Status: Media disconnected
[06]: Generic Mobile Broadband Adapter
Connection Name: Cellular
Status: Media disconnected
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

See below Carlo's system info

Host Name: LE-NOVO-PC
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19043 N/A Build 19043
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Windows User
Registered Organization:
Product ID: 00330-50205-43116-AAOEM
Original Install Date: 2020-08-15, 09:59:17
System Boot Time: 2021-11-29, 09:22:06
System Manufacturer: LENOVO
System Model: 20KGS0X600
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 142 Stepping 10 GenuineIntel ~1910 Mhz
BIOS Version: LENOVO N23ET78W (1.53 ), 2021-08-09
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: de-ch;German (Switzerland)
Time Zone: (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Total Physical Memory: 16,223 MB
Available Physical Memory: 8,102 MB
Virtual Memory: Max Size: 22,367 MB
Virtual Memory: Available: 12,212 MB
Virtual Memory: In Use: 10,155 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \LE-NOVO-PC
Hotfix(s): 16 Hotfix(s) Installed.
[01]: KB5007289
[02]: KB4559309
[03]: KB4561600
[04]: KB4562830
[05]: KB4570334
[06]: KB4577266
[07]: KB4577586
[08]: KB4580325
[09]: KB4586864
[10]: KB4589212
[11]: KB4593175
[12]: KB4598481
[13]: KB5000736
[14]: KB5007186
[15]: KB5006753
[16]: KB5005699
Network Card(s): 8 NIC(s) Installed.
[01]: VirtualBox Host-Only Ethernet Adapter
Connection Name: Ethernet 5
DHCP Enabled: No
IP address(es)
[01]: 192.168.56.1
[02]: fe80::c925:f3c6:1105:4ba0
[02]: VirtualBox Host-Only Ethernet Adapter
Connection Name: Ethernet 6
DHCP Enabled: No
IP address(es)
[01]: 169.254.11.49
[02]: fe80::54f0:dece:91cc:b31
[03]: Fortinet Virtual Ethernet Adapter (NDIS 6.30)
Connection Name: Ethernet 3
Status: Media disconnected
[04]: Fortinet SSL VPN Virtual Ethernet Adapter
Connection Name: Ethernet 7
Status: Media disconnected
[05]: Intel(R) Ethernet Connection (4) I219-LM
Connection Name: Ethernet
Status: Media disconnected
[06]: Intel(R) Dual Band Wireless-AC 8265
Connection Name: Wi-Fi
DHCP Enabled: Yes
DHCP Server: 192.168.0.1
IP address(es)
[01]: 192.168.0.172
[02]: fe80::1c59:bfc7:8962:c314
[07]: Bluetooth Device (Personal Area Network)
Connection Name: Bluetooth Network Connection
Status: Media disconnected
[08]: TAP-ProtonVPN Windows Adapter V9
Connection Name: Local Area Connection 2
Status: Media disconnected
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

@fxi
Copy link
Collaborator

fxi commented Dec 6, 2021

Thank you.

  • Have you tried restarting your computer after uninstalling Kaspersky? It seems that some sort of network adapter is still present in the configuration you provided
  • Have you tried updating your system / docker / virtualbox? There are some differences in the hotfixes (maybe a different base system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants