Install FreeBSD from source into VM image

2017-08-14 Thread Panagiotes Mousikides

Hello everybody!

I am working on the FreeBSD test suite, and need to create an image file 
from source.  How can I do that?


I need to run something similar to make installkernel && make 
installworld with an image file as the target, such that the end result 
is a ready-made FreeBSD system that can be started up with bhyve.  How 
can I do that, including creating the correct /etc files, and the 
correct boot code and partitioning?


Following the FreeBSD handbook [0] didn't work, as that concerns 
updating the current system from source only.


[0]: https://www.freebsd.org/doc/handbook/makeworld.html

Any help would be kindly appreciated!

Best regards,
Panagiotes

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Install FreeBSD from source into VM image

2017-08-14 Thread Nicolas Embriz
Hi, maybe this can help you to start https://fabrik.red,
https://github.com/fabrik-red/images a set of scripts to create an image.

regards.

On Mon, Aug 14, 2017 at 8:42 PM, Panagiotes Mousikides 
wrote:

> Hello everybody!
>
> I am working on the FreeBSD test suite, and need to create an image file
> from source.  How can I do that?
>
> I need to run something similar to make installkernel && make installworld
> with an image file as the target, such that the end result is a ready-made
> FreeBSD system that can be started up with bhyve.  How can I do that,
> including creating the correct /etc files, and the correct boot code and
> partitioning?
>
> Following the FreeBSD handbook [0] didn't work, as that concerns updating
> the current system from source only.
>
> [0]: https://www.freebsd.org/doc/handbook/makeworld.html
>
> Any help would be kindly appreciated!
>
> Best regards,
> Panagiotes
>
> ___
> freebsd-hack...@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Install FreeBSD from source into VM image

2017-08-14 Thread Matt Joras
On 08/14/2017 11:42, Panagiotes Mousikides wrote:
> I am working on the FreeBSD test suite, and need to create an image
> file from source.  How can I do that?
>
> I need to run something similar to make installkernel && make
> installworld with an image file as the target, such that the end
> result is a ready-made FreeBSD system that can be started up with
> bhyve.  How can I do that, including creating the correct /etc files,
> and the correct boot code and partitioning?
>  

See release(7), https://www.freebsd.org/cgi/man.cgi?release(7). The
relevant section is under virtual machine disk images and the vm-image
target. The VMFORMATS for bhyve is "raw". That will generate an image
that "just works" with vmrun.sh

Matt Joras

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: buildworld fails while building static clang library

2017-08-14 Thread Aijaz Baig
Hi Ed

Yes how do I get those logs? I will be checking dmesg from time to time (is
there a way to tail it by the way??) but then how do I enable verbose
logging while building world? I tried finding out the same by searching on
the internet and by reading the manual page for make.conf but couldn't
figure it out

Is it even possible to have a verbose output?

On Mon, Aug 14, 2017 at 7:36 PM, Ed Maste  wrote:

> On 7 August 2017 at 00:32, Aijaz Baig  wrote:
> > That was some pretty relevant information Ed. Thanks.
>
> Even though it's not a direct cause of the problem you encountered I
> wanted to make sure a there was comprehensive reply to Dimitry's
> question.
>
> > Nonetheless, as I have indicated in my previous email, I hit an error
> quite
> > late in the process now (stage 4.3) when it is apparently linking
> h_raw.o
> > into h_raw.full ( is this linking by the way? what is the .full file
> > there??)
>
> Yes, this is a link step - the .full file is a binary or library with
> debug data included, which is then split into a .debug file containing
> only the debug data and the binary or library with no extension.
>
> There's no indication of what the error is in your log excerpt; are
> there any messages in dmesg from the time of the build?
>



-- 

Best Regards,
Aijaz Baig
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [pkg base][pormaster] Origin for base packages = "base"

2017-08-14 Thread Michael Zhilin
Hi Ilya,

I saw same issue yesterday.

I suppose it's easy to fix postmaster, but pkgbase is still experimental.

Best regards,
 Michael

14 авг. 2017 г. 2:57 ПП пользователь "Ilya A. Arkhipov" 
написал:

> Hi there,
>
> After upgrade my system(r322368) to pkg-base system(have 780 packages for
> world and kernel) I got next issue:
> [11:53am] root:/root # portmaster -a
> ===>>> Gathering distinfo list for installed ports
>
> ===>>> Starting check of installed ports for available updates
>
>
> ===>>> Is /usr/ports/base/Makefile missing?
> ===>>> Aborting update
>
> [11:53am] root:/root # cat /usr/ports/base/Makefile
> # $FreeBSD: head/base/Makefile 425903 2016-11-11 18:51:42Z bapt $
>
> # Never add SUBDIRS here as the ports should not be connected to the
> build
> #
> .include 
>
>
> Looks like it related with Origin in base ports:
>
> pkg info -f FreeBSD-kernel-microkernel-12.0.s20170811101514
> FreeBSD-kernel-microkernel-12.0.s20170811101514
> Name   : FreeBSD-kernel-microkernel
> Version: 12.0.s20170811101514
> Installed on   : Fri Aug 11 18:00:03 2017 MSK
> Origin : base  <===
> Categories : base
> Licenses   : BSD2CLAUSE
> Maintainer : r...@freebsd.org
> WWW: https://www.FreeBSD.org
> Comment: FreeBSD MICROKERNEL kernel
> Annotations:
> repo_type  : binary
> repository : FreeBSD-base
> Flat size  : 115MiB
> Description:
> FreeBSD MICROKERNEL kernel
>
>
> portmaster do a:
> port_ver=`pm_make -V PKGNAME`
> [ -z "$port_ver" ] && fail "Is $pd/$origin/Makefile
> missing?"
> and sure it will empty for $origin = base.
>
> For me I did:
> 1767 >---if [ "$origin" = "base" ]; then
> 1768 >--->---:
>
> Anybody have the same issue?
>
> --
> With Best Regards,
> Ilya A. Arkhipov
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: buildworld fails while building static clang library

2017-08-14 Thread Ed Maste
On 7 August 2017 at 00:32, Aijaz Baig  wrote:
> That was some pretty relevant information Ed. Thanks.

Even though it's not a direct cause of the problem you encountered I
wanted to make sure a there was comprehensive reply to Dimitry's
question.

> Nonetheless, as I have indicated in my previous email, I hit an error quite
> late in the process now (stage 4.3) when it is apparently linking  h_raw.o
> into h_raw.full ( is this linking by the way? what is the .full file
> there??)

Yes, this is a link step - the .full file is a binary or library with
debug data included, which is then split into a .debug file containing
only the debug data and the binary or library with no extension.

There's no indication of what the error is in your log excerpt; are
there any messages in dmesg from the time of the build?
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


[pkg base][pormaster] Origin for base packages = "base"

2017-08-14 Thread Ilya A . Arkhipov
Hi there,

After upgrade my system(r322368) to pkg-base system(have 780 packages for world 
and kernel) I got next issue:
[11:53am] root:/root # portmaster -a
===>>> Gathering distinfo list for installed ports

===>>> Starting check of installed ports for available updates


===>>> Is /usr/ports/base/Makefile missing?
===>>> Aborting update

[11:53am] root:/root # cat /usr/ports/base/Makefile
# $FreeBSD: head/base/Makefile 425903 2016-11-11 18:51:42Z bapt $

# Never add SUBDIRS here as the ports should not be connected to the build
#
.include 


Looks like it related with Origin in base ports:

pkg info -f FreeBSD-kernel-microkernel-12.0.s20170811101514
FreeBSD-kernel-microkernel-12.0.s20170811101514
Name   : FreeBSD-kernel-microkernel
Version: 12.0.s20170811101514
Installed on   : Fri Aug 11 18:00:03 2017 MSK
Origin : base  <===
Categories : base
Licenses   : BSD2CLAUSE
Maintainer : r...@freebsd.org
WWW: https://www.FreeBSD.org
Comment: FreeBSD MICROKERNEL kernel
Annotations:
repo_type  : binary
repository : FreeBSD-base
Flat size  : 115MiB
Description:
FreeBSD MICROKERNEL kernel


portmaster do a:
port_ver=`pm_make -V PKGNAME`
[ -z "$port_ver" ] && fail "Is $pd/$origin/Makefile missing?"
and sure it will empty for $origin = base.

For me I did:
1767 >---if [ "$origin" = "base" ]; then
 
1768 >--->---:

Anybody have the same issue?

-- 
With Best Regards,
Ilya A. Arkhipov
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [poudriere] poudriere non-responsive, zombie sh

2017-08-14 Thread Dimitry Andric
On 14 Aug 2017, at 08:19, O. Hartmann  wrote:
> 
> Running FreeBSD 12.0-CURRENT #87 r322472: Sun Aug 13 21:59:36 CEST 2017 amd64
> with jail of the same revision, lately the poudriere build system started to
> get inresponsive when hitting Ctrl-C or, very often, starts to stop when
> showing up which package is deleted or has to be rebuild due to changed
> dependencies.
...
> Seems therer is an issue lately introduced.

Can you please check whether the problem is caused by this recent commit
to security/sudo, which changes the signal handling:

https://svnweb.freebsd.org/ports?view=revision=447784

-Dimitry



signature.asc
Description: Message signed with OpenPGP


[poudriere] poudriere non-responsive, zombie sh

2017-08-14 Thread O. Hartmann
Running FreeBSD 12.0-CURRENT #87 r322472: Sun Aug 13 21:59:36 CEST 2017 amd64
with jail of the same revision, lately the poudriere build system started to
get inresponsive when hitting Ctrl-C or, very often, starts to stop when
showing up which package is deleted or has to be rebuild due to changed
dependencies. usually, the list of deleted/to-be-rebuild packages show up and
then the output flows as packages are build. This stops somehow in the middle
of the output.

Checking the box then via ps/top, I see the a "sh" eating up a tremendous
portion of the CPU time. I have a 4 core/8 threads XEON (IvyBridge based) with
16 GB of RAM using ZFS on a RAIDZ for the poudriere stuff (which induced never
problems in the past). 

When havin hit the Ctrl-C key, there are only two jails left not dying, I have
to use "poudriere jail -k" to kill the jail. But then, the zombie-shell (sh)
remains eating CPU time - no idea wht the shell is doing so far.

This strange behaviour occured within the last two weeks on several poudriere
hosts the same time with unchanged configurations working prior to this
observation.

Waiting long enough - in some cases hours! - the shell will finally die (after
Ctrl-C). I haven't checked whether the poudriere jobs work to the end in the
back when not showing progress on the terminal, I got impatient after a couple
of hours and stopped them.

Seems therer is an issue lately introduced.

Can someone shed some light on it? The problem is erratic - I can not easily
reproduce it, and I also can not say whether it is a ZFS or shell or kernel
issue.


kind regards,

Oliver
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"