Can't access Apache HTTP Server from VM while network setup method is NetworkManager service
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't access Apache HTTP Server from VM while network setup method is NetworkManager service
Firefox shows "unable to connect"... But can access the server fine when the network setup method is Wicked service.
Apache HTTP Server is on the host device.
I am using OpenSUSE Leap 42.2 on a Dell Inspiron 1545. I am using Lubuntu 14.04 LTS on QEMU/KVM.
I am using a virtual network vnet1. I bridged Ethernet and Wi-Fi to virbr0.
On QEMU/KVM, the "virtual network" device model is set to VirtIO.
On the virtual network, IPv4 is NAT, and IPv6 is routed.
What could be going on?
Is httpd running? You'll get "unable to connect" if it's not up even if the network connection is working.
If so, and it's really a networking problem, you'll need to provide more information, I'd think.
To begin with, what are the results of ifconfig when the network setup method is Wicked service compared to the results when the setup method is NetworkManager.
Is httpd running? You'll get "unable to connect" if it's not up even if the network connection is working.
If so, and it's really a networking problem, you'll need to provide more information, I'd think.
To begin with, what are the results of ifconfig when the network setup method is Wicked service compared to the results when the setup method is NetworkManager.
NetworkManager:
Code:
ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether f2:e2:97:e2:d6:2f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.15/24 brd 192.168.0.255 scope global dynamic eth0
valid_lft 604532sec preferred_lft 604532sec
inet6 fe80::f0e2:97ff:fee2:d62f/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 70:1a:04:c5:64:90 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.16/24 brd 192.168.0.255 scope global dynamic wlan0
valid_lft 604632sec preferred_lft 604632sec
inet6 fe80::721a:4ff:fec5:6490/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 52:54:00:6d:d1:1c brd ff:ff:ff:ff:ff:ff
inet 192.168.100.1/24 brd 192.168.100.255 scope global virbr0
valid_lft forever preferred_lft forever
inet6 fc00::1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fe6d:d11c/64 scope link
valid_lft forever preferred_lft forever
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:6d:d1:1c brd ff:ff:ff:ff:ff:ff
7: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master virbr0 state UNKNOWN group default qlen 1000
link/ether fe:54:00:a8:46:ee brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fea8:46ee/64 scope link
valid_lft forever preferred_lft forever
8: macvtap0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 500
link/ether 52:54:00:4c:98:cb brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe4c:98cb/64 scope link
valid_lft forever preferred_lft forever
9: macvtap1@wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 500
link/ether 52:54:00:16:0c:77 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe16:c77/64 scope link
valid_lft forever preferred_lft forever
Wicked:
Code:
ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether f2:e2:97:e2:d6:2f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.15/24 brd 192.168.0.255 scope global dynamic eth0
valid_lft 602927sec preferred_lft 602927sec
inet6 fe80::f0e2:97ff:fee2:d62f/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 70:1a:04:c5:64:90 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.16/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::721a:4ff:fec5:6490/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 52:54:00:6d:d1:1c brd ff:ff:ff:ff:ff:ff
inet 192.168.100.1/24 brd 192.168.100.255 scope global virbr0
valid_lft forever preferred_lft forever
inet6 fc00::1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::5054:ff:fe6d:d11c/64 scope link
valid_lft forever preferred_lft forever
6: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:6d:d1:1c brd ff:ff:ff:ff:ff:ff
7: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master virbr0 state UNKNOWN group default qlen 1000
link/ether fe:54:00:a8:46:ee brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc54:ff:fea8:46ee/64 scope link
valid_lft forever preferred_lft forever
8: macvtap0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 500
link/ether 52:54:00:4c:98:cb brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe4c:98cb/64 scope link
valid_lft forever preferred_lft forever
9: macvtap1@wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 500
link/ether 52:54:00:16:0c:77 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5054:ff:fe16:c77/64 scope link
valid_lft forever preferred_lft forever
10: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1492 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 02:ba:be:7c:41:1f brd ff:ff:ff:ff:ff:ff
Last edited by ComputerCritic; 05-23-2017 at 09:21 PM.
Is httpd running? You'll get "unable to connect" if it's not up even if the network connection is working.
If so, and it's really a networking problem, you'll need to provide more information, I'd think.
To begin with, what are the results of ifconfig when the network setup method is Wicked service compared to the results when the setup method is NetworkManager.
I think the case may be that the VM was requesting network address from the virtual network. It kept disconnecting.
I don't know what else could be going on.
Is httpd running? You'll get "unable to connect" if it's not up even if the network connection is working.
If so, and it's really a networking problem, you'll need to provide more information, I'd think.
To begin with, what are the results of ifconfig when the network setup method is Wicked service compared to the results when the setup method is NetworkManager.
Oh, I could access Apache by typing the IP address of the virtual network's gateway(the IP address assigned to the host for virbr0). But not by the IP address for wlan0 or eth0.
I apologize. I know nothing about VM configuration...I missed that in the original post...and the subject.
That said, I note:
Quote:
Originally Posted by ComputerCritic
Apache HTTP Server is on the host device
and
Quote:
Originally Posted by ComputerCritic
Oh, I could access Apache by typing the IP address of the virtual network's gateway(the IP address assigned to the host for virbr0). But not by the IP address for wlan0 or eth0.
If Apache is on the host device (the container?? Is that right??), *should* you be able to access it from them?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.