> > > Daniel wrote: > > Hi, > > > > I'm having trouble creating a guest domain that > uses dhcp for > > its address. I'm wondering if maybe someone can > point out something > > simple I may be missing. > > > > So here's my setup. Everything is all on one > machine. We're running > > a dhcp server within a zone. I've confirmed that > the server is up, > > and that it is handing out addresses. I have > another zone set up that > > uses it, and I can halt and boot that zone and it > gets an ip address > > from the server. So I can do this with a zone but > not with a guest domU yet. > > Have you tried using a VNIC in the zone with the dhcp > server > (i.e. exclusive IP stack)? I would expect that this > will work, > although I'm not sure what the problem would be. > > e.g. > > # dladm create-vnic -l e1000g0 dhcp-server > ... > zonecfg:dhcp> set ip-type=exclusive > zonecfg:dhcp> add net > zonecfg:dhcp:net> set physical=dhcp-server > zonecfg:dhcp:net> end
Yes. The dhcp server zone is using a vnic and it's bridged over the same interface as the guest domU. > > > > > > I've tried two approaches to getting the domU to > get an IP address. One > > was to run a virt-install in which I explicitly > choose to have the > > machine networked using dhcp. I bridge it over the > same network interface > > that the zones are using. Unfortunately it always > times out during the > > install and tells me it could not find a dhcp > server. > > The other thing I tried, and I think maybe this was > misguided, it might > > only work for zones, but I installed a guest image > without networking > > and then edited the sysidcfg file to enable dhcp, > and then rebooted > > the guest. That didn't seem to work either. > > > > I hope you can understand my rambling, but is there > anything that comes > > to mind that I may be missing? Thanks for any > help. > can you do a dladm show-link and then snoop on the > vnic used for > the guest? > here's a sample of the snoop output during the virt-install at the step where it looks for the dhcp server. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ r69s27.SFBay.Sun.COM -> (broadcast) ARP C Who is 10.5.184.53, sca11bxvm01.SFBay.Sun.COM ? omalley-iron6.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=48366 Offset=0 MF=1 TOS=0x0 TTL=1 omalley-iron6.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=48366 Offset=1480 MF=1 TOS=0x0 TTL=1 omalley-iron6.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=48366 Offset=2960 MF=0 TOS=0x0 TTL=1 ccdev-sca11-05-z03.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=7820 Offset=0 MF=1 TOS=0x0 TTL=1 ccdev-sca11-05-z03.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=7820 Offset=1480 MF=1 TOS=0x0 TTL=1 ccdev-sca11-05-z03.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=7820 Offset=2960 MF=0 TOS=0x0 TTL=1 omalley4.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=24383 Offset=0 MF=1 TOS=0x0 TTL=1 omalley4.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=24383 Offset=1480 MF=1 TOS=0x0 TTL=1 omalley4.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=24383 Offset=2960 MF=0 TOS=0x0 TTL=1 omalley-iron4.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=48566 Offset=0 MF=1 TOS=0x0 TTL=1 omalley-iron4.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=48566 Offset=1480 MF=1 TOS=0x0 TTL=1 omalley-iron4.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=48566 Offset=2960 MF=0 TOS=0x0 TTL=1 ccdev-sca11-05-z03.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=7821 Offset=0 MF=1 TOS=0x0 TTL=1 ccdev-sca11-05-z03.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=7821 Offset=1480 MF=1 TOS=0x0 TTL=1 ccdev-sca11-05-z03.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=7821 Offset=2960 MF=0 TOS=0x0 TTL=1 ccdev-sca11-06.SFBay.Sun.COM -> 239.100.1.1 UDP D=9090 S=64049 LEN=84 omalley1.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=49801 Offset=0 MF=1 TOS=0x0 TTL=1 omalley1.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=49801 Offset=1480 MF=1 TOS=0x0 TTL=1 omalley1.SFBay.Sun.COM -> reserved-multicast-range-NOT-delegated.example.com UDP IP fragment ID=49801 Offset=2960 MF=0 TOS=0x0 TTL=1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Not sure that this helps. but thanks for any help. -Dan > > > Thanks, > > MRJ > > > _______________________________________________ > xen-discuss mailing list > [email protected] -- This message posted from opensolaris.org _______________________________________________ xen-discuss mailing list [email protected]
