* using KVM w/o dnsmasq on CentOS 5.2 X64
@ 2009-02-02 10:06 Stefan Krümmel
2009-02-02 10:52 ` Daniel P. Berrange
2009-02-02 11:37 ` Paolo Pedaletti
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Krümmel @ 2009-02-02 10:06 UTC (permalink / raw)
To: kvm
Hi,
I'm trying to convert some of our virtual machines from VMWare Server 2 to
KVM on CentOS 5.2 X64.
KVM constantly gives me headaches when it comes to networking
configuration.
Being used to VMWare, there are some things that don't work as expected.
1. kvm/libvirt manipulate iptables, effectivly breaking the hosts
networking
iptables is usually turned off on the dev machine( iptables -F, no rules
set during boot)
2. kvm/libvirt comes with dnsmasq, which gets started automagically,
colliding
with out existing DDNS setup(ISC's bind/dhcpd3 )
I'm hope some of you might shed some light on howto
1) bridge a KVM-VM to an exisiting Ethernet interface, behaving exactly
like
a real/physical NIC, being able to handle any
ARP/BOOTP/PXE/DHCP/IP/whatever requests.
and 2) setup a virtual ethernet-network, which is completely isolated
from the host's networking WITHOUT using NAT/dnsmasq.
e.g. we have a JEOS VM which acts as a tightly restricted dual-homed GW for
VMs that are required to run in a completely isolated network.
I've browsed thru several docus/wikis related to xen/kvm
but none them gave any clues about this custom networking setup.
regards
Stefan Kruemmel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: using KVM w/o dnsmasq on CentOS 5.2 X64
2009-02-02 10:06 using KVM w/o dnsmasq on CentOS 5.2 X64 Stefan Krümmel
@ 2009-02-02 10:52 ` Daniel P. Berrange
2009-02-02 11:37 ` Paolo Pedaletti
1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Berrange @ 2009-02-02 10:52 UTC (permalink / raw)
To: Stefan Krümmel; +Cc: kvm
On Mon, Feb 02, 2009 at 11:06:34AM +0100, Stefan Kr?mmel wrote:
> Hi,
>
> I'm trying to convert some of our virtual machines from VMWare Server 2 to
> KVM on CentOS 5.2 X64.
>
> KVM constantly gives me headaches when it comes to networking
> configuration.
>
> Being used to VMWare, there are some things that don't work as expected.
>
> 1. kvm/libvirt manipulate iptables, effectivly breaking the hosts
> networking
> iptables is usually turned off on the dev machine( iptables -F, no rules
> set during boot)
>
> 2. kvm/libvirt comes with dnsmasq, which gets started automagically,
> colliding
> with out existing DDNS setup(ISC's bind/dhcpd3 )
libvirt's dnsmasq instance is told to only listen on the network
interface with 192.168.122.1, but unfortunately most other DHCP
daemons will default to listening on every interface. So if you
already run a DHCP interface you'll want to disable libvirt's
default virtual network
virsh net-destroy default
virsh net-autostart --disable default
> I'm hope some of you might shed some light on howto
> 1) bridge a KVM-VM to an exisiting Ethernet interface, behaving exactly
> like
> a real/physical NIC, being able to handle any
> ARP/BOOTP/PXE/DHCP/IP/whatever requests.
See the 'Shared physical device' docs here for Debian/Ubuntu and
Fedora/RHEL configs:
http://wiki.libvirt.org/page/Networking
> and 2) setup a virtual ethernet-network, which is completely isolated
> from the host's networking WITHOUT using NAT/dnsmasq.
You can modify libvirt's default virtual network to turn off both
DHCP and NAT forwarding options, which will just leave the bridge
interface in an isolated config
virsh net-edit default
And remove the DHCP XML elements, and remove the '<forward>'
element
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: using KVM w/o dnsmasq on CentOS 5.2 X64
2009-02-02 10:06 using KVM w/o dnsmasq on CentOS 5.2 X64 Stefan Krümmel
2009-02-02 10:52 ` Daniel P. Berrange
@ 2009-02-02 11:37 ` Paolo Pedaletti
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Pedaletti @ 2009-02-02 11:37 UTC (permalink / raw)
Cc: kvm
Ciao Stefan,
> KVM constantly gives me headaches when it comes to networking
> configuration.
I have found very interesting this document:
http://tjworld.net/wiki/Linux/Ubuntu/VirtualMachinesWithVDENetworking
it's only one possibility, but/and it works :-)
--
Paolo Pedaletti
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-02 11:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 10:06 using KVM w/o dnsmasq on CentOS 5.2 X64 Stefan Krümmel
2009-02-02 10:52 ` Daniel P. Berrange
2009-02-02 11:37 ` Paolo Pedaletti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox