0
Cubanpit

qemu not detected - xenial env in systemd-nspawn

Recommended Posts

Hi,

I'm trying to compile an Armbian image for OdroidC2 with btrfs rootfs, I created an Ubuntu Xenial container with systemd-nspawn as building environment.

The building process reports these errors:

ERROR in function prepare_partitions debootstrap-ng.sh:374 err
Unable to find free loop device  err
Process terminated  info
ERROR in function unmount_on_exit debootstrap-ng.sh:525 err
debootstrap-ng was interrupted  err
Process terminated  info

I've done a little search and found that there are no loop device in a default container and that's impossible to create a new one with:

mknod /dev/loop0 b 7 0

The answer is:

mknod: /dev/loop0: Operation not permitted

So I tried to boot the container with the option --capability=CAP_MKNOD but the answer remains the same.

 

Finally the question: there is anyone who have built Armbian in a systemd container successfully?

 

[OT]

I add another error during build process (I don't know if it is caused by the previous error)

update-binfmts: warning: qemu-arm not in database of installed binary formats.
update-binfmts: exiting due to previous errors
update-binfmts: warning: qemu-aarch64 not in database of installed binary formats.
update-binfmts: exiting due to previous errors

This cause many issues when executing ARM binary later in the process.

[/OT]

Share this post


Link to post
Share on other sites

Would just like to bump this topic, as I'm wondering if there is anyone who knows how to, or has managed to get around the "Unable to find free loop device err" or the "mknod: /dev/loop0: Operation not permitted" errors?? As far as I can remember, this only becomes an issues when doing a full image... due to the use of debootstrap. As the OP has pointed out, the --capability=CAP_MKNOD appears to have no effect. This was on Ubuntu 16.04.2 / x64.

Share this post


Link to post
Share on other sites
On 5/28/2017 at 5:22 AM, pfeerick said:

Would just like to bump this topic, as I'm wondering if there is anyone who knows how to, or has managed to get around the "Unable to find free loop device err" or the "mknod: /dev/loop0: Operation not permitted" errors Tutuapp 9apps Showbox?? As far as I can remember, this only becomes an issues when doing a full image... due to the use of debootstrap. As the OP has pointed out, the --capability=CAP_MKNOD appears to have no effect. This was on Ubuntu 16.04.2 / x64.

Same problem,

I'm new in emulation but used to VirtualBox o with full system installation there was no problem. Sometimes the USB is not detected so the installation was very easy via ISO file image.

To import a machine, importing the image using the ver very easy GUI tool so all is fine (imported and made copies of a XP machine an cretaed a local network in about an hour. All fine.

Trying to pass to other devices (for learning purposes), I'm running a Linux Mint 18 (so a Ubuntu). Tried to install Qemu and a got an image and that's where I'm confued and blocked and no qemu is detected.

Share this post


Link to post
Share on other sites
1 hour ago, nour said:

I'm running a Linux Mint 18 (so a Ubuntu)


Linux Mint "Ubuntu" might be different enough to cause troubles. IDK. If you like to discover them, go ahead, while if you want to make use of a build system, pay attention to the documentation:
 

https://docs.armbian.com/Developer-Guide_Build-Preparation/

The only supported compilation environment is Ubuntu Bionic 18.04 x64 (no other releases are supported! It has to be exactly 18.04 otherwise default compiler versions might not match so if you’re on an older Ubuntu release upgrade to 18.04 now, if you use a newer Ubuntu version start with 18.04 from scratch),

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0