Bug 371571

Summary: No Internet-connection in F8 kvm installation
Product: [Fedora] Fedora Reporter: Espen Stefansen <libbe>
Component: virt-managerAssignee: Daniel Berrangé <berrange>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: berrange, hbrock, jhutar, peter, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-07 00:36:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Espen Stefansen 2007-11-08 18:09:28 UTC
Description of problem:
On my F8 laptop i installed F8 in kvm, but i can't get connected to Internet. I 
get an IP-adress from the virtual network. If i ping an URL, looks up the 
correct ip-adress but doesn't return anything else.

Version-Release number of selected component (if applicable):
libvirt-0.3.3-2.fc8
libvirt-python-0.3.3-2.fc8
python-virtinst-0.300.1-3.fc8
virt-manager-0.5.2-2.fc8
virt-viewer-0.0.2-2.fc8
kvm-36-7.fc8

How reproducible:
Every time

Steps to Reproduce:
1. Boot up virtual machine
2.
3.
  
Actual results:
No Internet

Expected results:
Should ba able to connect to Internet

Additional info:

Comment 1 Jan Hutař 2007-11-20 10:15:29 UTC
To get Internet working on a guest, I usually need this on a host:

# echo 1 > /proc/sys/net/ipv4/ip_forward
# /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

(where eth0 is my connection to the Internet)

Comment 2 Peter Gordon 2007-12-21 21:45:39 UTC
(In reply to comment #1)
> To get Internet working on a guest, I usually need this on a host:
> 
> # echo 1 > /proc/sys/net/ipv4/ip_forward
> # /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> 

That fixed it nicely for me (using a Win XP SP2 virtual machine). Can we get
this  added to the default initscript or similar?


Comment 3 Peter Gordon 2008-05-07 00:36:22 UTC
This appears to be the same issue as reported in #240922, so I'm closing this as
a duplicate of that one. Please feel free to re-open this bug with further
details should the issue persist differently. Thanks.

*** This bug has been marked as a duplicate of 240922 ***