Re: [zones-discuss] dhcp server in a zone with shared IP
Hi, another update: For further tests I created a new non-global zone with an exclusive IP stack and a virtual nic and the dhcp server works there. I even did not configure the additional privileges like in the other zone, so the zone configuration is : $ zonecfg -z dhcpserver info zonename: dhcpserver zonepath: /zones/dhcpserver brand: native autoboot: true bootargs: pool: limitpriv: scheduling-class: ip-type: exclusive inherit-pkg-dir: dir: /lib inherit-pkg-dir: dir: /platform inherit-pkg-dir: dir: /sbin inherit-pkg-dir: dir: /usr fs: dir: /tools special: /tools raw not specified type: lofs options: [] net: address not specified physical: vnic2 defrouter not specified The only thing I had to change to get the SMF service started was to remove the credentials from the service: I do not really know why the dhcp server does not work in the other zone. regards Bernd Bernd Schemmer wrote: And now the dhcp server works in the zone. Update: Linux and Windows Clients do not get an IP address from the dhcp server in the non-global zone; for Solaris I only tested dhcp on a physical machine were the zone is running (and that works with the dhcp server in the non-local zone). The dhcp server works for Windows and Linux Clients if running in the global zone regards Bernd -- Bernd Schemmer, Frankfurt am Main, Germany http://home.arcor.de/bnsmb/index.html M s temprano que tarde el mundo cambiar . Fidel Castro ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] dhcp server in a zone with shared IP
>>And now the dhcp server works in the zone. Update: Linux and Windows Clients do not get an IP address from the dhcp server in the non-global zone; for Solaris I only tested dhcp on a physical machine were the zone is running (and that works with the dhcp server in the non-local zone). The dhcp server works for Windows and Linux Clients if running in the global zone regards Bernd -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] dhcp server in a zone with shared IP
>>Since you have build 107, why not use VNICs and run an exclusive IP >>Instance zone. That would make your situation a little easier to manage. Ah, yes . I forgot about that. So I configured a vnic in the global zone: [r...@sol9 Fri Feb 20 18:56:39 /zones/template/root ] $ dladm show-vnic LINK OVER SPEED MACADDRESS MACADDRTYPE VID vnic0eri0 1002:8:20:fd:5e:d5 random 0 and changed the zone configuration according to that message: $ zonecfg -z dnsserver info zonename: dnsserver zonepath: /zones/dnsserver brand: native autoboot: true bootargs: pool: limitpriv: default,net_rawaccess scheduling-class: ip-type: exclusive inherit-pkg-dir: dir: /lib inherit-pkg-dir: dir: /platform inherit-pkg-dir: dir: /sbin inherit-pkg-dir: dir: /usr fs: dir: /export/install special: /export/install raw not specified type: lofs options: [read-only] net: address not specified physical: vnic0 defrouter not specified device: match: /dev/ip The dhcp config file in the zone is : [r...@dnsserver Fri Feb 20 19:03:14 ~ ] $ cat /etc/inet/dhcpsvc.conf DAEMON_ENABLED=TRUE RESOURCE=SUNWfiles RUN_MODE=server PATH=/var/dhcp CONVER=1 INTERFACES=vnic0 LOGGING_FACILITY=3 But still no go ... I could start the in.dhcpd in debug mode from the command line and it worked. But enabling the service always failed with the error message: [ Feb 20 18:25:05 Executing start method ("/usr/lib/inet/in.dhcpd"). ] svc.startd could not set context for method: setppriv: Not owner [ Feb 20 18:25:05 Method "start" exited with status 96. ] I finally removed the privileges from the service like described here http://forums.sun.com/thread.jspa?threadID=5236367 And now the dhcp server works in the zone. regards Bernd -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] dhcp server in a zone with shared IP
On 02/20/09 05:29, Bernd Schemmer wrote: Hi can I configure a dhcp server in a zone with shared IP? I don't find a definitve answer with google for this question If it can be configured : is it documented howto to configure the Solaris dhcp server in a zone? I'm using $ uname -a SunOS sol9 5.11 snv_107 sun4u sparc SUNW,Sun-Blade-1000 regards Bernd I have not done this. I thought the answer was 'no' :) However, http://www.opensolaris.org/os/community/zones/faq/#svc_dhcp points to http://www.opensolaris.org/jive/thread.jspa?messageID=197789&tstart=0 Since you have build 107, why not use VNICs and run an exclusive IP Instance zone. That would make your situation a little easier to manage. Steffen ___ zones-discuss mailing list zones-discuss@opensolaris.org