Score:0

How to run an application installed within a Fedora / qemu-kvm VM directly on Ubuntu using sshfs after exporting the Fedora $PATH in Ubuntu

in flag

I would like to integrate Ubuntu,Fedora,Arch or maybe some other distro into one only single,homogeneous and flexible operating (OS) context. I would like to use Ubuntu as host os and the rest of the OSes (Fedora,Arch) will be virtualized within different virtual machines.

The idea is to install the Fedora OS within a qemu-kvm VM and mount all the relevant directories needed to run an application on Ubuntu. My knowledge of linux is decent,but for sure is not advanced. So,I would like to read your opinions regarding the method that I would like to use.

Let's say that I want to integrate Fedora in Ubuntu as much as possible. At this stage of the project I've installed Fedora 37 on a qemu-kvm VM and I've mounted the remote Directory / over SSH on ubuntu within the directory /Fedora and then I've exported all the necessary paths to run smplayer succesfully (I've installed mplayer only on Fedora,but not on Ubuntu,to avoid overlaps).

Below you can read the commands that I have issued : (vm = Fedora = 192.168.122.156 ; /Fedora = the directory on Ubuntu where I have mounted the Fedora's /)

ziomario@Z390-AORUS-PRO-DEST:~$ sshfs -o allow_other marietto@192.168.122.156:/ /Fedora

The authenticity of host '192.168.122.156 (192.168.122.156)' can't be established.
ED25519 key fingerprint is 
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

marietto@192.168.122.156's password: 

ziomario@Z390-AORUS-PRO-DEST:~$ export PATH="/Fedora/usr/lib:/Fedora/usr/lib64:/Fedora/root/.local/bin:/Fedora/root/bin:/Fedora/usr/local/sbin:/Fedora/usr/local/bin:/Fedora/usr/sbin:/Fedora/usr/bin:$PATH"

ziomario@Z390-AORUS-PRO-DEST:~$ echo $PATH
/Fedora/usr/lib:/Fedora/usr/lib64:/Fedora/root/.local/bin:/Fedora/root/bin:/Fedora/usr/local/sbin:/Fedora/usr/local/bin:/Fedora/usr/sbin:/Fedora/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

ziomario@Z390-AORUS-PRO-DEST:~$ smplayer
smplayer: error while loading shared libraries: libQt5Solutions_SingleApplication-2.6.so.1: cannot open shared object file: No such file or directory

root@Z390-AORUS-PRO-DEST:/home/ziomario# find /Fedora -name libQt5Solutions_SingleApplication-2.6.so.1

...
find: ‘/Fedora/etc/strongswan/ipsec.d’: Access Denied
find: ‘/Fedora/etc/strongswan/swanctl/bliss’: Access Denied
find: ‘/Fedora/etc/strongswan/swanctl/ecdsa’: Access Denied
find: ‘/Fedora/etc/strongswan/swanctl/pkcs12’: Access Denied
find: ‘/Fedora/etc/strongswan/swanctl/pkcs8’: Access Denied
find: ‘/Fedora/etc/strongswan/swanctl/private’: Access Denied
find: ‘/Fedora/etc/strongswan/swanctl/rsa’: Access Denied
find: ‘/Fedora/etc/ipsec.d’: Access Denied
find: ‘/Fedora/etc/libvirt’: Access Denied
find: ‘/Fedora/lost+found’: Access Denied

/Fedora/usr/lib64/libQt5Solutions_SingleApplication-2.6.so.1

find: ‘/Fedora/usr/libexec/initscripts/legacy-actions/auditd’: Access Denied
find: ‘/Fedora/usr/share/empty.sshd’: Access denied

As you can see,it does not work. Mplayer does not start when invoked on Ubuntu because it seems that it can't find that shared library. Where could be the problem ?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.