I have febootstrap ported to and working on Arch, but there are a few packages missing from the main Arch repos, and the packages need to be in the main repos for the febootstrap sequence to work. So I have a few quick questions, first, how well does the supermin app work, without augeas, are zfs, gfs and hfs used only for mounting those filesystems inside the vm image, and I noticed that there is an option to load a mirror for fedora to use when building, can that option be used to pass data into the package manager handler? In which case I can solve everything by adding a secondary binary repository location to the package build. But beside these problems, the pacman package handler is working! Thanks -Tom
On Thu, Dec 09, 2010 at 12:08:23AM -0700, Thomas S Hatch wrote:
I have febootstrap ported to and working on Arch, but there are a few packages missing from the main Arch repos, and the packages need to be in the main repos for the febootstrap sequence to work. So I have a few quick questions, first, how well does the supermin app work, without augeas, are zfs, gfs and hfs used only for mounting those filesystems inside the vm image,
It's possible to use libguestfs without various features compiled in. These features can be detected at runtime by programs using the API: http://libguestfs.org/guestfs.3.html#availability The lack of filesystem support just means that programs will encounter an error when they try to mount or create those filesystems. For the ones you mentioned it's not really important. Augeas (lack of) is going to be a problem: currently the inspection API will fail if Augeas is not available in the appliance. This is basically a bug in the inspection API: http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/inspect.c;h=8b21026830... but instead of fixing this I think it's better to package Augeas since it's a tremendously useful tool for distros to include.
and I noticed that there is an option to load a mirror for fedora to use when building, can that option be used to pass data into the package manager handler?
I believe this option should be gone with the latest building code. Maybe I missed something? We use the ./configure --with-febootstrap-yum-config option when building on Fedora builders, where there is no network access. The way it works is convoluted, but I suggest starting here: http://pkgs.fedoraproject.org/gitweb/?p=libguestfs.git;a=blob;f=libguestfs.s...
In which case I can solve everything by adding a secondary binary repository location to the package build.
But beside these problems, the pacman package handler is working!
Excellent, look forward to the patches :-) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
On Thu, Dec 9, 2010 at 1:30 AM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Thu, Dec 09, 2010 at 12:08:23AM -0700, Thomas S Hatch wrote:
I have febootstrap ported to and working on Arch, but there are a few packages missing from the main Arch repos, and the packages need to be in the main repos for the febootstrap sequence to work. So I have a few quick questions, first, how well does the supermin app work, without augeas, are zfs, gfs and hfs used only for mounting those filesystems inside the vm image,
It's possible to use libguestfs without various features compiled in. These features can be detected at runtime by programs using the API:
http://libguestfs.org/guestfs.3.html#availability
The lack of filesystem support just means that programs will encounter an error when they try to mount or create those filesystems. For the ones you mentioned it's not really important.
Augeas (lack of) is going to be a problem: currently the inspection API will fail if Augeas is not available in the appliance. This is basically a bug in the inspection API:
http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/inspect.c;h=8b21026830...
but instead of fixing this I think it's better to package Augeas since it's a tremendously useful tool for distros to include.
and I noticed that there is an option to load a mirror for fedora to use when building, can that option be used to pass data into the package manager handler?
I believe this option should be gone with the latest building code. Maybe I missed something?
We use the ./configure --with-febootstrap-yum-config option when building on Fedora builders, where there is no network access. The way it works is convoluted, but I suggest starting here:
http://pkgs.fedoraproject.org/gitweb/?p=libguestfs.git;a=blob;f=libguestfs.s...
In which case I can solve everything by adding a secondary binary repository location to the package build.
But beside these problems, the pacman package handler is working!
Excellent, look forward to the patches :-)
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
I found a better way! Here are the patches, one for febootstrap and one for the packages list in libguestfs. One quick question about the packages, where do I pass the option to use the ArchLinux section in the packages list? Also, thanks for being patient with me and helping me get this put together. :) -Tom
I found a better way! Here are the patches, one for febootstrap and one for the packages list in libguestfs.
One quick question about the packages, where do I pass the option to use the ArchLinux section in the packages list?
IMHO should add something in configure.ac, If I got you meaning right, :-)
Also, thanks for being patient with me and helping me get this put together. :)
-Tom
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
Done, Thanks! On Thu, Dec 9, 2010 at 10:47 PM, Osier Yang <jyang@redhat.com> wrote:
I found a better way! Here are the patches, one for febootstrap and one for the packages list in libguestfs.
One quick question about the packages, where do I pass the option to use the ArchLinux section in the packages list?
IMHO should add something in configure.ac, If I got you meaning right, :-)
Also, thanks for being patient with me and helping me get this put together. :)
-Tom
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
On Thu, Dec 09, 2010 at 10:12:08PM -0700, Thomas S Hatch wrote:
One quick question about the packages, where do I pass the option to use the ArchLinux section in the packages list?
I've pushed the libguestfs patch, with also a change to ./configure so that it chooses the correct distro macro: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=8dafeaa477f9e3d2fde8... Thanks for that patch. - - - The febootstrap patch is problematic. You can't in general reconstruct packages from what is installed on disk, because the administrator may edit configuration files. What we do for Fedora and Debian is to download the original packages and pull out the original configuration files (only) which are then packaged into 'base.img'. So if I understand what you're trying to do, then I'm afraid it won't work. It's better to stick with downloading the packages and unpacking them. This part of the patch:
@@ -109,7 +100,7 @@ let pacman_list_files pkg = (* No per-file metadata like in RPM, but we can synthesize it * from the path. *) - let config = statbuf.st_kind = S_REG && string_prefix "/etc/" path in + let config = statbuf.st_kind = S_REG && string_prefix path "/etc/" in
let mode = statbuf.st_perm in
I discovered this bug yesterday and have applied it: http://git.annexia.org/?p=febootstrap.git;a=commitdiff;h=bcbbfa520a49967b330... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
On Fri, Dec 10, 2010 at 09:34:26AM +0000, Richard W.M. Jones wrote:
What we do for Fedora and Debian is to download the original packages and pull out the original configuration files (only) which are then packaged into 'base.img'.
This explains what's going on in more detail: http://libguestfs.org/febootstrap.8.html#supermin_appliances Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
于 2010年12月09日 15:08, Thomas S Hatch 写道:
I have febootstrap ported to and working on Arch, but there are a few packages missing from the main Arch repos, and the packages need to be in the main repos for the febootstrap sequence to work. So I have a few quick questions, first, how well does the supermin app work, without augeas, are zfs, gfs and hfs used only for mounting those filesystems inside the vm image, and I noticed that there is an option to load a mirror for fedora to use when building, can that option be used to pass data into the package manager handler? In which case I can solve everything by adding a secondary binary repository location to the package build.
But beside these problems, the pacman package handler is working!
Thanks
-Tom
pretty glad to see these projects are ported to Arch, as I was a Arch user for a time, and planning to use it on my another laptop again.. - Osier
I will let you know when it is ready in the Arch AUR, one it is up vote for it! On Thu, Dec 9, 2010 at 10:43 PM, Osier Yang <jyang@redhat.com> wrote:
于 2010年12月09日 15:08, Thomas S Hatch 写道:
I have febootstrap ported to and working on Arch, but there are a few
packages missing from the main Arch repos, and the packages need to be in the main repos for the febootstrap sequence to work. So I have a few quick questions, first, how well does the supermin app work, without augeas, are zfs, gfs and hfs used only for mounting those filesystems inside the vm image, and I noticed that there is an option to load a mirror for fedora to use when building, can that option be used to pass data into the package manager handler? In which case I can solve everything by adding a secondary binary repository location to the package build.
But beside these problems, the pacman package handler is working!
Thanks
-Tom
pretty glad to see these projects are ported to Arch, as I was a Arch user for a time, and planning to use it on my another laptop again..
- Osier
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
participants (3)
-
Osier Yang -
Richard W.M. Jones -
Thomas S Hatch