From owner-freebsd-virtualization@FreeBSD.ORG Sun Apr 5 19:18:03 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2FD21065672 for ; Sun, 5 Apr 2009 19:18:03 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 438578FC12 for ; Sun, 5 Apr 2009 19:18:03 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id 19so128168fgg.12 for ; Sun, 05 Apr 2009 12:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=H/5Ui8dvS3j+T10Ee09WqS1yvXDnNU83JcoM9R474Ms=; b=sNeHKkOCcLogMDbxyGKzdT71qNlE0h6bWRAQOJpSuWLnMWy8wnFzqN0ByonEfNQPaT XS7DlgL4suuQlHE53z7n4NteglydAd8QctfWpGSsuGAeGLDqzR4xmwNi0/6yLNpO+MRq gYK9RUkhF7gRJcYFUNgN2MQt5yIJRd3tyWC/g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=Y0qf2KnbYtSE9ppNiIq/nAD7yuGDi6WqFg28LJBsb7FdLUYL0/+w+h7/+pcZj5CSBT pMmuYEzSfOjgjdir8OUZ68FpWFzEuVRcHAbNGnFg3uqzdZA4pb/jXaFf0kSfyzDNEDWa /D8hXDPwWxJ8VKgRxoNUPm0mXoF1gRoXzwDKg= Received: by 10.86.33.10 with SMTP id g10mr2512039fgg.56.1238957408622; Sun, 05 Apr 2009 11:50:08 -0700 (PDT) Received: from localhost.my.domain (95-28-34-26.broadband.corbina.ru [95.28.34.26]) by mx.google.com with ESMTPS id l12sm6200913fgb.1.2009.04.05.11.50.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 05 Apr 2009 11:50:08 -0700 (PDT) From: subbsd To: freebsd-virtualization@freebsd.org Date: Sun, 5 Apr 2009 22:50:06 +0400 User-Agent: KMail/1.11.2 (FreeBSD/8.0-CURRENT; KDE/4.2.2; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904052250.06913.subbsd@gmail.com> Subject: how to apply latest vimage patch for 8-HEAD X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: subbsd@gmail.com List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2009 19:18:04 -0000 Hello maillist, I've try to test latest vimage on 8.0-CURRENT FreeBSD. Upgrade to latest HEAD version FreeBSD is succesfull (using i386 arch): --- (my steps) --- 1) svn checkout svn://svn.freebsd.org/base/head /usr/src 2) cd /usr/src; 3) make buildworld; make kernel KERNCONF="GENERIC"; 5) nextboot -k kernel -o "-s"; reboot (in single mode): 6) cd /usr/src 7) make installworld 8) yes |make delete-old 9) yes| make delete-old-libs 10) mergemaster 11) /sbin/reboot --- So, i get what i want: %sysctl -a | grep kern.osr\* kern.ostype: FreeBSD kern.osrelease: 8.0-CURRENT kern.osrevision: 199506 kern.osreldate: 800074 Next, i've fetch latest vimage patch for HEAD: fetch http://imunes.tel.fer.hr/virtnet/vimage-20081015.tgz tar xfz vimage-20081015.tgz cp -R vimage/src/usr.sbin/vimage /usr/src/usr.sbin/ mv /usr/src/sys /usr/src/sys-orig (for backup original) mv vimage/src/sys /usr/src and running make buildworld but it unsuccessful with messages in stdout: -- ... -------------------------------------------------------------- >>> stage 3.2: building everything -------------------------------------------------------------- cd /usr/obj/usr/src/sys/VIMAGE; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386 CPUTYPE= GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp VERSION="FreeBSD 8.0-CURRENT i386 800062" INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin NO_CTF=1 make KERNEL=kernel all -DNO_MODULES_OBJ cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls - Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith - Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL - DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline- limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow - mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/netinet/tcp_timewait.c /usr/src/sys/netinet/tcp_timewait.c: In function 'tcp_twstart': /usr/src/sys/netinet/tcp_timewait.c:219: error: 'vnet_inet' undeclared (first use in this function) /usr/src/sys/netinet/tcp_timewait.c:219: error: (Each undeclared identifier is reported only once /usr/src/sys/netinet/tcp_timewait.c:219: error: for each function it appears in.) *** Error code 1 Stop in /usr/obj/usr/src/sys/VIMAGE. *** Error code 1 -- And.. I could not understand how to use update.sh ;( I install (/usr/ports/devel/perforce) p4 utility , then have copied contents vimage in/usr/src and have started update.sh bs0# sh update.sh -- Current working directory is: /usr/src confirm you have cd'd to the base of the correct tree. (^C to exit) ========= printing open files ========== Perforce client error: Connect to server failed; check $P4PORT. TCP connect to perforce failed. perforce: host unknown. confirm you have no open files that would conflict. (^C to exit) --- Tracking of update.sh did not give me a clear answer what values should I use for the p4 repository for environment. Where i can some readme for usage update.sh scripts? Thanks a lot for any helps From owner-freebsd-virtualization@FreeBSD.ORG Fri Apr 10 12:48:03 2009 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF210106564A for ; Fri, 10 Apr 2009 12:48:03 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by mx1.freebsd.org (Postfix) with ESMTP id B13148FC1D for ; Fri, 10 Apr 2009 12:48:03 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so999668rvb.43 for ; Fri, 10 Apr 2009 05:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:mime-version:content-type:content-transfer-encoding :content-disposition:message-id; bh=RR2Us0S6kUkkw6fDbx+4k2PI8uezehfKSJXbYhdzF+Y=; b=jJLje9prMeGfZnA8fAit1CjIkCnrqi93zQIN9u2OcMMrc8LT0Xx8Qg55yImnhFR5jT UH1fh2lv6Awlv9pvWndMD1Ac2Dt03P8ubLwDgJQa3HHVjQhvUHGoX5yd1J8JrlB443Pc bvGAUbi6Hf8AMFbier5feDVy5V1+ip1H3HG8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=b7vKBfLkp0O5PMlJ1/zJRXOyIQiYI1clpH+Mhn/fyVAGrwxr5jlNI6bttEm45XP9w9 9unm5IvOLiMtQjl2JMStA5COT6ZzbYFx+ZNGCO8wXszv24muIPJXDfSjcp8a/GglAfLb PnIDnp2LcwCzhNuDTPZzs7sgvnsEdoHUujtf8= Received: by 10.141.137.16 with SMTP id p16mr1494604rvn.200.1239367683254; Fri, 10 Apr 2009 05:48:03 -0700 (PDT) Received: from oleg.net.nevosoft.ru ([195.182.128.54]) by mx.google.com with ESMTPS id g14sm3754915rvb.27.2009.04.10.05.48.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Apr 2009 05:48:02 -0700 (PDT) From: subbsd To: freebsd-virtualization@freebsd.org Date: Fri, 10 Apr 2009 16:47:47 +0400 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.0; i386; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904101647.47690.subbsd@gmail.com> Subject: chroot is not ready? X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: subbsd@gmail.com List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2009 12:48:04 -0000 Hello maillist i try to setup vimage chrootet to another "installworld/distribution" places: 1)mkdir -p /usr/jail/vbsd2.my.domain 2) cd /usr/src && make installworld DESTDIR="/usr/jail/vbsd2.my.domain" && make distribution DESTDIR="/usr/jail/vbsd2.my.domain" //file for test 3) date > /nochroot.txt //create v1 image with chroot 4) vimage -c v1 chroot /usr/jail/vbsd1.my.domain/ //this step for test chroot not necessary? but assign anyway 5) vimage -i v1 bge1 eth0@v1 6) vimage v1 Switched to vimage v1 // i see nochroot.txt: 7) vimage v1 /usr/bin/file /nochroot.txt /nochroot.txt: ASCII text ;( chroot not ready yet? Thanks! PS: using vimage_7_20090401.tgz for 7-RELENG