KVM - The Linux Kernel-Based Virtual Machine
News, Blogs and Resources on the Linux (KVM) Kernel-Based Virtual Machine

KVM Configuration - eth0 dhcp, eth1 bridged network

2 replies [Last post]
robp
Offline
Joined: Aug 6 2011
Points: 6

Hello,

i have a question on how to configure the startup of a Debian Squeeze VM (with a Fully automated Install ("FAI") -Server) properly:
That virtual machine should start with two network interfaces:
eth0 (guest) should get its ip-adress from the host with dhcp and it should be possible to ping the virtual machine's eth0 from the host
eth1 (guest) should be a "private" network, in the kvm-guest there will a a dhcp server running on that interface. So it should be possible to request an ip adress with another virtual machine sharing that network. And it should not be possible, to ping that interface from the host.

I have tried several configuartions but none if them were successfull, it's just some misconfiguration of the -net Parameters, i guess.

My last try, for the Server:
qemu -M pc -hda /home/robert/Virtuelle_Maschinen/KVM_Debian_32bit.img -m 512 -net nic,vlan=0,macaddr=fe:54:00:5a:71:a1 -net user -net nic,macaddr=00:00:00:00:00:01 -monitor pty -boot c

With that command, the VM gets an ip-Adress from the host (Ubuntu 11.04), but i can't ping the VM.
In the server, eth0 is configured to get its adress via dhcp, and eth1 has a static network adress. Both interfaces are started, when the VM comes up.

Has also anybody a suggestion, on how to call the Client (another VM) properly? The client should get its IP-Adress from the Server's eth1 ...

Sorry, i'm not really an expert in network issues ...

Thanks in advance for any useful help.

robp

Anonymous (not verified)
Not yet, but I am attempting

Not yet, but I am attempting this at this point in time.

mohitkumar2710
Offline
Joined: Jan 1 2013
Points: 6
how many nic's do you have ??

how many nic's do you have ??

Post new comment

The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.