Installed Scientific Linux 6.2 on a VM using KVM - no network access
2 Attachment(s)
I am running Centos 5.8 and I wanted to see how KVM and Scientific Linux 6.2 work, so I installed the SL as a VM using KVM.
The installation worked fine, I can boot the vm, but I cannot access anything from within the vm. I created a virtual network, and at configuration I chose "NAT to eth0", which is the physical network card on the host. Here's some output from the host: Code:
[root@new-screamer ~]# ifconfig It seems to me that the host is alright, but the vm cannot access anything. Here is a screenshot of the vm trying to ping the DNS used by the host:http://www.linuxquestions.org/questi...1&d=1348434824 I tried to reconfigure the network interface on the vm, using system-config-network. The ifcfg-virbr0 file looks like this: http://www.linuxquestions.org/questi...1&d=1348435481 I used the same default gateway IP 192.168.1.254 of the DSL modem which the host uses. I am not an expert, but I feel that the virbr0 at 192.168.122.1 on the host is not connected to the virbr0 at 192.168.122.1 on the vm. Any help will be appreciated. Thank you |
This might be kind of obvious, but do you have ip forward enable?
|
Yes, ip_forward is enabled in both the host and the vm.
|
Have you tried to disable all iptables rules to test and then start enabling them?
|
I stopped the iptables on both the host and vm with the command /etc/init.d/iptables stop. That also flushed the firewall rules.
The LAN of the host and DSL modem is 192.168.1.0, the virtual network on which virbr0 resides is 192.168.122.0. I added a route in the vm to the network 192.168.1.0 through the device virbr0, and when I tried to ping the DSL modem (at 192.168.1.254) I get destination host unreachable. |
Quote:
I had to disable SELinux and the firewall as well (I use firewalling on the host instead). |
All times are GMT -5. The time now is 03:44 PM. |