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've got part way into installing a kvm guest on my desktop at home, but can't get the networking going.
(this is for self education at home).
/rant - I did this a while ago, but can't find my notes... grrr /rant
brctl show
bridge name bridge id STP enabled interfaces
br0 /sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
/sys/class/net/br0/bridge: No such file or directory
8000.0002a542d0cc no eth1
vnet0
virbr0 /sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
/sys/class/net/virbr0/bridge: No such file or directory
8000.525400ac1b6c yes virbr0-nic
SSH from host to guest
Code:
ssh 192.168.122.2
ssh: connect to host 192.168.122.2 port 22: No route to host
Guest to host
Code:
ssh 192.168.1.100
ssh: connect to host 192.168.1.100 port 22: Network is unreachable
Host IPtables
Code:
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -i br0 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Guest
Code:
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Thanks for any help
Last edited by chrism01; 05-25-2015 at 05:09 AM.
Reason: remove rubish ;)
your setup looks like you want to use bridging but your guest network setup is for NAT'ing.
How does your guest definition look like (network section)?
What happened was that I got into a bit of a tangle trying to set it up and at one point cut myself off from the internet entirely
So, I reduced all the settings files to (effectively) start over.
I'm planning to actually set the IPs to static as well.
I've posted all the Guest network settings in the original post.
Let me know specifically what you want to see if its not already there.
(It'll have to wait till I get home tonight)
I've posted all the Guest network settings in the original post.
I'm sorry but you didn't. You posted the guest OS network settings but I was after the guest virtual machine network definition.
I guess you aren't using plain KVM but possibly something like libvirtd? In this case you'll have an XML VM definition file, in case of libvirtd somewhere in /etc/libvirt/qemu (not exactly sure, can't look it up at the moment). This includes the network "hardware" definition for the VM.
if you are bridging without DHCP on the network you should give the VM an IP from the host's network range (e.g. 192.168.1.200). The VM will show up on the network as a separate PC, depending on some parameters even with it's own MAC.
You current guest internal network setup uses the IP range of the virbr0, which should be used for NAT'ing, not bridging.
ok; I'll look into that when I get some time. Unfortunately things are a bit busy atm and this is just for my own interest, although it will be useful later.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.