Tag Archives: suse

OpenSUSE images are now supplied in the default virt-builder install

Since virt-builder 1.31.10, C├ędric Bosdonnat has added a repository of OpenSUSE images.

Here’s how to install OpenSUSE Leap in about 4 minutes:

$ virt-builder -l
...
opensuse-13.1            x86_64     openSUSE 13.1
opensuse-13.2            x86_64     openSUSE 13.2
opensuse-42.1            x86_64     openSUSE Leap 42.1
opensuse-tumbleweed      x86_64     openSUSE Tumbleweed

$ virt-builder opensuse-42.1
[   1.2] Downloading: http://download.opensuse.org/repositories/Virtualization:/virt-builder-images/images/openSUSE-Leap-42.1.x86_64-0.0.1-Build1.6.qcow2.xz
######################################################################## 100.0%
[ 133.1] Planning how to build this image
[ 133.1] Uncompressing
[ 142.5] Converting qcow2 to raw
[ 146.4] Opening the new disk
[ 177.3] Setting a random seed
[ 177.3] Setting passwords
virt-builder: Setting random password of root to ***
[ 178.1] Finishing off
                   Output file: opensuse-42.1.img
                   Output size: 6.0G
                 Output format: raw
            Total usable space: 5.8G
                    Free space: 5.0G (85%)

$ virt-install --import --name opensuse \
    --ram 4096 \
    --disk opensuse-42.1.img,format=raw \
    --os-variant opensuse13.1
Advertisements

2 Comments

Filed under Uncategorized

libguestfs binaries for all Linux distros

I uploaded some distro-independent Linux/x86-64 binaries of libguestfs, guestfish, guestmount and the virt-* tools. Be sure to read the README file first.

These are a little experimental and I’d welcome feedback. I got them to work fine on Debian 5.0 after upgrading glibc and Perl, but YMMV.

Update: OpenSUSE 11.3 working.

The version of KVM supplied is too old (doesn’t support virtio-serial) so I had to compile qemu from git and drop the following qemu wrapper in place:

#!/bin/sh -
qemudir=/home/rjones/d/qemu
exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "$@"

The next problem which had me confused for a very long time was that qemu kept aborting while allocating memory. After trying things like adding swap, playing with overcommit settings and so on, it turned out that SUSE uses some really silly, and very small default ulimits for virtual memory. You have to do:

ulimit -Hv unlimited
ulimit -Sv unlimited
ulimit -Hm unlimited
ulimit -Sm unlimited

Update: Ubuntu 10.04 working.

As with SUSE, the version of KVM shipped by Ubuntu is too old to support virtio-serial. All I had to do was replace it with qemu from git and the same qemu wrapper above.

After that guestfish works fine.

If you need the Perl tools, then you have to upgrade Perl to 5.12.1, install hivex, and link libpcre.so.0 -> libpcre.so.3.

Leave a comment

Filed under Uncategorized