Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General 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.
I have setup a VM using virt-manager. I want to be able to access this VM from anywhere in the network and even, with the right router setup, from the outside. Rigt now the guest has the following setup:
I can SSH into that guest from other computers on the network, but I can't SSH from the host.
On the screen it says: "In most configurations, macvtap does not work for host to guest network communication."
OK, so that explains why I'm having an issue, but how can I fix it and still do what I want to do?
Host: Fedora 23
Guest: CentOS 7
edited to add: I googled this a bunch but a lot of how bridging worked or didn't work has changed in the last year and I can't make heads or tails of what I found online.
After consulting with someone it appears that there are potentially two ways to do this:
1) Leave it how it is and set up an isolated network that gives the Guest ANOTHER IP address and that's the one I use to access it with the Host. Not idea, but could be trivial if I setup the /etc/hosts file to give it an alias that's easy to remember
2) Setup a Routed Mode vibr# in libvirt and I shouldn't be using macvtap and I should be able to access the guest from the host. Disadvantage here is that it creates a new subnet with all the complications that come from that when it comes to the way most consumer hardware expects broadcasting to work for DLNA, printer sharing, etc.
In the end, it seems that #1 is probably the easiest method as it allows all machines but the host to easily access it and, in most cases, the host doesn't really need to access its guests. I most of the time I only want the host to talk to the guest so I can ssh to to more easily copy commands.
Anyway, I'd welcome any thoughts or suggestions relating to my two possible solutions.
I use a bridge made on the host instead of the macvtap. (Device br0) The Arch wiki under qemu networking has a pretty straightforward tutorial that I used under Slackware and now Arch: should work for fedora too. See https://wiki.archlinux.org/index.php...What_is_VDE.3F
I use a bridge made on the host instead of the macvtap. (Device br0) The Arch wiki under qemu networking has a pretty straightforward tutorial that I used under Slackware and now Arch: should work for fedora too. See https://wiki.archlinux.org/index.php...What_is_VDE.3F
In the past that broke Network Manager and other things on Fedora. I'll have to investigate if this is still the case.
I also have a bridge on the host on a centos7 server hosting some kvm vm's. I disabled NetworkManager, used brctl to create a bridge br0, edited network scripts, and in virt-manager added the bridge to a vm. Worked fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.