LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 04-28-2010, 08:49 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Rep: Reputation: 58
Arrow CentOS VMware Server 2X and DHCP


I have setup a VM machine of XP pro using VMware Server 2X on a CentOS server and noticed that when windows boots up it grabs a ip address from the DHCPD server in VMware and not from the DHCP server from the CentOS server where is resides. So:
PHP Code:
CentOS--DHCPD---VMware Server 2X----DHCPD-----VM(XP Pro)--192.168.3.35
192.168.3.1
(gateway)            192.168.3.2(gateway
I want my XP pro box to grab an ip address from my CentOS box and not from the VMware Service itself. So:
PHP Code:
CentOS--DHCPD---VMware Server 2X----DHCPD-----VM(XP Pro)--192.168.3.35
192.168.3.1
(gateway)            192.168.3.1(gateway
I figured out how to disable dhcpd from the /etc/init.d/vmware script but I cant figure out how to get this configuration?
 
Old 04-29-2010, 12:56 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Why don't you just give the vm a bridged connection ?
 
Old 04-29-2010, 07:31 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Original Poster
Rep: Reputation: 58
I have bridged the connection and it still doesnt grab an ip address from the dhcpd server that it resides on? There is two interfaces, vmnet0 is bridged and vmnet8 is not. ??????

Last edited by metallica1973; 04-29-2010 at 07:45 PM.
 
Old 04-29-2010, 07:46 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
If the vm has a bridged network connection it shouldn't be getting DHCP offers from the vmware-dhcpd, they're only for nat and host-only connections

<edit>The vmnet0(bridged) connection should get a dhcp offer from the host and the vnnet8(NAT) connection should get it's dhcp offer from vmware</edit>

Last edited by kbp; 04-29-2010 at 07:49 PM.
 
Old 04-29-2010, 08:26 PM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Original Poster
Rep: Reputation: 58
I want vmnet8 to grab it from the CentOS box and not from VMware.
 
Old 04-29-2010, 08:58 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
The way dhcp works, the client will usually accept the first offer it receives, and the vmware-dhcpd listening on the vmnet8 interface will always be the quickest response. Maybe you could disable the vmware-dhcpd and make the host dhcpd bind to the vmnet interfaces but I don't think it's easy or even possible.. otherwise you would need a dhcp proxy etc...

<edit>can I ask why you need to do this ?... </edit>

Last edited by kbp; 04-29-2010 at 09:02 PM.
 
Old 04-29-2010, 10:39 PM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Original Poster
Rep: Reputation: 58
I have this server inside the network and I dont need another dhcpd inside of it shelling out IP's and I want it to be part of the existing subnet. By the way thanks for all your help. Also I want to be more well versed with VMware and it network configurations.
 
Old 04-30-2010, 01:30 AM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
The vmware dhcpd *only* provides addresses to virtual machines attached to vmnet1 and vmnet8 on the host, it is not accessible from outside your host so you don't need to worry about any conflicts etc with the rest of your network.
 
Old 04-30-2010, 06:34 PM   #9
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,115

Original Poster
Rep: Reputation: 58
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure dhcp server on centos linux Ravigowda Linux - Networking 2 02-09-2010 04:51 AM
VMWare Server on CentOS mjchin Linux - Newbie 1 06-05-2009 08:18 PM
Can CentOS 5 run as guest OS on VMWare server satimis Linux - General 1 10-05-2007 11:29 AM
Redhat 9, VMware and DHCP Server triplem Linux - Networking 26 07-28-2005 10:14 AM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration