Closed rickpayne closed 8 years ago
So I think ending up at line number 2351 is due to the optimisation. It seems that kauth_authorize_network() isn't allowing the interface creation for some reason.
Yea, networking should work. However, the syntax for rumprun -I
at least PV Xen is different. I forget the exact form, but IIRC you have to use xenif
instead of vioif
.
Aha, that may explain things, thanks. Is it documented somewhere?
It's sort of documented in the usage of rumprun
, but poorly.
The story is that the rumprun tool is going away because of problems like this one, but it's not easy beans to come up with a complete replacement.
Understood :) appreciate the help. I changed the interface to xenif, and it started but struggling to get packets flowing. I can't connect to the example echo server and ping is not working. I'm getting closer but not quite there yet it seems!
I'm almost certain that the network backend configuration for a Xen setup was documented somewhere. But I can't find it now.
Who stole all the documentation?
Yes I noticed a some of the xen pages were pretty empty.
Anyhoo, I finally got it working. Using this:
-I if,xenif \
-W if,inet,static,"$ip/24","$gw" \
And putting the IP address on the bridge I'm using (xenbr0 in this case), its pinging and I have the echo server working.
Thanks for your help/patience ;)
Cool. If you feel really thankful, feel free to regurgitate documentation ;-)
I assume this issue can be closed.
Yes, close the issue. I'll make a pass at some documentation in the near future to save someone else my pain :)
@rickpayne could you update Rumprun and see if networking on Xen still works? I had to make a few changes, but I don't have a Xen setup for testing.
Seems to work on my setup (using the rumprun/packages erlang package).
On 02/08/16 13:07, Rick Payne wrote:
Seems to work on my setup (using the rumprun/packages erlang package).
Awesome, thanks!
Using a Xen on Ubuntu 14.04, I've compiled up the rumprun toolchain and built the erlang example. When I try to start it using the erlrun.sh script, I get a failure to create the interface and it never reaches the erlang code.
I have to run the rumprun tool as root to allow it to create the xen domain (otherwise xl complains). Its doing this:
The result is:
rumprun: rumprun_config: ifcreate vioif0 failed: 22
Tracing the code, I see it calls the SIOCIFCREATE ioctl
2 0x00000000002b4629 in rump_netconfig_ifcreate (
76 return wrapifioctl(in4so, SIOCIFCREATE, &ifr);
Yet when we arrive in the doifioctl, we hit
2350 case SIOCINITIFADDR: 2351 return EPERM; 2352 }
So before I start doing too much more - is there something I'm doing wrong? Should networking work with Xen and rumprun?