From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <44E692D6.8060108@lanl.gov> Date: Fri, 18 Aug 2006 22:25:58 -0600 From: Ronald G Minnich User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] err 2: arena creation time after last write time References: <3096bd910608180440o216712c4i68a577245469ff92@mail.gmail.com> <3e1162e60608180745p50fb2980n5747f90855e4f255@mail.gmail.com> <3096bd910608181728o3fd07611l893af021333be219@mail.gmail.com> In-Reply-To: <3096bd910608181728o3fd07611l893af021333be219@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: a41b26fe-ead1-11e9-9d60-3106f5b1d025 here's how I run qemu so as to get things going. This allows me to drawterm into it. qemu qemu.vesaroot & Gets me a cpu kernel going sleep 5 && dhcpd -d gets me the dhcpd a run looks like this: [root@q plan9]# qemu qemu.vesaroot & sleep 5&& dhcpd -d [1] 4674 Connected to host network interface: tun1 Could not open '/dev/kqemu' - QEMU acceleration layer not activated Internet Systems Consortium DHCP Server V3.0.2-RedHat Copyright 2004 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 17 leases to leases file. Listening on LPF/tun1/46:9c:6d:94:f5:1f/172.20.0/24 Sending on LPF/tun1/46:9c:6d:94:f5:1f/172.20.0/24 No subnet declaration for ath0 (192.168.0.104). ** Ignoring requests on ath0. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface ath0 is attached. ** Sending on Socket/fallback/fallback-net DHCPDISCOVER from 52:54:00:12:34:56 via tun1 DHCPOFFER on 172.20.0.2 to 52:54:00:12:34:56 via tun1 Dynamic and static leases present for 172.20.0.2. Remove host declaration qemu or remove 172.20.0.2 from the dynamic address pool for 172.20.0/24 DHCPREQUEST for 172.20.0.2 (172.20.0.1) from 52:54:00:12:34:56 via tun1 DHCPACK on 172.20.0.2 to 52:54:00:12:34:56 via tun1 (note the DHCPREQUEST -- that's my plan 9) (the error message is unimportant) OK, what's the config look like? dhcpd.conf: subnet 172.20.0.0 netmask 255.255.255.0 { range 172.20.0.2 172.20.0.2 ; default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option routers 172.20.0.1; } host qemu { hardware ethernet 52:54:00:12:34:56; fixed-address xtest; } xtest is (from /etc/hosts): 172.20.0.2 xtest ok but how did tun1 get configured? You need to set up /etc/qemu-ifup [root@q etc]# cat /etc/qemu-ifup #!/bin/sh tun=$1 sudo /sbin/ifconfig $1 172.20.0.1 sudo /sbin/iptables -N nat sudo /sbin/iptables -t nat -F sudo /sbin/iptables -t nat -A POSTROUTING -s 172.20.0.1 -j MASQUERADE sudo /sbin/iptables -t nat -A POSTROUTING -d 172.20.0.1 -o $tun sudo echo 1 > /proc/sys/net/ipv4/ip_forward [root@q etc]# this allows me to drawterm into the plan 9 cpu server running on my laptop. If this all works, then put it in the wiki :-) This is on FC4. ron