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

Container VM Connection #29

Open
segator opened this issue Jul 6, 2017 · 2 comments
Open

Container VM Connection #29

segator opened this issue Jul 6, 2017 · 2 comments
Labels

Comments

@segator
Copy link

segator commented Jul 6, 2017

I need the container have connection because I am trying to add the SMB feature of KVM to bypass docker volume to SMB Service inside the Guest VM, is a way to simulate the Docker volume inside the VM's

But It seems doesn't work because the container it's not visible from the VM Guest

@methadata
Copy link
Collaborator

One of the main premises in this project was to to attach the VM to the container network as transparently as possible. Hence, what you try to achieve goes just in the opposite direction. It's not wrong, it's just another way of using a container with kvm/qemu.

Said that, you could try to set ENABLE_DHCP='N' and then configure manually the IPs for the VM. This way you will be able to communicate between the container and the VM.

Also, you can play around with the flag AUTO_ATTACH='N' and the variable ATTACH_IFACES to specify which interfaces you want to attach from the container to the VM. Then, use one of the interfaces to communicate between them.

@segator
Copy link
Author

segator commented Jul 11, 2017

I agree with you but if you want to reproduce the same docker logic inside the VM I need to connect docker volume with the VM for this we need container and VM communication to share via SMB the docker volume inside the GUEST.

I finally solved the problem by not using docker IP container inside VM, VM have always 20.20.20.21 and a bridge is created with 20.20.20.20 exposing VM IP with dhcp and VM is able to see Docker volume's via windows shared folder at \20.20.20.20<volName> , also using port forwarding I am able to use docker port mapping so I can access whatever port I want inside THE VM, RDP, IIS.. and also I have VNC and noVNC(Outside the VM),
Only point I need to fix now is to passthru docker DNS(--link) to inside VM, so VM can access using alias to other containers or backward

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

No branches or pull requests

2 participants