Jump to content

network in KVM


Recommended Posts

This is my situation:

 

MDV 2009, IP adres on eth0 for my private network.

I configured a second eth0:0 for my professional network.

 

I installed KVM, WinXP as guest. Everything is working fine, but I cannot configure the virtual machine so that is member of my private network. With VMware, there is no problem as I indicate it is a bridged network. I found several instructions on the web, but none of them is working. Is there someone out there, who can help me?

Link to comment
Share on other sites

You'll probably need to create a bridge interface so install a package called bridge-utils. Once this is installed you can do:

 

brctl addbr br0

 

it should be better to create a virtual interface to then also add to the bridge, and then you use the virtual interface for the virtual machine. You should have vif0 for this, so:

 

brctl addif br0 eth0 vif0

 

then, eth0 will provide your networking for the private network, as vif0 is a member of br0, it should pass everything through the eth0 interface and the vif0 interface is used when configuring the virtual machine. Give an IP in the same range as the eth0 card, or use DHCP, and you're done. Or should be :)

Link to comment
Share on other sites

I guess I can follow your suggestions theoretically. But, as I'm by no means a network guru, can you help me practically?

 

When I do as you suggest, it says "there's no vif0" even when I create a configuration file in /etc/sysconfig/network-scripts.

Also: what parameters do I have to use (supposing I get the bridge working) when I start KVM?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...