LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Setting up Sendmail on Virtualbox? (https://www.linuxquestions.org/questions/linux-server-73/setting-up-sendmail-on-virtualbox-737970/)

your_shadow03 07-06-2009 02:05 AM

Setting up Sendmail on Virtualbox?
 
I have two OS Fedora 9 and Fedora 10 Dsktop Version running on Virtualbox on Ubuntu 9.04. I want to testdrive Sendmail throuhg Fedora 9 as server and Fedora 10 as Client. How to setup the sendmail server?

catkin 07-06-2009 11:17 AM

Hello your_shadow03 :)

Set up sendmail in exactly the same way you would on Fedora running on real hardware.

Are both the Fedora instances running in VMs on the same host OS? Is one the host? Is one running on a different computer on your LAN or elsewhere?

Answers to those questions might raise VirtualBox-specific issues about IP addresses; the client needs to know the server's address.

Best

Charles

your_shadow03 07-06-2009 10:42 PM

Yes. The Two Fedora OS are running on the single host( Ubuntu 9.04).

catkin 07-07-2009 12:14 AM

Hello shadow03 :)

So each instance of Fedora will run in a virtual machine (VM) defined by configuration in VirtualBox on the host. By default, the VMs' NICs will be NAT-attached. For NAT-attached VM NIC's, VirtualBox running on the host acts like a router. It provides a DHCP server and NAT translation. This is, in effect, like the common arrangement of a private LAN connected via router to an ISP.

It has the same restrictions; services running on computers on the (virtual) private LAN can only be reached through the router by port forwarding. And it has more restrictions (from VirtualBox 2.0.6 documentation) that are seldom significant but are included here for completeness:

Quote:

There are four limitations of NAT mode which users should be aware of:

ICMP protocol is very limited: Some frequently used network debugging tools (e.g. ping) rely on sending/receiving messages based on the ICMP protocol. The ICMP protocol cannot be used directly by normal applications such as VirtualBox, as it would, at least on Linux hosts, require root permissions (more precisely CAP_NET_RAW). Since this is not desirable, no attempt has been made to support ICMP to addresses other than 10.0.2.2 and 10.0.2.15. If you try to ping any other IP address you will not get any response.

Receiving of UDP broadcasts is not reliable: The guest does not reliably receive broadcasts, since, in order to save resources, it only listens for a certain amount of time after the guest has sent UDP data on a particular port. As a consequence, NetBios name resolution based on broadcasts is not always working (but WINS always works). As a workaround, you can use the numeric IP of the desired server in the \\server\share notation.

Protocols such as GRE are unsupported
: Protocols other than TCP and UDP are not supported. This means some VPN products (e.g. PPTP from Microsoft) cannot be used. There are other VPN products which use simply TCP and UDP.

Forwarding host ports < 1024 impossible: On Unix-based hosts (e.g. Linux, Solaris, MacOS X) it is not possible to bind to ports below 1024 from applications that are not run by root. Therefore if you try to configure such a port forwarding, then the VM will refuse to start.

What network connectivity do you want? From Internet (or real LAN) to your VM(s)? From applications running on your host OS to your VM(s)? Only between the VMs?

Best

Charles

your_shadow03 07-07-2009 12:41 AM

I need the server and client architecture in between my Two VM ware Machines ..ie Fedora 9 and Fedora 10.. so that I can do R&D with Various Servers Setup.

catkin 07-07-2009 01:12 AM

Hello your_shadow03 :)

OK -- if you only want to network between the VMs then the simplest thing to do is go with VirtualBox's default NAT-attached but not use DHCP. This is not the only option but it is the simplest.

There might be a problem if you clashed with the 10.0.2.0/24 address of the virtual router. Not knowing what that is (and not wanting to research it right now), the simplest would be to pick some other non-routeable IP range addresses -- say 192.168.1.128 and 129 -- and configure those within your Fedora instances.

Best

Charles


All times are GMT -5. The time now is 02:34 PM.