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

XEMU can't enable Bridged Adapter on Arch linux #1233

Closed
Abro61209 opened this issue Aug 13, 2022 · 8 comments
Closed

XEMU can't enable Bridged Adapter on Arch linux #1233

Abro61209 opened this issue Aug 13, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@Abro61209
Copy link

Abro61209 commented Aug 13, 2022

Bug Description

  1. Launch XEMU
  2. Go to Machine -> network -> change attached to 'Bridged Adapter', select my network interface -> enabled.

I get the error code "failed to open interface 'xxx' for capture: enp34s0: socket: Address family not supported by protocol."

Do I need some kind of package on Linux to allow this? The Linux equivalent of Npcap probably? Although I have no idea what that is. Tried installing libpcap.

Expected Behavior

Should just bridge my interface and work.

xemu Version

Version: 0.7.67

System Information

No response

Additional Context

No response

@Abro61209 Abro61209 added the bug Something isn't working label Aug 13, 2022
@HadetTheUndying
Copy link

Just out of curiosity did you run:

sudo setcap cap_net_raw,cap_net_admin=eip `which xemu`

It is outlined in the documentation here: https://xemu.app/docs/networking/#linux

@Fabxx
Copy link
Contributor

Fabxx commented Aug 17, 2022

Also an additional note, to do that command, you either have to put the binary in the home directory, or a system directory, usually i use /usr/bin, then i do the command and it works

@Abro61209
Copy link
Author

@HadetTheUndying - Ran that command and it says xemu doesn't exist.
@Fabxx - I downloaded the flatpak version. Don't flatpaks put the apps in /usr/bin by default?

@Fabxx
Copy link
Contributor

Fabxx commented Aug 19, 2022

No, you have tu use the source code and compile the binary. The website has a guide for each distro

@Abro61209
Copy link
Author

Abro61209 commented Aug 19, 2022 via email

@Abro61209
Copy link
Author

@Fabxx
Compiled it, it stored it in my /home/user/xemu, tried running that command. says xemu doesn't exist again. Moved the entire directory to /usr/bin through the command line, STILL says xemu doesn't exist. Running Arch Linux btw.

@Fabxx
Copy link
Contributor

Fabxx commented Aug 20, 2022

when you type xemu in terminal does it start the emulator? It should since now it's in /usr/bin

@Abro61209
Copy link
Author

Abro61209 commented Aug 20, 2022

@Fabxx

Ah okay I see now. I moved just the binary to /usr/bin just like you said, now the command @HadetTheUndying said from xemu's documentation works. I was moving the WHOLE xemu folder over as I was thinking the xemu binary wouldn't launch unless its dependencies were in the same directory as the binary. Thanks much all, going to close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants