Hi all, I created one guest on Ubuntu 10.10: ============================= sudo virt-install --connect qemu:///system -n ubuntu-10.10-guest -r 1024 --vcpus=1 -c /tmp/ubuntu-10.10-desktop-i386.iso --os-type=linux --disk=/var/lib/libvirt/images/ubuntu-10.10-guest.img,size=10 --vnc --accelerate
After the installation done, I can see the virtual network adapters on host: ============================= virbr0 Link encap:Ethernet HWaddr fe:54:00:43:f2:f2 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 inet6 addr: fe80::9cfc:d9ff:fe82:f273/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:61 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:10802 (10.8 KB) ... vnet0 Link encap:Ethernet HWaddr fe:54:00:43:f2:f2 inet6 addr: fe80::fc54:ff:fe43:f2f2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:100 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:0 (0.0 B) TX bytes:9325 (9.3 KB) sudo iptables -t nat -L ================================= Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE tcp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535 MASQUERADE udp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535 MASQUERADE all -- 192.168.122.0/24 !192.168.122.0/24 But on guest, I can only see the lo network. Does anyone know how to configure KVM with NAT? thanks,