noobie network question [message #44717] |
Sat, 24 December 2011 17:31 |
zinnium
Messages: 2 Registered: December 2011
|
Junior Member |
|
|
I am a total noobie at openvz.
My current system is debian squeeze, and I followed the standard install guide from openvz.org's install wiki. My server's network configuration is standard debian for adding multiple ip addresses... eth0, eth0:1, etc.... This is a fresh debian install with only openvz and its packages installed.
My problem is that when I create a new VM from any template. the VM is not able to connect out to my LAN or web.
I am not sure where this problem might lay. I have checked the VM's network configuration and they are showing my netmask, gateway, and broadcast #s as totally incorrect.
I am pretty lost here. I have done enough reading to see this is a common problem, but there has never been a solution posted before.
|
|
|
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.
|
|
|
Re: noobie network question [message #44750 is a reply to message #44749] |
Wed, 28 December 2011 05:03 |
zinnium
Messages: 2 Registered: December 2011
|
Junior Member |
|
|
Thank you. It actually came out today as well in a different forum I am posting on.
This seems like its a common problem and you might want to post this in the install guide under networking.
|
|
|