Tip: Use virt-builder to install Fedora packages from updates-testing

Virt-builder ≥ 1.26 now lets you flexibly edit configuration files before you install packages. (1.24 didn’t). So finally you can enable the Fedora updates-testing repository and build a guest with packages from that:

$ virt-builder fedora-20 \
  --edit '/etc/yum.repos.d/fedora-updates-testing.repo:
            s/enabled=0/enabled=1/' \
  --install git,emacs,yum-utils,net-tools,libguestfs
[   0.0] Downloading: http://libguestfs.org/download/builder/fedora-20.xz
[   1.0] Planning how to build this image
[   1.0] Uncompressing
[  11.0] Opening the new disk
[  16.0] Setting a random seed
[  16.0] Updating core packages
[ 269.0] Editing: /etc/yum.repos.d/fedora-updates-testing.repo
[ 269.0] Installing packages: git emacs yum-utils net-tools libguestfs
[ 349.0] Setting passwords
Setting random password of root to ***
[ 349.0] Finishing off
Output: fedora-20.img
Output size: 4.0G
Output format: raw
Total usable space: 5.2G
Free space: 3.7G (71%)

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.