LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
LQ Newbie
 
Registered: Sep 2004
Posts: 24

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
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,825

Rep: Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435
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
LQ Newbie
 
Registered: Sep 2004
Posts: 24

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
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,825

Rep: Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435Reputation: 1435
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,149

Rep: Reputation: 85
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration