Skip to Main Content
Someone wrote in
reddragdiva
2019-08-07 10:42 am (UTC)
32 bit under WSL-1 (slow, but it works)
sorry for the length, but the procedure to use i386 under WSL-1 is the following:
enable i386 architecture
install multilibs
install qemu-user-static
register 32bit elf magic to be executed through qemu-i386-static:
$ sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff'
reload binfmt:
$ sudo service binfmt-support start
and it executes i386 elf on WSL as well
(
12 comments
)
Post a comment in response:
From:
Anonymous
(will be screened)
OpenID
(will be screened if not on Access List)
Identity URL:
Log in?
Dreamwidth account
(will be screened if not on Access List)
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
Log in
Account name:
Password:
Remember me
Other options:
Forget your password?
Log in with OpenID?
Close
menu
Log in
Create
Create Account
Display Preferences
Explore
Interests
Directory Search
Site and Journal Search
Latest Things
Random Journal
Random Community
FAQ
Shop
Buy Dreamwidth Services
Gift a Random User
DW Merchandise
Interest
Region
Site and Account
FAQ
Email
32 bit under WSL-1 (slow, but it works)
enable i386 architecture
install multilibs
install qemu-user-static
register 32bit elf magic to be executed through qemu-i386-static:
$ sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff'
reload binfmt:
$ sudo service binfmt-support start
and it executes i386 elf on WSL as well