From owner-freebsd-current@FreeBSD.ORG Fri May 16 12:36:55 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6B781065671 for ; Fri, 16 May 2008 12:36:55 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outE.internet-mail-service.net (oute.internet-mail-service.net [216.240.47.228]) by mx1.freebsd.org (Postfix) with ESMTP id AF3ED8FC18 for ; Fri, 16 May 2008 12:36:55 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Fri, 16 May 2008 21:55:58 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id C69B12D6012 for ; Fri, 16 May 2008 05:36:54 -0700 (PDT) Message-ID: <482D7FE6.6020405@elischer.org> Date: Fri, 16 May 2008 08:36:54 -0400 From: Julian Elischer User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: vimage patches and example run. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 12:36:56 -0000 vimage patches as of 8AM in ottawa: http://www.freebsd.org/~julian/vimage.diff apply these to a new -current tree and make the VIMAGE kernel cd to usr.sbin/vimage to make the utility and the man page: here is a small transcript where a new virtual system called 'fred' is created, and teh bge1 interface is shifted into it. we then enter 'fred' and set up the interface and check that it works. note that load averages are given for each virtual machine.. this work is not complete and may not show correct numbers. ========== transcript ================== root@trafmon2:vimage -l ".": Processes (cur/max): 45/0; load averages: 0.00, 0.06, 0.05 CPU usage: 0.11% Sockets (cur/max): 47/0; 4 network interfaces root@trafmon2:vimage -lr ".": Processes (cur/max): 45/0; load averages: 0.00, 0.05, 0.05 CPU usage: 0.01% Sockets (cur/max): 47/0; 4 network interfaces root@trafmon2:vimage -c fred root@trafmon2:vimage -lr ".": Processes (cur/max): 45/0; load averages: 0.00, 0.05, 0.05 CPU usage: 0.00% Sockets (cur/max): 47/0; 4 network interfaces "fred": Processes (cur/max): 0/0; load averages: 0.00, 0.00, 0.00 CPU usage: 0.00% Sockets (cur/max): 0/0; 1 network interfaces root@trafmon2:ifconfig bge0: flags=8802 metric 0 mtu 1500 options=9b ether 00:0f:1f:6a:7b:90 media: Ethernet autoselect (100baseTX ) status: active bge1: flags=8843 metric 0 mtu 1500 options=9b ether 00:0f:1f:6a:7b:91 inet 172.28.10.2 netmask 0xffffff00 broadcast 172.28.10.255 media: Ethernet autoselect (1000baseTX ) status: active fxp0: flags=8843 metric 0 mtu 1500 options=b ether 00:02:b3:ef:c8:22 inet 172.28.0.102 netmask 0xffffff00 broadcast 172.28.0.255 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 root@trafmon2:vimage -i fred bge1 eth0@fred root@trafmon2:ifconfig bge0: flags=8802 metric 0 mtu 1500 options=9b ether 00:0f:1f:6a:7b:90 media: Ethernet autoselect (100baseTX ) status: active fxp0: flags=8843 metric 0 mtu 1500 options=b ether 00:02:b3:ef:c8:22 inet 172.28.0.102 netmask 0xffffff00 broadcast 172.28.0.255 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 root@trafmon2:vimage fred Switched to vimage fred root@:ifconfig lo0: flags=8008 metric 0 mtu 16384 eth0: flags=8842 metric 0 mtu 1500 options=9b ether 00:0f:1f:6a:7b:91 media: Ethernet autoselect (1000baseTX ) status: active root@:ifconfig eth0 172.28.10.2 root@:ifconfig lo0: flags=8008 metric 0 mtu 16384 eth0: flags=8843 metric 0 mtu 1500 options=9b ether 00:0f:1f:6a:7b:91 inet 172.28.10.2 netmask 0xffff0000 broadcast 172.28.255.255 inet6 fe80::20f:1fff:fe6a:7b91%eth0 prefixlen 64 scopeid 0x2 media: Ethernet autoselect (1000baseTX ) status: active root@:ping 172.28.10.4 PING 172.28.10.4 (172.28.10.4): 56 data bytes 64 bytes from 172.28.10.4: icmp_seq=0 ttl=64 time=0.441 ms 64 bytes from 172.28.10.4: icmp_seq=1 ttl=64 time=0.177 ms 64 bytes from 172.28.10.4: icmp_seq=2 ttl=64 time=0.196 ms 64 bytes from 172.28.10.4: icmp_seq=3 ttl=64 time=0.228 ms 64 bytes from 172.28.10.4: icmp_seq=4 ttl=64 time=0.245 ms 64 bytes from 172.28.10.4: icmp_seq=5 ttl=64 time=0.109 ms ^C --- 172.28.10.4 ping statistics --- 6 packets transmitted, 6 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.109/0.233/0.441/0.103 ms root@: