Custom Qcow2 Images
Pete Wright
pete at nomadlogic.org
Mon Jul 15 01:31:00 UTC 2019
On 7/14/19 4:59 PM, Allan Jude wrote:
> On 2019-07-14 19:37, Pete Wright wrote:
>> Hey there folks,
>> I am wondering if anyone has any pointers on creating a custom Qcow2
>> FreeBSD that is akin in size to nanobsd. I have an environment where we
>> need to run a single binary and want to keep our disk image as small as
>> possible. It will run inside a user-mode Qemu process. Reading through
>> the nanobsd script it seems that it expects a raw disk for installation,
>> so I do think using the nanobsd script itself well work well. Has
>> anyone else done something similar? My goal is to have a disk image
>> that is around 500MB.
>>
>> Thanks in advance!
>> -pete
>>
> I would expect the answer is `poudriere image` with a src.conf with many
> WITHOUT_* knobs to disable things you don't need to get the image down
> in size. There is likely a list of such knobs you could borrow from nanobsd.
>
Thanks Allan - I hadn't thought of using poudriere in this way, I'll
give this a shot tonight!
-p
--
Pete Wright
pete at nomadlogic.org
@nomadlogicLA
More information about the freebsd-virtualization
mailing list