LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 05-22-2020, 11:42 AM   #1
huyuhui
Member
 
Registered: Sep 2004
Posts: 31

Rep: Reputation: 0
Access Jenkins docker inside VM from host machine


VM software: VMware Player 14
Network: NAT (shared host IP)
Host machine: Win10, hostname is leap1
Guest machine: OpenSUSE 15.1, hostname is leap1 (same with host machine's)

Jenkins docker is configured in guest and is up. The link https://leap1:8083/is accessible in the guest.

My question is, how can I access https://leap1:8083/ in host machine (the win10)?
 
Old 05-23-2020, 04:15 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Do you mean how you can access it FROM the host machine?
Either connect the guest to a bridge instead of a NAT network (and give it a different hostname than the VM host), or use port forwarding in the hypervisor. I only know VirtualBox and KVM, but I am sure Vmware can do either.
 
Old 05-23-2020, 09:08 PM   #3
huyuhui
Member
 
Registered: Sep 2004
Posts: 31

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by berndbausch View Post
Do you mean how you can access it FROM the host machine?
Either connect the guest to a bridge instead of a NAT network (and give it a different hostname than the VM host), or use port forwarding in the hypervisor. I only know VirtualBox and KVM, but I am sure Vmware can do either.
Yes, what I mean to say is to access it from the host machine.
I can not configure the port forwarding in the hypervisor because it's VMWare Player. Keeping NAT network, is it possible to do something inside VM guest system to achieve that?
Thanks in advance.
 
Old 05-23-2020, 10:23 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
If you have to use NAT, you need to tell your host system how to reach your guest. On VirtualBox, you can use port forwarding. KVM sets up port forwarding by default.
If VMware Player doesn't have this feature, I am afraid you are out of luck.
 
Old 05-25-2020, 12:42 PM   #5
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
On VirtualBox you can also add a bridge besides the NAT network through which you could access the VM and assign an IP from a separate subnet.

Here
https://geek-university.com/vmware-p...ed-networking/ (I'm not really sure if it applies to your version, but maybe you get the gist of it).

Last edited by vincix; 05-25-2020 at 12:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jenkins in docker ssh issue grzeslaw Linux - Server 1 08-30-2019 02:09 AM
[SOLVED] Jenkins + Docker issue DennyY Linux - Newbie 10 06-06-2019 10:47 AM
LXer: Jenkins All-In With Docker Containers to Enhance DevOps Workflow LXer Syndicated Linux News 0 06-20-2015 11:14 AM
Where did the Jenkins in Jenkins CI come from? vmccord General 2 10-13-2014 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 12:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration