* [Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run Wine
@ 2018-10-30 2:16 wj193102
2018-10-30 9:33 ` Peter Maydell
0 siblings, 1 reply; 4+ messages in thread
From: wj193102 @ 2018-10-30 2:16 UTC (permalink / raw)
To: qemu-devel
Hi, everyone.
When I have installed the QEMU3.0.0 in the Linux on non X86 CPUS, I want to use user space emulator to run Wine. I can get the source code for Wine and the RPM file for Wine from the WineHQ web page.
I used to compile Wine in the X86-based Linux system and used it to run most Win32 programs. Now I want to use it on the non X86 CPUS by QEMU. But I can't get the function to install and use the Wine. Please give me some advice
or some functions to finish it. Thanks a lot.
Meanwhile, I use the command "qemu-i386/qemu-x86_64 *.sh" to run the application from the X86 CPUS on non X86 CPUS, I get the error information:"Invalid ELF image for this architecture". Why the error is comming? What can I
do to resolve this problem?
--Thanks
WangJi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run Wine
2018-10-30 2:16 [Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run Wine wj193102
@ 2018-10-30 9:33 ` Peter Maydell
2018-10-30 12:10 ` wj193102
0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2018-10-30 9:33 UTC (permalink / raw)
To: wj193102; +Cc: QEMU Developers
On 30 October 2018 at 02:16, wj193102 <wj193102@163.com> wrote:
> Hi, everyone.
> When I have installed the QEMU3.0.0 in the Linux on non X86 CPUS, I want to use user space emulator to run Wine. I can get the source code for Wine and the RPM file for Wine from the WineHQ web page.
> I used to compile Wine in the X86-based Linux system and used it to run most Win32 programs. Now I want to use it on the non X86 CPUS by QEMU. But I can't get the function to install and use the Wine. Please give me some advice
> or some functions to finish it. Thanks a lot.
I'm afraid you will need to provide more detail for us to
help here. What exactly are you doing? Which commands are you
running? What is the exact error message or failure you see?
> Meanwhile, I use the command "qemu-i386/qemu-x86_64 *.sh" to
> run the application from the X86 CPUS on non X86 CPUS, I get the
> error information:"Invalid ELF image for this architecture". Why
> the error is comming? What can I do to resolve this problem?
This is probably because you are trying to run a shell script.
(I'm guessing this from the '.sh' extension). This won't work.
QEMU only runs actual executables (ELF files).
Usually the setup is that the host Linux system is set up
with binfmt-misc, so that if it encounters a guest-architecture
binary it will automatically run it under QEMU. Usually
this is done to allow running guest binaries inside a chroot.
thanks
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run Wine
2018-10-30 9:33 ` Peter Maydell
@ 2018-10-30 12:10 ` wj193102
2018-10-30 12:43 ` Peter Maydell
0 siblings, 1 reply; 4+ messages in thread
From: wj193102 @ 2018-10-30 12:10 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel
Thanks for your reply.
At 2018-10-30 16:33:15, "Peter Maydell" <peter.maydell@linaro.org> wrote:
>On 30 October 2018 at 02:16, wj193102 <wj193102@163.com> wrote:
>> Hi, everyone.
>> When I have installed the QEMU3.0.0 in the Linux on non X86 CPUS, I want to use user space emulator to run Wine. I can get the source code for Wine and the RPM file for Wine from the WineHQ web page.
>> I used to compile Wine in the X86-based Linux system and used it to run most Win32 programs. Now I want to use it on the non X86 CPUS by QEMU. But I can't get the function to install and use the Wine. Please give me some advice
>> or some functions to finish it. Thanks a lot.
>
>I'm afraid you will need to provide more detail for us to
>help here. What exactly are you doing? Which commands are you
>running? What is the exact error message or failure you see?
I have installed the Wine in Linux(fedora) on the X86 CPUs from the source code. Can I copy the related file of Wine from the Linux on X86 CPUs to the Linux on the non X86 CPUS for running the command "wine" or "winecfg".
>> Meanwhile, I use the command "qemu-i386/qemu-x86_64 *.sh" to
>> run the application from the X86 CPUS on non X86 CPUS, I get the
>> error information:"Invalid ELF image for this architecture". Why
>> the error is comming? What can I do to resolve this problem?
>
>This is probably because you are trying to run a shell script.
>(I'm guessing this from the '.sh' extension). This won't work.
>QEMU only runs actual executables (ELF files).
That is my fault. I don't run the *.sh file. I copy the file "/bin/ls" from the Linux on x86 CPUs to the Linux on non X86 CPUs. I put the file in the new created directory, such as "/home/admin/user/test/".
Then I run the executable file,using "qemu-i386 ./ls", I get the following error: "./ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory."
How can I resolve this problem?
>Usually the setup is that the host Linux system is set up
>with binfmt-misc, so that if it encounters a guest-architecture
>binary it will automatically run it under QEMU. Usually
>this is done to allow running guest binaries inside a chroot.
>
>thanks
>-- PMM
Thanks a lot.
--WangJi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run Wine
2018-10-30 12:10 ` wj193102
@ 2018-10-30 12:43 ` Peter Maydell
0 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2018-10-30 12:43 UTC (permalink / raw)
To: wj193102; +Cc: QEMU Developers
On 30 October 2018 at 12:10, wj193102 <wj193102@163.com> wrote:
> That is my fault. I don't run the *.sh file. I copy the file "/bin/ls" from
> the Linux on x86 CPUs to the Linux on non X86 CPUs. I put the file in the
> new created directory, such as "/home/admin/user/test/".
> Then I run the executable file,using "qemu-i386 ./ls", I get the following
> error: "./ls: error while loading shared libraries: libselinux.so.1: cannot
> open shared object file: No such file or directory."
> How can I resolve this problem?
This is because you need not just the guest executable, but
all the DLLs, data files and other things it requires.
The easiest way to set this up is to use a chroot. There
should be some tutorials on the web that you can look for
to tell you how to set this up.
thanks
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-30 12:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-30 2:16 [Qemu-devel] qemu3.0.0: Linux on non x86 CPUs run Wine wj193102
2018-10-30 9:33 ` Peter Maydell
2018-10-30 12:10 ` wj193102
2018-10-30 12:43 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).