Re: Setting up an HTTP server on a KVM/QEMU guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2018-09-07 at 20:16 +0800, Ed Greshko wrote:
> On 09/07/18 06:06, Patrick O'Callaghan wrote:
> > On Thu, 2018-09-06 at 10:54 -0700, Rick Stevens wrote:
> > > On 09/06/2018 10:22 AM, Tom Horsley wrote:
> > > > On Thu, 06 Sep 2018 17:17:21 +0100
> > > > Patrick O'Callaghan wrote:
> > > > 
> > > > > A gentle hint would be welcome.
> > > > 
> > > > Unless you are using an honest to gosh bridge, the network
> > > > on the VMs is not accessible to the host (at least that's
> > > > what I've read). Using Mactavish networking (or whatever
> > > > the heck it is called) don't work for host access.
> > > 
> > > No, the 192.168.122.0/24 should be available from the host machine.
> > > You DO have to hit the VM's 192.168.122.* address from the host.
> > > If you want the VM to be available from the outside world, then
> > > yeah, you need a full-up bridge and not a NAT.
> > 
> > When in doubt, simplify. I set up a basic web server by doing:
> > 
> > $ python -m SimpleHTTPServer
> > 
> > (which listens on 0.0.0.0:8000), opened the port in the firewall and
> > tried to browse from the host. Same result. So it's not a bug in
> > qbittorrent-nox.
> 
> Works fine for me....
> 
> [egreshko@f28efi ~]$ python -m SimpleHTTPServer &
> [1] 5056
> [egreshko@f28efi ~]$ Serving HTTP on 0.0.0.0 port 8000 ...
> 
> [egreshko@f28efi ~]$ telnet localhost 8000
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> ^]
> telnet> close
> Connection closed.
> 
> Wonder why the author didn't also bind to IPv6.   :-)

It works locally, but that wasn't the test. I wanted to try an HTTP
session from the host to the guest so as to remove qbt as a factor.

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux