esxi 4 with an ubuntu vm and a virtual web server setup in webmin

Hi guys

right got a problem my esxi v4 is working fine on x.x.x.240, I have setup a virtual ubuntu 9.10, on x.x.x.245, with webmin 1.510 installed and from webmin I created a virtual web server on x.x.x.246

The problem is I cannot browse or ping the virtual web server on x.x.x.246 I can ping and connect via webmin to the ubuntu server on x.x.x.245 without any problems

I have restarted apache after setting it up

see my esx network in the attached file


myesxnetwork.GIF
LVL 30
IanThAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jakethecatukCommented:
Can you ping x.x.x.246 from the Unbuntu server?

The only thing I can think of is that you haven't mapped the virtual webserver to the correct NIC inside Unbuntu.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IanThAuthor Commented:
no

so how do I map the virtual webserver to the correct NIC inside Unbuntu.
0
IanThAuthor Commented:
any one?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

vmwarun - ArunCommented:
Is Forged Transmits option enabled in your vSwitch ?
This could be the reason as to why you are not able to connect to your virtual web server.
0
bbnp2006Commented:
Does all of the servers have the same default gateway? If so, can they all ping the default gateway?
0
IanThAuthor Commented:
yes I have got forged transmit enabled on the vSwitch

yes all the servers have the same default gateway
0
IanThAuthor Commented:
what does 'map the virtual webserver to the correct NIC inside Unbuntu.' mean
0
vmwarun - ArunCommented:
1.Is iptables running in Ubuntu ?
0
vmwarun - ArunCommented:
VMs can have multiple vNICs (upto 10) attached to them, I guess jakethecatuk is checking whether you have such a setup with multiple NICs within Ubuntu VM.
0
IanThAuthor Commented:
see my esx network
esxnetwork.PNG
0
IanThAuthor Commented:
and my vm network

vmnetwork.PNG
0
vmwarun - ArunCommented:
Your vSwitch config seems to be in place, please attach the screenshot of the Ubuntu VM's Network Setup.
0
IanThAuthor Commented:
and webmin network setup
webmin-network-setup.PNG
0
IanThAuthor Commented:
and my esx ubuntu config
ubuntu-server.PNG
0
Tech_StigCommented:
Can you list the output of ifconfig?
0
IanThAuthor Commented:
there you go
ip-config.PNG
0
Tech_StigCommented:
Ok. There's no declaration of 192.168.16.246 so essentially whatever switch/router setup you are using has no idea where that lives even though apache is listening on this address. This can be done with sub-interfacing.


auto lo
auto eth0:0
auto eth0:1

# Loopback iface
iface lo inet loopback

# eth0 sub-interface 0
iface eth0:0 inet static
	address 192.168.16.245
	netmask 255.255.255.0
	network 192.168.16.0
	broadcast 192.168.16.255
	gateway 192.168.16.1

# eth0 sub-interface 1
iface eth0:1 inet static
	address 192.168.16.246
	netmask 255.255.255.0
	network 192.168.16.0
	broadcast 192.168.16.255
	gateway 192.168.16.1

Open in new window

0
IanThAuthor Commented:
is thats whats required when you do a virtual (static ip address) web server
0
Tech_StigCommented:
Well, to filter on IP address, some form of what I have there. Since you were running Ubuntu I wrote that interfaces file. Another way would be the same method only using ifconfig, which would require startup scripts. You can also create separate virtual adapters and then setup networking between the the physical interface and the virtual, however that is more complex (and I believe a little outdated for this).

Apache relies on the underlaying network subsystem for packet processing  The end state is that you must have an IP address that is tied to a MAC so that your switch knows to send packets to it. You have this with your original setup, however it is only mapped to the .245 address. Since the the underlying network subsystem does not know about the .246 address, the switch also does not know about it and packets sent to that address will be dropped on the switch.

Once you have configured your system to use this address, then you can configure Apache (as you have probably already done) to handle http packets sent to this address.

You can still configure virtual hosts (vhosts) in apache without a second address, However you would be filtering on other information such as FQDN, port, etc. As an example, you can configure one vhost to handle traffic directed at narf.mydomain.com:80, another to handle traffic for only zoinks.mydomain.com:80, and then configure a third to handle everything else from mydomain.com:80.


0
IanThAuthor Commented:
because its using just ip addresses youre saying it best to use a sub-interface for real ip based virtual domains, what about shared ip address virtual domains its not required as port 80 on 245 is already going to be in a sub-interface for the management address

how does apache filter on FQDN
0
IanThAuthor Commented:
hmm error when I did sub-interface


ubuntu-network-error.PNG
0
IanThAuthor Commented:
i did in webmin using a virtual nic as eth0:1 x.x.x.246 and
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.