Having installed F8 and tried out the latest virt-manager, I have to say I''m impressed. But........I am still utterly baffled by guest networking. What I *want* to do is have a Windows XP guest that runs on the same network as my laptop, the host; in other words, the guest should be able to access all the network that the laptop can see. But I can''t for the life of me find out how to do this. I''ll put up,if I have to, with the guest only working through the eth0 interface (though it would be nicer if it could work via wireless too). But I can''t find any documentation that discusses this that isn''t either at least a year old, or is written for someone who already knows the answer and understands the jargon of virtual networking. Can anyone help, or at least point me to a reasonably clear how-to ? Note that I am not running XEN ( I need Windows) and am doing this with qemu-kvm. John
Richard W.M. Jones
2007-Nov-19 11:40 UTC
Re: [Fedora-xen] Fedora 8, qemu-kvm and networking
John Lagrue wrote:> Having installed F8 and tried out the latest virt-manager, I have to say I''m > impressed. > > But........I am still utterly baffled by guest networking. > > What I *want* to do is have a Windows XP guest that runs on the same network > as my laptop, the host; in other words, the guest should be able to access > all the network that the laptop can see. But I can''t for the life of me find > out how to do this.I''m fairly sure this is not possible. Guests created with virt-manager (ie. libvirt) will want to talk to the bridge created by libvirtd. ie. They''ll be started up with the following qemu -net options: /usr/bin/qemu-kvm [...] -net nic,macaddr=00:16:3e:86:61:81,vlan=0 -net tap,fd=12,script=,vlan=0 Networking is handled through a bridge (usually called virbr0) and IP addresses are assigned from a "private range", by default 192.168.122.X. The assignment of addresses and NAT to the "outside world" is done by a dnsmasq process. All of this means that the Windows guest won''t be on the same network as the host, ie. broadcasts etc won''t work. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903