[lxc-users] how do you create an image from scratch?

T.C 吳天健 tcwu2005 at gmail.com
Wed Apr 26 15:01:19 UTC 2017


It's really a good question and I expect some real expert explain it.

I did it from scratch before ,basically I copied file from  /,ignore files
like device nodes, sockets, and do debugging if needed .

2017年4月26日 下午10:40,"Spike" <spike at drba.org>寫道:

> yeah I've seen that link before and used the lxd image publish / export
> approach (it's what I'm doing right now in fact). However that post isn't
> very clear on what it takes to start from scratch. There is a section on
> "Manually building an image", but the critical step (2), says: "Configure
> anything that’s needed for the distribution to work properly in a container
> (if anything is needed)." and that's really what I'm asking here.
>
> Because I have everything set up with a fair amount of "magic" to pxe boot
> and configure bare metal and KVM instances, I'd like to use that process
> and avoid having to write more to create the rootfs.
>
> So maybe a better question would be, given a qcow2 (or raw) image created
> with kvm, what are the necessary steps to convert that so that it can be
> used inside a container? that said having the same steps starting from
> debootstrap could be handy.
>
> hope that clarifies my intention and situation.
>
> thanks,
>
> Spike
>
> On Wed, Apr 26, 2017 at 7:17 AM Matlink <matlink at matlink.fr> wrote:
>
>> https://stgraber.org/2016/03/30/lxd-2-0-image-management-512/
>>
>> Le 26/04/2017 à 16:15, Spike a écrit :
>>
>> Dear all,
>>
>> long story short, I'd love to roll my own image starting from a standard
>> mini.iso, ie not a cloud image (happy to expand on the reasoning if there's
>> interest, but otherwise keeping it short).
>>
>> can somebody provide a list of steps in order to achieve that?
>>
>> thanks,
>>
>> Spike
>>
>>
>> _______________________________________________
>> lxc-users mailing listlxc-users at lists.linuxcontainers.orghttp://lists.linuxcontainers.org/listinfo/lxc-users
>>
>>
>> _______________________________________________
>> lxc-users mailing list
>> lxc-users at lists.linuxcontainers.org
>> http://lists.linuxcontainers.org/listinfo/lxc-users
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170426/d0a2469e/attachment.html>


More information about the lxc-users mailing list