Re: noobie network question [message #44749 is a reply to message #44717] |
Tue, 27 December 2011 13:39   |
Ales
Messages: 330 Registered: May 2009
|
Senior Member |
|
|
Openvz standard networking is probably the simplest thing to set up that I know of.
The single most common mistake new users seem to do is that they bind all IPs to the hardware node (eth0, eth0:1, eth0:2 etc.) and then look for complex instructions on how to set them up for virtual machines. It doesn't work this way.
For example, if you have three IPs from the same subnet and need to set up one IP for the HN and two for VMs, you need to:
- bind the first IP to eth0, as you would on any server
- add the second and third to each VM using vzctl.
Do NOT bind the second and third IP to eth0:1, eth0:2, etc.
And that's it, that's all you need to do. No routes to set up, no additional settings on the hardware node, just don't bind the IPs for VMs to eth0.
Users seem to look for complex ways to "enable" or "configure" networking for VMs, expecting that it will be hard. But instead, it's so simple that people seem to have problems accepting the simplicity and keep on looking for additional instructions where there really are none.
|
|
|