Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Not specifically a linux question this but... does anyone know what bridging means when talking about setting up virtual servers? I see the option but I'm not sure what it does, apparently it affects the way your vm is reached over the networka routera? For some reason some hosting companies don't like it if you use bridging when running virtual machines on their servers.
And also there is something to do with NAT filesystem...
If any of what I'm saying means anything to someone It'd really help me if you could explain something, at the moment I'm not even sure what to google regarding bridging, virtual machines and NAT and how these three terms might relate to eachother.
Bridging for a virtual machine basically means that the hardware interface is equally shared amongst the host and the VM, which, for all practical purposes, simulate the fact that you have a bunch of computers connected through a switch.
With this option, there is little on the host computer that can be done to control what is done by the VMs, hence maybe the reluctance of your provider to let you do it.
Another problem is that in bridging configuration, the VM are taking IP address directly from the pool of the LAN where the host machine is connected: in the NAT configuration, they use a machine-local IP address, and only the host computer requires an IP address for itself.
Hope it clears things a bit, but do not hesitate to ask more questions.
You know how your home Cable or DSL router takes a public IP from your Internet provider and gives everyone inside your house a 192.168.1.x address?
Hopefully, you do... heh heh
Well, that's NAT.
In that case your PC would be NATted a 192.168.1.100 or something like that. And it would, in turn, NAT again to the VMs. So the main system IP would be 192.168.1.100 on the house network, but to the VM, your PC that is actually running VMware would appear like 192.168.1.1 or 192.168.7.1, the same way your router appears to the PCs in your home.
With this confusion spoken, bridging has your VM request an IP from your home router instead of the PC. So, the physical machine that is "the computer running VMWare"... it has two or more IP addresses. One for "the real physical machine", and one for each "virtual machine" as well.
If you NATted, it would only appear to have 1 ip address, for the physical machine. All requests to the internet from the VM would be translated/brokered/negotiated by the main PC/VMware Server/VMware Player software. Which would, in turn, send the request to the router to be brokered again.
With Bridging, this translation/brokering/negotiating is done directly by the router for the VM, as it is normally for a home user. As if the VM was an actual physical stand-alone computer.
Of course, if you are not a home user, you will need to replace all occurences of home user and home router with "See your IT department for further details"!
Sounds like you are running some form of VMWare Server/Workstation. Anyway, bridging is simply 2 way packet forwarding. Where VMWare is concerned, the guest OS that has its network connection "bridged" has direct access to the same network the host OS is on. Any network traffic to and from the guest OS is simply "forwarded" by the host system.
Your hosting service doesn't like VMs with bridged connections is probably cause they're lazy, or they have to assign additional IPs to you, or they have some strict NAC in place, or even worse, they are hosting you on VMs already heh.
NAT stands for network address translation. When the guest OS is configured to use NAT instead of bridging, it means (in layman terms):
- A virtual network is created between the guest OS and host system
- The network interface of the guest OS is on this virtual network.
- The host system accesses this network via a vif (virtual interface)
- the host system's vif is also the gateway for the virtual network
- the host system then acts as a NAT router for the virtual network
Any traffic that originates from the guest OS and destined for computers outside of the virtual network, will have its source IP translated to the host system's real IP. The destination computer thinks the traffic originated from the host system, and is unaware of the guest OS.
Any RETURNING traffic from computers outside of the virtual network, destined for the guest OS, will have its destination IP set to the host system's IP. Once it gets to the host system, the destination IP is translated to the guest OS IP, and is forwarded to the guest OS.
VMWare site has a lot of helpful docs that can explain this in more detail, you might wanna check there.