How to set DHCP by using Virtualbox?

Hi, Guys,

I met a question.
I've installed the Oracle Virtualbox in my laptop, whose OS is Windows XP.
And I've installed two CentOS 6.4 in the virtualbox : test1, test2.

I wanted the test1 to be the DHCP server and assigned IP Address to the test2.
I knew the principle :
step 1: install the DHCP server in the test1;
step 2: config the dhcpd.conf in the test1;
step 3: restart the DHCP service;

I set the test1's network adapter attached to Host-Only Adapter and set the IP Address by manual (192.168.56.83)
I set the test2's network adapter attached to Host-Only Adapter and set the IP Address by DHCP.

However, the test2 cannot get the correct IP Address which contains the test1's dhcpd.conf.

It took me a whole day and is terrible!
Please help me! Give me some ideas!
Thx

Have you set the correct VirtualBox DHCP range in File --> Preferences -> Network -> [Tool] - DHCP Server?

of course.
I set the range from 192.168.56.100 to 192.168.56.150.

There is a default DHCP server running by the Oracle VM.

You have to stop the DHCP service and then try with your test1 Server.