Daniel Qarras wrote: > Hi all, > > I've played with Xen on my Fedora and it's been working fine. Now I'm > testing KVM with 2.6.20 kernel and it's working nicely, too, but I'm > unable to setup a full-blown networking, i.e., a mode where also > icmp/udp work. User-mode networking works well, e.g., yum and firefox > run just fine under KVM. > > Could someone please post a step by step list how to enable > non-usermode networking with KVM/QEMU on Fedora? I've googled > for this and found instructions (mostly for Debian) but I've not been > able to set up this on Fedora. >
In general the setup is exactly like qemu, so any howto for qemu is applicable. Here's what I do: - copy scripts/kvm from the kvm tarball to /etc/init.d, chkconfig and start the kvm service. that sets up a bridge - copy scripts/qemu-ifup into a new directory /etc/kvm. make sure it is executable. - run qemu like this: qemu-system-x86_64 -net nic -net tap,script=/etc/kvm/qemu-ifup [other options]... > (My test machine has one NIC with a 10.x.x.x address in an intranet. I > would want that my KVM guests have, e.g., 192.168.x.x static addresses > and they can ping each other, the host machine, and access outside > world with tcp/udp/icmp etc. So something what Xen does now > automatically on Fedora. Connection initiated from outside world are > not essential but would of course be a nice bonus.) > The configuration above would put the guests on the same ethernet segment, so you'd need to assign them addresses in the 10.0.0.0/8 subnet. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
