We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

KVM not able to connect to internet


phillwuk
2017-01-12, 12:54 PM
Also, as a note to myself and others... The bridge 'bridge0' was not created, even though virt-manager is trying to use it.
Use the command
virsh iface-bridge eth0 bridge0
to add this to centOS v6 (in my case ... and check it's there if you ever get bitten with the
https://access.redhat.com/documentat...ge_Device.html
bug which also manifested itself when editing the xml file and starting up the modified VM,,,,

phillwuk
2015-12-11, 01:31 PM
Thanks, that works. Puzzled as to why it suddenly stopped working after a couple of years of working perfectly. There's nothing like progress...... And that was nothing like progress!

HTMLtag
2015-12-05, 02:34 PM
I agree with WebHostingNeeds.
You need to change the interface to Bridge.
The source bridge should be whatever you named your bridge. It may not be called bridge0.

WebHostingNeeds
2015-12-05, 01:28 AM
Look like problem is with

Code:
    
      
      
      
      
      
      
You need to edit it, you can do this with virsh edit command.

Stop VM before edit (not really sure if you need to do it).

Find

Code:
    
Replace with

Code:
    
Find

Code:
      
Replace it with

Code:
      
Restart VM.

phillwuk
2015-12-05, 01:16 AM
Dear phillwuk,

WebHostingNeeds has just replied to a thread you have subscribed to entitled - KVM not able to connect to internet - in the Dedicated Servers forum of OVH Forum.

This thread is located at:
https://forum.ovh.us/showthread.php/...t?goto=newpost

Here is the message that has just been posted:
***************
That config looks good. Do you have virsh installed ? If yes, post result of


Code:
---------
virsh dumpxml VM_NAME
---------

***************

No idea where your reply went..... But

http://phillw.net/dumpxml.txt

Has the xml dump.

Regards,

Phill.

WebHostingNeeds
2015-12-05, 12:57 AM
That config looks good. Do you have virsh installed ? If yes, post result of

Code:
virsh dumpxml VM_NAME

phillwuk
2015-12-04, 01:49 PM
Quote Originally Posted by WebHostingNeeds
Run

Code:
route -n
On both VPS and Main Server. Config looks good. Yesterday i had same issue, but after i spend lot of time debugging, i found i made a mistake i typing GW ip addr.
Main Server...

Code:
[root@ks389199 phillw.net]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
176.31.100.0    0.0.0.0         255.255.255.0   U     0      0        0 bridge0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
0.0.0.0         176.31.100.254  0.0.0.0         UG    0      0        0 bridge0
Which is fine, as the other 5 VM's are happily chatting to the rest of the world

[IMG]phillw.net:/route-n.png[/IMG]

Regards,

Phill.



VM

WebHostingNeeds
2015-12-04, 02:55 AM
Run

Code:
route -n
On both VPS and Main Server. Config looks good. Yesterday i had same issue, but after i spend lot of time debugging, i found i made a mistake i typing GW ip addr.

phillwuk
2015-12-03, 06:06 PM
Quote Originally Posted by WebHostingNeeds
HWAddr is same as you set in virt-MAC. ?

Can you ping to IP, for example
The vMAC is the same and no it cannot ping out, nor can it be pinged to.

Phill.

WebHostingNeeds
2015-11-28, 02:18 AM
HWAddr is same as you set in virt-MAC. ?

Can you ping to IP, for example

ping 8.8.8.8

phillwuk
2015-11-27, 08:04 PM
Hi,

server is ks389199 I've re-installed a Ubuntu 14.04.3 server onto it and followed http://help.ovh.co.uk/bridgeclient as usual.

As the 1st question asked is for the output of a couple of commands, I include them below.

VM name is Kris, which corresponds to what the control panel states for name, IPv4 and virt-MAC.

[IMG]phillw.net/network1.png[/IMG]
[IMG]phillw.net/network2.png[/IMG]

Regards,

Phill.