Package Details: libvirt-sandbox 0.8.0-6

Git Clone URL: https://aur.archlinux.org/libvirt-sandbox.git (read-only, click to copy)
Package Base: libvirt-sandbox
Description: An application sandbox toolkit
Upstream URL: http://sandbox.libvirt.org/
Licenses: LGPL
Submitter: ackalker
Maintainer: dreieck
Last Packager: dreieck
Votes: 5
Popularity: 0.113415
First Submitted: 2015-10-28 10:52 (UTC)
Last Updated: 2023-08-01 11:24 (UTC)

Latest Comments

1 2 Next › Last »

dreieck commented on 2023-08-01 11:21 (UTC) (edited on 2023-08-01 11:21 (UTC) by dreieck)

Ahoj @patlefort,

Thanks for the fixup, it also works for me.
Fix is added to the PKGBUILD.

But I still have to set --without-lzma, otherwise I get linking failure with

/usr/bin/ld: cannot find -llzma: No such file or directory

if anyone has an idea how to fix it, please report here.

Regards!

patlefort commented on 2023-08-01 00:09 (UTC)

It can be worked around with the following patch to the PKGBUILD (to disable lzma):

diff --git a/PKGBUILD b/PKGBUILD
index b580557..4ff9cea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@ arch=('i686' 'x86_64')
 url="http://sandbox.libvirt.org/"
 license=('LGPL')
 depends=('libvirt-glib' 'libselinux' 'cpio')
-makedepends=('gobject-introspection' 'intltool' 'pod2man' 'rpcsvc-proto' 'xz-static')
+makedepends=('gobject-introspection' 'intltool' 'pod2man' 'rpcsvc-proto')
 optdepends=('dhclient: for sandbox network configuration using DHCP')
 source=(
     http://libvirt.org/sources/sandbox/$pkgname-$pkgver.tar.gz{,.asc}
@@ -30,6 +30,7 @@ prepare() {
   cd "$srcdir/$pkgname-$pkgver"
   patch -Np1 -i "${srcdir}/0001-builder-Use-prefix-to-identify-lib-path.patch"
   patch -Np1 -i "${srcdir}/0002-Use-boot-vmlinuz-linux-as-default-kernel-path.patch"
+  sed -i 's/as_fn_error $? "static LZMA is required/###/' 'configure'
 }

 build() {

As to why it's failing, I don't know yet. I can't link a simple test program like the configure script is trying to do so maybe something is wrong in the xz-static package.

dreieck commented on 2023-07-31 22:35 (UTC) (edited on 2023-07-31 23:00 (UTC) by dreieck)

Somehow it fails with

configure: error: static LZMA is required in order to build virt-sandbox-init-qemu

Even if xz-static is installed. Even with --disable-lzma.

If anyone has an idea how to fix it, please comment.

This package is BROKEN for now.

dreieck commented on 2023-07-11 20:40 (UTC)

Build fails for me with /bin/sh: line 1: pod2man: command not found.

pod2man is needed as make dependency, please add it to the makedepends array.

Thanks for maintaining,
regards.

k0rd1 commented on 2021-12-21 20:14 (UTC)

The build aborted because pod2man was not available.

You should add pod2man to the dependencies.

RX14 commented on 2021-03-18 15:29 (UTC)

@dreieck libvirt-sandbox builds binaries which are injected into VMs, so these binaries must be staticly linked to function properly. So there has to be static versions of some dependencies too.

dreieck commented on 2021-03-18 13:09 (UTC)

Why is xz-static a makedepend? Why cannot standard xz be used?

chuck-r commented on 2021-01-10 18:55 (UTC) (edited on 2021-01-10 18:59 (UTC) by chuck-r)

@svinto, to fix that error you have to enable some type of kernel security module. After much debugging, I found the issue lies in a call to getcon() returning -1 (presumably because no kernel security was set up on my machine? -- I wasn't able to find the source for that function anywhere). Anyway, through much keyboard grinding and finally a little deductive reasoning, I found that simply enabling apparmor in the kernel fixed the issue. See https://wiki.archlinux.org/index.php/AppArmor#Installation. That still leaves me with another issue that I haven't bothered resolving. From the man page (-r option): NB. "DIR" must contain a matching install of the libvirt-sandbox package. This restriction may be lifted in a future version. I think it's due to my target image not having the package (it's Debian for Christ's sake) as to why it gets past the "Unable to get SELinux context of user: Invalid argument" but hangs indefinitely on a 20M image.

svinto commented on 2020-10-22 18:20 (UTC)

I'm getting SELinux errors when virt-manager tries to run virt-sandbox. I'm not sure if this is a problem with this AUR package, or if I have done something wrong. Any help is appreciated.

I tried to use virt-manager to create a LXC operating system container, and used the source URI: docker://archlinux

When I execute the command that virt-manager tries to run I get the same error as virt-manager:

$ virt-sandbox --security=inherit -c qemu:///session --name=bootstrap_156213 -m host-bind:/mnt=/home/svintoo/.local/share/libvirt/filesystems/arch-container -- /bin/tar xf /home/svintoo/.cache/virt-bootstrap/docker_images/cb935d5e749430e85932672b87cad9b38f00b683af62df0c8c08b6694db381e7 -C /mnt --exclude dev/* --exclude */.wh.* --overwrite --absolute-names
Unable to parse security: Unable to get SELinux context of user: Invalid argument

bar0metr commented on 2019-04-08 07:24 (UTC)

Please, add xz-static-git as makedepend Anyway, build fails