Hi Gavin,
On 02/28/10 03:38 PM, Gavin Mu wrote: > Hi, > > I'm failed to setup an AI server behind NAT, is it possible to do such thing? Currently, this is not supported, but in theory it could work if manually configured. However, it seems that you will run into issues in this particular scenario - please see below. > > I tried to setup the AI server on my vmware with NAT (it's limited > that I can't use host bridge mode) to provide OpenSolaris 2009.06 > install service for my SPARC machine, and I set the port forwarding on > both 5555 and 46501 ports. > > IPADDR of my XP machine: 10.15.4.11 > private IPADDR of my vmware: 192.168.241.128 > Port Forwarding on the port 5555 and 46501 > > I have tried with firefox that both http://10.15.4.11:5555 and > http://10.15.4.11:46501 are accessible. > > Other issue is that my XP workstation is not in the same subnet with > the SPARC machine, so I modified the install.conf with: > > install_service=0906sparc > install_svc_address=10.15.4.11:46501 > install_debug=enable > > then I boot my Fire-V250 SPARC machine with: > {1} ok setenv network-boot-arguments > host-ip=10.15.134.13,router-ip=10.15.132.1,subnet-mask=255.255.252.0,hostname=m > ysparc,file=http://10.15.4.11:5555/cgi-bin/wanboot-cgi > > network-boot-arguments = > host-ip=10.15.134.13,router-ip=10.15.132.1,subnet-mask=255.255.252.0,hostname=m > ysparc,file=http://10.15.4.11:5555/cgi-bin/wanboot-cgi > > {1} ok boot net > > SC Alert: Host System has Reset > > Sun Fire V250, No Keyboard > Copyright 2010 Sun Microsystems, Inc. All rights reserved. > OpenBoot 4.30.4.a, 8192 MB memory installed, Serial #35436454. > Ethernet address 0:3:ba:12:34:56, Host ID: 83123456. > > Rebooting with command: boot net Configuring network parameters directly in OBP by means of setting network-boot-arguments variable does not work at this point - this issue is tracked by bug 9549: 9549 Sparc AI client doesn't bring up network if not booted using DHCP http://defect.opensolaris.org/bz/show_bug.cgi?id=9549 So you would need to setup DHCP server which would provide Sparc client with necessary information (IP configuration, BootFile, ...). Alternatively, if your Sparc box has CD drive and you have access to it, you could take advantage of Bootable AI - burn AI image on media and boot AI from media - please see following document for instructions how to install using Bootable AI: http://dlc.sun.com/osol/docs/content/dev/AIinstall/bootable.html > Boot device: /pci at 1c,600000/pci at 2/pci at 0/network at 0 File and args: > /pci at 1c,600000/pci at 2/pci at 0/network at 0: 100 Mbps full duplex link up > <time unavailable> wanboot info: WAN boot messages->console > <time unavailable> wanboot info: configuring > /pci at 1c,600000/pci at 2/pci at 0/network at 0 > > /pci at 1c,600000/pci at 2/pci at 0/network at 0: 100 Mbps full duplex link up > > Requesting Ethernet address for: 10.15.132.1 > <time unavailable> wanboot progress: wanbootfs: Read 366 of 366 kB (100%) > <time unavailable> wanboot info: wanbootfs: Download complete 'wanbootfs' was downloaded - that means AI server can be accessed. > Sun Feb 28 13:44:02 libwanboot crit: http_srv_connect: tcp_connect returned -1 > Sun Feb 28 13:44:02 wanboot alert: http_srv_connect: errsrc 1, err 145 (0x91) > Sun Feb 28 13:44:02 wanboot alert: ERRNO: 145 > Sun Feb 28 13:44:02 wanboot info: Will retry in 5 seconds ... I think that problem here is /etc/netboot/wanboot.conf file on AI server - you might need to change configuration there as well, since it contains IP address of AI server ('root_server' option). > > I understood that WANBOOT in different subnet would not use mDNS and > DNS-SD, then where is the mistake during my procedure? mDNS will not be used, but there is a fallback mechanism in place which allows AI to work across subnets. (delivered by fix for bug 6320) Hope this might help a bit, Jan