DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th March 2016
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default howto xen dom0

Hi,
I've NetBSD on Xeon quad cores, iwant to virtualize !
I read this post/thread : https://gmplib.org/~tege/xen.html

I want to use xen version 45, but i begin to compile xzenkernel45 and ever i have issues, this is my output :
Code:
dct-clovis# cd xenkernel45
dct-clovis# make install clean clean-depends
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Fetching xen-4.5.2.tar.gz
=> Total size: 18416220 bytes
Trying 2.20.250.81:80 ...
Requesting http://bits.xensource.com/oss-xen/release/4.5.2/xen-4.5.2.tar.gz
100% |***********************************| 17984 KiB    1.90 MiB/s    00:00 ETA
18416220 bytes retrieved in 00:09 (1.90 MiB/s)
=> Checksum SHA1 OK for xen-4.5.2.tar.gz
=> Checksum RMD160 OK for xen-4.5.2.tar.gz
=> Checksum SHA512 OK for xen-4.5.2.tar.gz
===> Installing dependencies for xenkernel45-4.5.2
==========================================================================
The following variables will affect the build process of this package,
xenkernel45-4.5.2.  Their current value is shown below:

        * PYTHON_VERSION_DEFAULT = 27

Based on these variables, the following variables have been set:

        * PYPACKAGE = python27

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency gmake>=3.81: found gmake-4.1nb1
=> Build dependency python27>=2.7.1nb2: found python27-2.7.10
===> Overriding tools for xenkernel45-4.5.2
===> Extracting for xenkernel45-4.5.2
===> Patching for xenkernel45-4.5.2
=> Applying pkgsrc patches for xenkernel45-4.5.2
===> Creating toolchain wrappers for xenkernel45-4.5.2
===> Building for xenkernel45-4.5.2
cd /usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen && /usr/bin/env OCAML_TOOLS=no USETOOLS=no EXTRA_CFLAGS= PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= CXXCPP=cpp PYTHON=/usr/pkg/bin/python2.7 CC=gcc CFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include CPPFLAGS=-I/usr/include\ -I/usr/pkg/include CXX=c++ CXXFLAGS=-O2\ -I/usr/include\ -I/usr/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/lib\ -Wl,-R/usr/lib\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/usr/pkgsrc/sysutils/xenkernel45/work/.wrapper/bin:/usr/pkgsrc/sysutils/xenkernel45/work/.buildlink/bin:/usr/pkgsrc/sysutils/xenkernel45/work/.tools/bin:/usr/pkgsrc/sysutils/xenkernel45/work/.gcc/bin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 PKG_SYSCONFDIR=/usr/pkg/etc HOME=/usr/pkgsrc/sysutils/xenkernel45/work/.home CPP=cpp LINK_ALL_LIBGCC_HACK= LOCALBASE=/usr/pkg NO_WHOLE_ARCHIVE_FLAG=-Wl,--no-whole-archive WHOLE_ARCHIVE_FLAG=-Wl,--whole-archive X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/usr/pkgsrc/sysutils/xenkernel45/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG= PKG_CONFIG_LIBDIR=/usr/pkgsrc/sysutils/xenkernel45/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/sysutils/xenkernel45/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/sysutils/xenkernel45/work/.pkg-config.log PKG_CONFIG_PATH= WRAPPER_DEBUG=no WRAPPER_UPDATE_CACHE=yes					 /usr/pkg/bin/gmake 		  		 -f Makefile debug=n build
/usr/pkg/bin/gmake -f Rules.mk _build
gmake[1]: Entering directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen'
/usr/pkg/bin/gmake -C tools
gmake[2]: Entering directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/tools'
/usr/pkg/bin/gmake symbols
gmake[3]: Entering directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/tools'
gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing  -Wdeclaration-after-statement -o symbols symbols.c
gmake[3]: Leaving directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/tools'
gmake[2]: Leaving directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/tools'
/usr/pkg/bin/gmake -f /usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/Rules.mk include/xen/compile.h
gmake[2]: Entering directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen'
 Xen 4.5.2
gmake[2]: Leaving directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen'
[ -e include/asm ] || ln -sf asm-x86 include/asm
[ -e arch/x86/efi ] && for f in boot.c runtime.c compat.c efi.h;\
	do ln -nsf ../../../common/efi/$f arch/x86/efi/; done;\
	true
/usr/pkg/bin/gmake -f /usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/Rules.mk -C include
gmake[2]: Entering directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/include'
for i in public/event_channel.h public/trace.h public/tmem.h public/platform.h public/physdev.h public/xen-compat.h public/grant_table.h public/callback.h public/memory.h public/features.h public/xen.h public/dom0_ops.h public/mem_event.h public/version.h public/sched.h public/xenoprof.h public/elfnote.h public/gcov.h public/xencomm.h public/nmi.h public/kexec.h public/vcpu.h public/io/xenbus.h public/io/libxenvchan.h public/io/pciif.h public/io/tpmif.h public/io/blkif.h public/io/usbif.h public/io/netif.h public/io/fbif.h public/io/fsif.h public/io/console.h public/io/ring.h public/io/protocols.h public/io/kbdif.h public/io/xs_wire.h public/io/vscsiif.h public/hvm/params.h public/hvm/hvm_info_table.h public/hvm/ioreq.h public/hvm/hvm_op.h public/hvm/hvm_xs_strings.h public/hvm/e820.h public/hvm/pvdrivers.h; do gcc -ansi -include stdint.h -Wall -W -Werror -S -o /dev/null -x c $i || exit 1; echo $i; done >headers.chk.new
mv headers.chk.new headers.chk
gmake[2]: Leaving directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/include'
/usr/pkg/bin/gmake -f /usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/Rules.mk -C arch/x86 asm-offsets.s
gmake[2]: Entering directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/arch/x86'
gmake[2]: *** No rule to make target 'x86_32/asm-offsets.c', needed by 'asm-offsets.s'.  Stop.
gmake[2]: Leaving directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/arch/x86'
Makefile:100: recipe for target '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/xen' failed
gmake[1]: *** [/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen/xen] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/sysutils/xenkernel45/work/xen-4.5.2/xen'
Makefile:26: recipe for target 'build' failed
gmake: *** [build] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/sysutils/xenkernel45
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/sysutils/xenkernel45
dct-clovis#
I don't understand why i've a issue !
I don't have indicator about issue comilation !

Regards
Philippe

Last edited by philo_neo71; 16th March 2016 at 02:03 AM.
Reply With Quote
  #2   (View Single Post)  
Old 7th March 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

Which platform are you building for?
NetBSD/amd64 or NetBSD/i386?

It won't build, much less run on NetBSD/i386.
Reply With Quote
  #3   (View Single Post)  
Old 7th March 2016
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

Xeon quad cores == i386
Reply With Quote
  #4   (View Single Post)  
Old 7th March 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

In my quick checking (test building), the last version of Xen that builds for i386 in pkgsrc is sysutils/xenkernel42.
Reply With Quote
  #5   (View Single Post)  
Old 7th March 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

I'm curious, why aren't you asking these questions on pkgsrc-users@netbsd.org or port-xen@netbsd.org. There are more people paying attention on the mailing lists.

(subscribe by sending a message to majordomo@netbsd.org, with the text of ``subscribe port-xen'' or ``subscribe pkgsrc-users'')
Reply With Quote
  #6   (View Single Post)  
Old 7th March 2016
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by schnoebe View Post
I'm curious, why aren't you asking these questions on port-xen@netbsd.org? There are more people paying attention on the mailing lists.
+1 although based on the monthly traffic his e-mail might be read by two-dozen people.

I am really curios if anybody actually runs NetBSD Dom0 in production. This is the only credible evidence that something like that is actually possible beyond an academic exercise.

https://gmplib.org/~tege/xen.html
Reply With Quote
  #7   (View Single Post)  
Old 7th March 2016
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

Hi,

i'm compile xentootls42 but i've issue thant i'm not understand this issue.
this is my output :
Code:
/usr/pkgsrc/sysutils/xentools42/work/xen-4.2.5/tools/../tools/Rules.mk:104: recipe for target 'subdirs-all' failed
gmake: *** [subdirs-all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/sysutils/xentools42
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/sysutils/xentools42
dct-clovis#
i never encounring this issue >> subdirs-all]


Regars
Philippe
Reply With Quote
  #8   (View Single Post)  
Old 7th March 2016
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

In http://daemonforums.org/showthread.p...7596#post57596 (an OpenBSD thread) you describe your quad core Xeon box as amd64. Or are you using a different box for NetBSD?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #9   (View Single Post)  
Old 8th March 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

Quote:
Originally Posted by Oko View Post
I am really curios if anybody actually runs NetBSD Dom0 in production. This is the only credible evidence that something like that is actually possible beyond an academic exercise.

https://gmplib.org/~tege/xen.html
I run a number of NetBSD Dom0's in production. One is a rather long in the tooth Xen 3.3, while two others are 4.5.
Reply With Quote
Old 9th March 2016
schnoebe schnoebe is offline
Real Name: Eric Schnoebelen
old timer
 
Join Date: Feb 2016
Location: Plano, TX, US
Posts: 33
Default

Quote:
Originally Posted by philo_neo71 View Post
i'm compile xentootls42 but i've issue thant i'm not understand this issue.
this is my output :
I just attempted a test build of xentools42 on my i386 NetBSD/6.1 DomU (I don't have a NetBSD/7 i386 instance handy) and was unable to reproduce your problem.

I'd suggest doing a "make clean-depends clean" and restarting your make.
Reply With Quote
Old 9th March 2016
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by schnoebe View Post
I run a number of NetBSD Dom0's in production. One is a rather long in the tooth Xen 3.3, while two others are 4.5.
Thank you Sir!
Reply With Quote
Old 15th March 2016
philo_neo71 philo_neo71 is offline
Spam Deminer
 
Join Date: Jul 2009
Posts: 278
Default

Quote:
Originally Posted by schnoebe View Post
I'm curious, why aren't you asking these questions on pkgsrc-users@netbsd.org or port-xen@netbsd.org. There are more people paying attention on the mailing lists.

(subscribe by sending a message to majordomo@netbsd.org, with the text of ``subscribe port-xen'' or ``subscribe pkgsrc-users'')

Where can i have a list of NetBSD's users ?

Regards
Philippe
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
secure DNS lookup howto gso OpenBSD Security 6 28th November 2014 08:19 AM
FreeBSD GPT howto graudeejs Guides 10 21st December 2010 12:24 AM
Amanda howto ? terryd FreeBSD General 5 14th December 2008 08:01 PM
HOWTO: Fluxbox from GIT vermaden Guides 6 3rd November 2008 12:13 PM
Can we get a howto wiki too? crayoxide Feedback and Suggestions 7 10th May 2008 09:00 PM


All times are GMT. The time now is 06:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick