Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Userspace mount #74

Closed
gordol opened this issue Dec 2, 2020 · 8 comments
Closed

Userspace mount #74

gordol opened this issue Dec 2, 2020 · 8 comments

Comments

@gordol
Copy link

gordol commented Dec 2, 2020

The discussion over here got locked...

termux/termux-app#376

but

https://libguestfs.org/

it is possible...

Sorry if this isn't the best way to contact you.

Good luck!

@github-actions
Copy link

github-actions bot commented Dec 2, 2020

Thank you for contributing to make this project better😎 Keep up and follow to solve this issue.

@SDRausty SDRausty transferred this issue from SDRausty/sdrausty.github.io Dec 9, 2020
@github-actions
Copy link

github-actions bot commented Dec 9, 2020

Thank you for contributing to make this project better😎 Keep up and follow to solve this issue.

@SDRausty
Copy link
Owner

SDRausty commented Dec 9, 2020

Thank you for sharing that the libguestfs project exists @gordol; have you tried the command yay libguestfs?

[user11:42~]$ yay libguestfs
2 aur/libguestfs-git 1.42.0.r21.g4837698d8-1 (+0 0.00)
    Access and modify virtual machine disk image
1 aur/python-libguestfs 1.40.2-1 (+1 0.00)
    Python bindings for libguestfs
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==>

It appears that there are two versions of libguestfs via yay. To create the yay command, you can use either makeaurhelpers or makeyay which attempt to build yay in Termux PRoot, with or without QEMU emulated architecture support.

@SDRausty
Copy link
Owner

SDRausty commented Dec 10, 2020

got locked

Because you found the solution we seek. Integrating this code with PRoot like the QEMU option should probably solve the mount issue.

I have tried yay guestfs multiple times. I am not getting a successful package build. Are you having any luck building the Arch Linux guestfs packages in Termux PRoot?

@SDRausty
Copy link
Owner

citing Originally posted by @xeffyr in termux/termux-app#376 (comment)

Look my answers above. No one here will bother to implement a tool for userspace image mounting. Please understand that possibilities of Termux maintainers are finite.

Those who really needs mounting as non-root can use QEMU system-mode.

citing Originally posted by @xeffyr in termux/termux-packages#6141 (comment)

Start with these:

Boot downloaded image (basic):

qemu-system-i386 -m 512M -nographic -cdrom alpine-virt-3.12.2-x86.iso

Modified to boot from URL with no local image:

qemu-system-i386 -m 512M -nographic -boot d -drive file=https://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86/alpine-virt-3.12.2-x86.iso,readonly=on,media=cdrom

In both cases output is printed directly to console as image supports serial line emulated by QEMU.
CTRL+a x to terminate VM.

qemu

Extending command line by switching to VirtIO devices (rng, nic, drives), increasing TCG cache (e.g. by -accel tcg,tb-size=512), using musl-based & non-systemd distributions like Alpine Linux makes execution under QEMU faster.


Arch Linux can be booted too, yet it is slower and ISO will require many RAM (1-2 GB, maybe more). Probably will have issues with text-only mode and you will need a VNC.

SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 17, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 18, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 18, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 19, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch Jun 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch Jun 7, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch Jun 7, 2022
@SDRausty
Copy link
Owner

SDRausty commented Jun 14, 2022

it is possible...

@gordol it seems to be possible to build libguestfs with command makelibguestfs; Can you please try command makelibguestfs and share your results?

@SDRausty SDRausty reopened this Jun 14, 2022
@github-actions
Copy link

Stale issue message

@gordol
Copy link
Author

gordol commented Aug 22, 2022

silly bot. I'll try this soon, thanks @SDRausty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants