in my cpu server in a vm, i put the nic setup in /cfg/$sysname/cpustart and put the namespace setup in /lib/namespace.$sysname.
/cfg/chi/cpustart: #!/bin/rc # # cpustart ## internal services auth/secstored ip/dhcpd ip/tftpd ## external network (qemu nat) bind -a '#l1' /net.alt bind -a '#I1' /net.alt ip/ipconfig -x /net.alt ether /net.alt/ether1 ndb/cs -x /net.alt ndb/dns -Rrx /net.alt aux/listen -q -t /rc/bin/service.auth -d /rc/bin/service /net.alt/tcp and then /lib/namespace.chi: bind -b '#l1' /net.alt bind -b '#I1' /net.alt mount -a /srv/cs_net.alt /net.alt mount -a /srv/dns_net.alt /net.alt from there i just import /net.alt from a second pxe booted machine if i want to access the real 'net. i hope this helps. On Wed, Apr 23, 2014 at 01:17:59PM +0000, Carlos Sánchez de La Lama wrote: > I found the answer just after posting :S > > > Is there a way to have $sysname available at that point? > > Setting sysname in plan9.ini (or in this case in pxe/<macaddr> as I am > netbooting) does the trick :) > > Carlos > >
pgpqnBuIZoJIw.pgp
Description: PGP signature
