Chris Lalancette
2008-Jun-11 09:26 UTC
[Ovirt-devel] [PATCH]: Shrink the managed node image to under 64MB
All, Attached is a patch that cleans up the managed node image some more, so that the ISO size is 57MB, the overall /tftpboot directory (for PXE) is 62MB, and the runtime image (right after boot) is ~152MB. It's a larger patch than it looks, mostly because I re-organized the way we were getting rid of stray kernel modules. Note that keeping the image this small depends on 3 things: a) Re-writing the /sbin/ovirt-identify-node script in bash or C, which I believe Darryl has already started on. This is because I explicitly remove python. b) Having a libvirt version that *doesn't* require python. This is a little tricky; the version of libvirt currently in updates (0.4.2-3) does require python since it requires lokkit. However, the version in updates-testing (0.4.2-4) doesn't require python, since lokkit was dropped. That being said, I believe the plan is for libvirt to re-enable lokkit in the future, so we will have to watch out for that. c) Having a collectd RPM that doesn't require rrdtool. Alan and I split the collectd RPM up yesterday, so you can install collectd without rrdtool, but that change has not yet been pushed to the repositories. Both b) and c) can be currently solved by pointing at http://ovirt.org/repos/ovirt/9/x86_64 in your repos.ks, since we are hosting the updated packages for both libvirt and collectd there. We will need to fix ovirt-identify-node asap to solve a). Chris Lalancette -------------- next part -------------- A non-text attachment was scrubbed... Name: ovirt-shrink-managed-node.patch Type: text/x-patch Size: 3940 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20080611/1bd8b6f3/attachment.bin>
Daniel P. Berrange
2008-Jun-11 09:31 UTC
[Ovirt-devel] [PATCH]: Shrink the managed node image to under 64MB
On Wed, Jun 11, 2008 at 11:26:51AM +0200, Chris Lalancette wrote:> All, > Attached is a patch that cleans up the managed node image some more, so > that the ISO size is 57MB, the overall /tftpboot directory (for PXE) is 62MB, > and the runtime image (right after boot) is ~152MB. > It's a larger patch than it looks, mostly because I re-organized the way we > were getting rid of stray kernel modules. > Note that keeping the image this small depends on 3 things: > > a) Re-writing the /sbin/ovirt-identify-node script in bash or C, which I > believe Darryl has already started on. This is because I explicitly remove python. > > b) Having a libvirt version that *doesn't* require python. This is a little > tricky; the version of libvirt currently in updates (0.4.2-3) does require > python since it requires lokkit. However, the version in updates-testing > (0.4.2-4) doesn't require python, since lokkit was dropped. That being said, I > believe the plan is for libvirt to re-enable lokkit in the future, so we will > have to watch out for that.Ok, this pain with lokkit has gone too far. It must die a horrible and flaming death. All we're using it for is to persist the iptables config we need, which basically comes down to writing a simple text file. We really don't need python todo that. Dan. -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
Alan Pevec
2008-Jun-11 10:49 UTC
[Ovirt-devel] [PATCH]: Shrink the managed node image to under 64MB
Chris Lalancette wrote:> Attached is a patch that cleans up the managed node image some more, so > that the ISO size is 57MB, the overall /tftpboot directory (for PXE) is 62MB, > and the runtime image (right after boot) is ~152MB.ACK - this makes shell version of /sbin/ovirt-identify-node a priority
Perry N. Myers
2008-Jun-11 14:00 UTC
[Ovirt-devel] [PATCH]: Shrink the managed node image to under 64MB
Chris Lalancette wrote:> All, > Attached is a patch that cleans up the managed node image some more, so > that the ISO size is 57MB, the overall /tftpboot directory (for PXE) is 62MB, > and the runtime image (right after boot) is ~152MB. > It's a larger patch than it looks, mostly because I re-organized the way we > were getting rid of stray kernel modules. > Note that keeping the image this small depends on 3 things: > > a) Re-writing the /sbin/ovirt-identify-node script in bash or C, which I > believe Darryl has already started on. This is because I explicitly remove python. > > b) Having a libvirt version that *doesn't* require python. This is a little > tricky; the version of libvirt currently in updates (0.4.2-3) does require > python since it requires lokkit. However, the version in updates-testing > (0.4.2-4) doesn't require python, since lokkit was dropped. That being said, I > believe the plan is for libvirt to re-enable lokkit in the future, so we will > have to watch out for that. > > c) Having a collectd RPM that doesn't require rrdtool. Alan and I split the > collectd RPM up yesterday, so you can install collectd without rrdtool, but that > change has not yet been pushed to the repositories. > > Both b) and c) can be currently solved by pointing at > http://ovirt.org/repos/ovirt/9/x86_64 in your repos.ks, since we are hosting the > updated packages for both libvirt and collectd there. We will need to fix > ovirt-identify-node asap to solve a).ACK on visual review though I don't have time to test it myself presently... Perry
Chris Lalancette
2008-Jun-12 09:17 UTC
[Ovirt-devel] [PATCH]: Shrink the managed node image to under 64MB
Chris Lalancette wrote:> All, > Attached is a patch that cleans up the managed node image some more, so > that the ISO size is 57MB, the overall /tftpboot directory (for PXE) is 62MB, > and the runtime image (right after boot) is ~152MB. > It's a larger patch than it looks, mostly because I re-organized the way we > were getting rid of stray kernel modules.Committed (actually, committed yesterday, but forgot to send out a notice). Chris Lalancette