some thoughts on appstacks and app-tools
(CCing xen-devel.)
Antti Kantee writes ("some thoughts on appstacks and app-tools"):
Quoted 5 lines
I finished playing around a bit with Ian's rumpxen/app-tools and, to pick some arbitrary application, thttpd. I could download thttpd, configure and make it with app-tools and run the resulting binary as a Xen guest. No source editing or ad-hoc build stunts were required. That's a truly awesome result!
:-).
Quoted 5 lines
What currently isn't addressed is that applications like thttpd need some base configuration, like a network configuration and maybe the mounting of file system images. I hacked these configuration steps into
callmain.c. However, the configuration problem shouldn't be very difficult to address properly.
Right.
Quoted 9 lines
Currently, the "extra" parameter of the
domain_configtakes the command line arguments, e.g. for thttpd:
extra = "-u thereisnoroot -D -d /etc"
(/etc is the only directory that contains some files ... I was lazy ;)I'm thinking that instead we'd want it to contain some sort of an attempt at an rc script. If we do specification-by-example, the following could work for thttpd (starts two instances of thttpd for demonstration purposes):
I think that it would be better to deal with this by providing the script in the base fs image. That's a more suitable format for conveying something extended like one of these scripts. It also preserves the distinction between "out of band" environmental information like the filesystem etc., and the executable and its command line arguments.
Looking at it this way also enables us to do away with several of these steps:
Quoted 3 lines
extra =
"builtin_ifconfigxenif0 create
builtin_ifconfigxenif0 <address>
I think this information is already available via xenstore.
Quoted 1 line
builtin_mkdir/etc
There is no need for the script to be able to mkdir.
Quoted 1 line
builtin_mountffs /blk1 /etc
We could perhaps provide a mount point in xenstore along with the rest of the pv block device control plane info.
Quoted 2 lines
thttpd -u thereisnoroot -D -d /etc & thttpd -u thereisnoroot -D -p 8080 -d /anotherdir"
This notion of having multiple processes is quite alarming. There obviously won't be any memory protection between them, but also: how will their symbol namespaces be separated ? Is it intended that they would be able to communicate via some kind of IPC (eg pipes or AF_UNIX sockets) ?
Quoted 3 lines
2) deciding if we want very simple "builtin" versions of some common configuration utilities, or if we'll always include the full NetBSD binaries
Perhaps we can keep the set utilities small enough that we don't need to replicate busybox.
Quoted 3 lines
3) deciding if we want applications themselves to handle backgrounding e.g. via
daemon(), or limit backgrounding to rc scripts using &, and dealing with whatever problems arise as a result
Clearly applications can't background themselves (whatever that means) because they can't call fork().
Quoted 3 lines
Of course, this whole mail isn't really specific to Xen, and I'd eventually like to see things work the same way on all platforms. But we need at least one working platform as the first step ;)
Yes.
Of course I appreciate that some of the xenstore-based answers I give above are perhaps less useful to other platforms, but perhaps they have something equivalent ?
Thanks,
Ian.
Quoted 10 lines · Ian Jackson
Quoted 9 lines
Currently, the "extra" parameter of the
domain_configtakes the command line arguments, e.g. for thttpd:
extra = "-u thereisnoroot -D -d /etc"
(/etc is the only directory that contains some files ... I was lazy ;)I'm thinking that instead we'd want it to contain some sort of an attempt at an rc script. If we do specification-by-example, the following could work for thttpd (starts two instances of thttpd for demonstration purposes):
Quoted 6 lines
I think that it would be better to deal with this by providing the script in the base fs image. That's a more suitable format for conveying something extended like one of these scripts. It also preserves the distinction between "out of band" environmental information like the filesystem etc., and the executable and its command line arguments.
A rump kernel does not use a base fs image, at least unless I misunderstood what you meant by base fs image.
For some applications it might be convenient to supply some sort of fs image, e.g. the libc calls that thttpd makes requires /etc/services, /etc/master.passwd and so forth. However, let's imagine a router/firewall. There is no true need to have any file system support in a rump kernel in that configuration (as in open() will return ENOSYS). Yet, the router needs to be configured somehow. That's why I'd rather supply the configuration information out-of-band.
If I correctly understood what you mean by the xenstore stuff later, you are saying that the steps could be embedded, while the data needed by those steps could come dynamically from xenstore.
Quoted 8 lines
Looking at it this way also enables us to do away with several of these steps:
Quoted 3 lines
extra =
"builtin_ifconfigxenif0 create
builtin_ifconfigxenif0 <address>I think this information is already available via xenstore.
Ok, but we still need to execute the actual configuration commands somehow.
Quoted 3 lines
Quoted 1 line
builtin_mkdir/etcThere is no need for the script to be able to mkdir.
Why? Where will the mountpoint come from?
Quoted 4 lines
Quoted 1 line
builtin_mountffs /blk1 /etcWe could perhaps provide a mount point in xenstore along with the rest of the pv block device control plane info.
I have no idea what that means.
Can you elaborate on how that will solve the practical problem of "thttpd needs some files in /etc"?
Quoted 8 lines
Quoted 2 lines
thttpd -u thereisnoroot -D -d /etc & thttpd -u thereisnoroot -D -p 8080 -d /anotherdir"
This notion of having multiple processes is quite alarming. There obviously won't be any memory protection between them, but also: how will their symbol namespaces be separated ? Is it intended that they would be able to communicate via some kind of IPC (eg pipes or
AF_UNIXsockets) ?
Symbol separation is what I referred to with crunchgen/busybox. I don't know about busybox, but at least crunchen does symbol renaming/hiding.
Without going into a lot of detail, a rump kernel has an internal notion of a "process", sans a virtual memory space. I think the original use case was debugging the AF_UNIX file descriptor passing code (though there are other uses now). Multiple "processes" can communicate e.g. with pipes just like on a regular system.
It's alarming only if you don't know what you're doing. Obviously if you want to lump a ton of processes into a single guest, you should be running a full OS. However, there might be cases where being able to run a few just makes things a lot easier to set up. It's of course a different story if we should support it before having any actual use cases ...
Quoted 6 lines
Quoted 3 lines
2) deciding if we want very simple "builtin" versions of some common configuration utilities, or if we'll always include the full NetBSD binaries
Perhaps we can keep the set utilities small enough that we don't need to replicate busybox.
... yes, that's one option.
Quoted 6 lines
Quoted 3 lines
3) deciding if we want applications themselves to handle backgrounding e.g. via
daemon(), or limit backgrounding to rc scripts using &, and dealing with whatever problems arise as a resultClearly applications can't background themselves (whatever that means) because they can't call
fork().
My definition of backgrounding here = "rc script" doesn't wait for the current process to finish before running the next one. That works quite easily, we just create a thread before we call the application main and either join that thread or not. It might be possible to reach the same effect by "guessing" what fork() means for an application, but then again it might be better to not guess.
Quoted 3 lines
Of course I appreciate that some of the xenstore-based answers I give above are perhaps less useful to other platforms, but perhaps they have something equivalent ?
They don't exist, so I don't know yet ;)
What I do know is that I'd like things to be general enough so that whatever infra you build on top of this doesn't have to be changed in 3 weeks (or forked) when we discover a platform where there is no equivalent.
Antti Kantee writes ("Re: some thoughts on appstacks and app-tools"):
Quoted 10 lines · Ian Jackson
Quoted 6 lines
I think that it would be better to deal with this by providing the script in the base fs image. That's a more suitable format for conveying something extended like one of these scripts. It also preserves the distinction between "out of band" environmental information like the filesystem etc., and the executable and its command line arguments.
A rump kernel does not use a base fs image, at least unless I misunderstood what you meant by base fs image.
The demo application supplied in rumpuser-xen comes with a pair of ffs images. Perhaps that's just because it's doing an fs test ?
Quoted 7 lines
For some applications it might be convenient to supply some sort of fs image, e.g. the libc calls that thttpd makes requires
/etc/services,/etc/master.passwdand so forth. However, let's imagine a router/firewall. There is no true need to have any file system support in a rump kernel in that configuration (as inopen()will return ENOSYS). Yet, the router needs to be configured somehow. That's why I'd rather supply the configuration information out-of-band.
I see.
Quoted 3 lines
If I correctly understood what you mean by the xenstore stuff later, you are saying that the steps could be embedded, while the data needed by those steps could come dynamically from xenstore.
Yes.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
extra =
"builtin_ifconfigxenif0 create
builtin_ifconfigxenif0 <address>I think this information is already available via xenstore.
Ok, but we still need to execute the actual configuration commands somehow.
If that isn't happening already if you specify "ip=..." in the appropriate place in the xl domain config file then there is a bug in something, I think.
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
builtin_mountffs /blk1 /etcWe could perhaps provide a mount point in xenstore along with the rest of the pv block device control plane info.
I have no idea what that means.
Can you elaborate on how that will solve the practical problem of "thttpd needs some files in /etc"?
I mean that the domain config file could say
disk = [ "vdev=xvda, mountpoint=/etc, target=/path/to/blah.ffs" ]
and libxl would put the mountpoint info in xenstore so something in the rump kernel Xen environment would pick it up.
Quoted 8 lines
Quoted 5 lines
This notion of having multiple processes is quite alarming. There obviously won't be any memory protection between them, but also: how will their symbol namespaces be separated ? Is it intended that they would be able to communicate via some kind of IPC (eg pipes or
AF_UNIXsockets) ?Symbol separation is what I referred to with crunchgen/busybox. I don't know about busybox, but at least crunchen does symbol renaming/hiding.
Busybox is a single application, not a build tool. I wasn't aware of crunchgen. That does sound like it could do the job.
Quoted 5 lines
Without going into a lot of detail, a rump kernel has an internal notion of a "process", sans a virtual memory space. I think the original use case was debugging the
AF_UNIXfile descriptor passing code (though there are other uses now). Multiple "processes" can communicate e.g. with pipes just like on a regular system.
Cor. OK then.
Quoted 9 lines
Quoted 2 lines
Clearly applications can't background themselves (whatever that means) because they can't call
fork().My definition of backgrounding here = "rc script" doesn't wait for the current process to finish before running the next one. That works quite easily, we just create a thread before we call the application main and either join that thread or not. It might be possible to reach the same effect by "guessing" what
fork()means for an application, but then again it might be better to not guess.
I think it would be better to do this ad-hoc in the script language.
Quoted 9 lines
Quoted 3 lines
Of course I appreciate that some of the xenstore-based answers I give above are perhaps less useful to other platforms, but perhaps they have something equivalent ?
They don't exist, so I don't know yet ;)
What I do know is that I'd like things to be general enough so that whatever infra you build on top of this doesn't have to be changed in 3 weeks (or forked) when we discover a platform where there is no equivalent.
Yes.
Ian.
Quoted 9 lines · Ian Jackson
Antti Kantee writes ("Re: some thoughts on appstacks and app-tools"):
Quoted 8 lines · Ian Jackson
Quoted 6 lines
I think that it would be better to deal with this by providing the script in the base fs image. That's a more suitable format for conveying something extended like one of these scripts. It also preserves the distinction between "out of band" environmental information like the filesystem etc., and the executable and its command line arguments.
Quoted 5 lines
Quoted 2 lines
A rump kernel does not use a base fs image, at least unless I misunderstood what you meant by base fs image.
The demo application supplied in rumpuser-xen comes with a pair of ffs images. Perhaps that's just because it's doing an fs test ?
Yes. I think test.ffs predates libc support, and it was just a simple way of showing that the rump kernel guest can really use the kernel file system driver. It's a rather weak demo these days, should probably remove it.
etc.ffs is there for reasons explained in the previous mail. The necessary /etc files for getservent() et al could be generated otherwise, but it was just simpler to supply a file system image for that purpose and get the httpd demo rolling.
In fact, you can run a rump kernel guest just fine without specifying a single "disk" or "vif" line in the domain config. I used to often omit I/O devices for testing, since it tends to spin up the guest domain faster (doesn't run qemu?). That way you of course can't mount external disk images or access the network, but not all testing needs those capabilities.
Quoted 11 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
extra =
"builtin_ifconfigxenif0 create
builtin_ifconfigxenif0 <address>I think this information is already available via xenstore.
Ok, but we still need to execute the actual configuration commands somehow.
If that isn't happening already if you specify "ip=..." in the appropriate place in the xl domain config file then there is a bug in something, I think.
At least one bug is that I wasn't aware that it should happen ;)
Is the expected format documented somewhere? E.g. ipv4 vs. ipv6, default router, dhcp, etc? xl-network-configuration is a little vague about it.
That said, ip= it might be good enough for a simple configuration, but it will most likely fall short for e.g. a router/firewall. I'm not sure if an "rc script" should inline that type of configuration data, but if that's literally all that the rc script doing, might be appropriate to cut down the number of configuration files by allowing inlining. <== thinking out loud
Quoted 4 lines
I mean that the domain config file could say
disk = [ "vdev=xvda, mountpoint=/etc, target=/path/to/blah.ffs" ]
and libxl would put the mountpoint info in xenstore so something in the rump kernel Xen environment would pick it up.
Sounds good. Can we pass arbitrary parameters a la fstab?
Quoted 5 lines
Quoted 2 lines
Symbol separation is what I referred to with crunchgen/busybox. I don't know about busybox, but at least crunchen does symbol renaming/hiding.
Busybox is a single application, not a build tool. I wasn't aware of crunchgen. That does sound like it could do the job.
Ok. They are usually mentioned together, so I thought busybox was the Linux equivalent of crunchgen, kinda in the lsof(8) vs. fstat(1) sense.
Standing corrected.
Quoted 11 lines
Quoted 9 lines
Quoted 2 lines
Clearly applications can't background themselves (whatever that means) because they can't call
fork().My definition of backgrounding here = "rc script" doesn't wait for the current process to finish before running the next one. That works quite easily, we just create a thread before we call the application main and either join that thread or not. It might be possible to reach the same effect by "guessing" what
fork()means for an application, but then again it might be better to not guess.I think it would be better to do this ad-hoc in the script language.
You're probably right ... at least until we run into the first application that completely refuses to succumb to being backgrounded like that. But it sounds like a hurdle that can be crossed if it appears at all.
Quoted 6 lines · Ian Jackson
Quoted 3 lines
2) deciding if we want very simple "builtin" versions of some common configuration utilities, or if we'll always include the full NetBSD binaries
Perhaps we can keep the set utilities small enough that we don't need to replicate busybox.
The problem about having a builtin set is that they are still big enough to need tests and bugfixes and documentation and so on. If NetBSD already had a Busybox it might be a different matter.
Quoted 3 lines
Quoted 3 lines
3) deciding if we want applications themselves to handle backgrounding e.g. via
daemon(), or limit backgrounding to rc scripts using &, and dealing with whatever problems arise as a result
Things like dhcp need to background, so need to resolve quite early on.
Something like crunchgen which creates an object file with a single entry point that executes a single binary would be a nice outcome. But it needs to deal with the memory allocation issues and globals. I fudged up a hacky version in a rumprun branch somewhere but got rather unhappy with it.
Another option that just occured to me, as performance of this setup phase is not critical, might be to use a C interpreter eg
https://code.google.com/p/picoc/ to run the NetBSD utilities... That then solves the namespacing issues, and allocation etc, obviously needs hooking into the rump syscalls. Then you just ship (compressed) source code in a config library. I might try prototyping this.
Quoted 3 lines
Quoted 3 lines
Of course, this whole mail isn't really specific to Xen, and I'd eventually like to see things work the same way on all platforms. But we need at least one working platform as the first step ;)
Some platforms might have extra options, but Xen looks quite a bit like many other environments I can think of. Userspace has similar issues which I ran into trying to get some benchmarking code working, when you dont use remote clients for performance reasons.
Quoted 3 lines
Of course I appreciate that some of the xenstore-based answers I give above are perhaps less useful to other platforms, but perhaps they have something equivalent ?
Yes I think there is usually something roughly equivalent on most platforms, although some might be somewhat simpler.
Justin
Quoted 11 lines · Justin Cormack
Quoted 6 lines · Ian Jackson
Quoted 3 lines
2) deciding if we want very simple "builtin" versions of some common configuration utilities, or if we'll always include the full NetBSD binaries
Perhaps we can keep the set utilities small enough that we don't need to replicate busybox.
The problem about having a builtin set is that they are still big enough to need tests and bugfixes and documentation and so on. If NetBSD already had a Busybox it might be a different matter.
I was thinking the "builtin" set would be something like the existing netconfig lib (~300 lines of code, plus dhcp) and just some additional C code to call mkdir+mount; something really really simple.
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
3) deciding if we want applications themselves to handle backgrounding e.g. via
daemon(), or limit backgrounding to rc scripts using &, and dealing with whatever problems arise as a resultThings like dhcp need to background, so need to resolve quite early on.
I don't think we'll be using a "userspace" dhcp client in any case.
And I don't think backgrounding is a problem. In fact, this more or less does backgrounding already:
https://github.com/rumpkernel/rumpuser-xen/blob/master/rumpkern_demo.c#L336-L376
Quoted 6 lines
Another option that just occured to me, as performance of this setup phase is not critical, might be to use a C interpreter eg
https://code.google.com/p/picoc/ to run the NetBSD utilities... That then solves the namespacing issues, and allocation etc, obviously needs hooking into the rump syscalls. Then you just ship (compressed) source code in a config library. I might try prototyping this.
Right, the setup phase is not performance critical, up to a certain definition of "not". That's why remote clients work so nicely for configuration (in userspace).
Curious idea, assuming you can find a C interpreter which both has reasonable memory requirements and works. Not sure picoc would work for NetBSD userland utils (which, if nothing else, tend to be C99):
https://code.google.com/p/picoc/wiki/DifferencesFromC90
I'm pretty sure if you can get one hooked to libc, rump kernel syscalls will just work.
Quoted 11 lines · Ian Jackson
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
extra =
"builtin_ifconfigxenif0 create
builtin_ifconfigxenif0 <address>I think this information is already available via xenstore.
Ok, but we still need to execute the actual configuration commands somehow.
If that isn't happening already if you specify "ip=..." in the appropriate place in the xl domain config file then there is a bug in something, I think.
Hrm, I think it is debatable whether guests should be using this IP field.
The current/intend use is to propagate it to xenstore so the vif hotplug scripts can use it to configure the host firewall if necessary.
I was about to say "we suck, this thing isn't documented anywhere"[0], but actually the xenstore field is in the *backend* directory so I think it would be wrong for the frontend to use it by default. (but either way it still ought to be documented!)
The way one would do this today e.g. for NFS root or something would be with a kernel command line option (e.g. ip=w.x.y.z for Linux, don't know about rump or BSD)
Ian.
[0] docs/misc/xenstore-paths.markdown, xen/include/public/io/netif.h or docs/man/xl.cfg.pod.5.
Quoted 66 lines
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
builtin_mountffs /blk1 /etcWe could perhaps provide a mount point in xenstore along with the rest of the pv block device control plane info.
I have no idea what that means.
Can you elaborate on how that will solve the practical problem of "thttpd needs some files in /etc"?
I mean that the domain config file could say
disk = [ "vdev=xvda, mountpoint=/etc, target=/path/to/blah.ffs" ]
and libxl would put the mountpoint info in xenstore so something in the rump kernel Xen environment would pick it up.Quoted 8 lines
Quoted 5 lines
This notion of having multiple processes is quite alarming. There obviously won't be any memory protection between them, but also: how will their symbol namespaces be separated ? Is it intended that they would be able to communicate via some kind of IPC (eg pipes or
AF_UNIXsockets) ?Symbol separation is what I referred to with crunchgen/busybox. I don't know about busybox, but at least crunchen does symbol renaming/hiding.
Busybox is a single application, not a build tool. I wasn't aware of crunchgen. That does sound like it could do the job.
Quoted 5 lines
Without going into a lot of detail, a rump kernel has an internal notion of a "process", sans a virtual memory space. I think the original use case was debugging the
AF_UNIXfile descriptor passing code (though there are other uses now). Multiple "processes" can communicate e.g. with pipes just like on a regular system.Cor. OK then.
Quoted 9 lines
Quoted 2 lines
Clearly applications can't background themselves (whatever that means) because they can't call
fork().My definition of backgrounding here = "rc script" doesn't wait for the current process to finish before running the next one. That works quite easily, we just create a thread before we call the application main and either join that thread or not. It might be possible to reach the same effect by "guessing" what
fork()means for an application, but then again it might be better to not guess.I think it would be better to do this ad-hoc in the script language.
Quoted 9 lines
Quoted 3 lines
Of course I appreciate that some of the xenstore-based answers I give above are perhaps less useful to other platforms, but perhaps they have something equivalent ?
They don't exist, so I don't know yet ;)
What I do know is that I'd like things to be general enough so that whatever infra you build on top of this doesn't have to be changed in 3 weeks (or forked) when we discover a platform where there is no equivalent.
Yes.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 8 lines · Ian Campbell
I was about to say "we suck, this thing isn't documented anywhere"[0], but actually the xenstore field is in the *backend* directory so I think it would be wrong for the frontend to use it by default. (but either way it still ought to be documented!)
The way one would do this today e.g. for NFS root or something would be with a kernel command line option (e.g. ip=w.x.y.z for Linux, don't know about rump or BSD)
rumpuser_getparam() should probably read the command line and return those values, rather than just the static values in rumphyper_base.c
Justin
Antti Kantee writes ("Re: some thoughts on appstacks and app-tools"):
Quoted 10 lines · Ian Jackson
Quoted 3 lines
If that isn't happening already if you specify "ip=..." in the appropriate place in the xl domain config file then there is a bug in something, I think.
At least one bug is that I wasn't aware that it should happen ;)
Is the expected format documented somewhere? E.g. ipv4 vs. ipv6, default router, dhcp, etc? xl-network-configuration is a little vague about it.
No. And as an OS author you are in theory looking at the wrong
document: that document is aimed at the host administrator. In theory you should be looking at the guest interface docs, of which the relevant bit seems to be
http://xenbits.xen.org/docs/unstable/misc/xenstore-paths.html
but sadly that doesn't mention the "ip" backend field.
Quoted 6 lines
That said, ip= it might be good enough for a simple configuration, but it will most likely fall short for e.g. a router/firewall. I'm not sure if an "rc script" should inline that type of configuration data, but if that's literally all that the rc script doing, might be appropriate to cut down the number of configuration files by allowing inlining. <== thinking out loud
Right.
Quoted 6 lines
Quoted 4 lines
I mean that the domain config file could say
disk = [ "vdev=xvda, mountpoint=/etc, target=/path/to/blah.ffs" ]
and libxl would put the mountpoint info in xenstore so something in the rump kernel Xen environment would pick it up.Sounds good. Can we pass arbitrary parameters a la fstab?
Not currently but perhaps we should be able to.
Quoted 5 lines
Quoted 2 lines
Busybox is a single application, not a build tool. I wasn't aware of crunchgen. That does sound like it could do the job.
Ok. They are usually mentioned together, so I thought busybox was the Linux equivalent of crunchgen, kinda in the lsof(8) vs. fstat(1) sense.
I don't know what crunchgen is other than what you have said here. busybox is a reimplementation of a bunch of utilities written in such a way that they can all be built into the same executable and dispatch off argv[0].
So they don't sound very similar, although they solve some of the same problem.
Notably, busybox's implementations are very minimal. One of busybox's aims is to be small (for installers, initramfs, etc.). A traditional GNU userland coreutils would be too big. So no-one in the Linux world would think of generating something to do busybox's job by smooshing together coreutils ls and coreutils cat and so on.
ISTM that crunchgen might be useful, especially if there's a way to specify whilch subsets of the BSD tools are included. ls will be quite fat compared to (say) mkdir and mknod.
Quoted 6 lines
Quoted 1 line
I think it would be better to do this ad-hoc in the script language.
You're probably right ... at least until we run into the first application that completely refuses to succumb to being backgrounded like that. But it sounds like a hurdle that can be crossed if it appears at all.
Yes.
Ian.
Justin Cormack writes ("Re: [Xen-devel] some thoughts on appstacks and app-tools"):
Quoted 7 lines · Ian Campbell
Quoted 3 lines
The way one would do this today e.g. for NFS root or something would be with a kernel command line option (e.g. ip=w.x.y.z for Linux, don't know about rump or BSD)
rumpuser_getparam()should probably read the command line and return those values, rather than just the static values inrumphyper_base.c
We have a problem with the command line:
In a rump environment, running a normal application built with the cross tools, the command line is (currently, and IMO this ought to remain the case) the application's command line.
I guess we could filter the command line so you would write
extra="args to rump machinery ip=blah fs=blah --- args to application"
or some such.
Ian.
Quoted 10 lines · Ian Jackson
Quoted 3 lines
Is the expected format documented somewhere? E.g. ipv4 vs. ipv6, default router, dhcp, etc? xl-network-configuration is a little vague about it.
No. And as an OS author you are in theory looking at the wrong
document: that document is aimed at the host administrator. In theory you should be looking at the guest interface docs, of which the relevant bit seems to be
http://xenbits.xen.org/docs/unstable/misc/xenstore-paths.html
but sadly that doesn't mention the "ip" backend field.
That didn't help, then. I'll need some further specs, but I assume those don't exist at least at the moment.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
I mean that the domain config file could say
disk = [ "vdev=xvda, mountpoint=/etc, target=/path/to/blah.ffs" ]
and libxl would put the mountpoint info in xenstore so something in the rump kernel Xen environment would pick it up.Sounds good. Can we pass arbitrary parameters a la fstab?
Not currently but perhaps we should be able to.
I'll wait for further specs and decisions on how to proceed from your side here too.
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
Busybox is a single application, not a build tool. I wasn't aware of crunchgen. That does sound like it could do the job.
Ok. They are usually mentioned together, so I thought busybox was the Linux equivalent of crunchgen, kinda in the lsof(8) vs. fstat(1) sense.
Quoted 7 lines
I don't know what crunchgen is other than what you have said here. busybox is a reimplementation of a bunch of utilities written in such a way that they can all be built into the same executable and dispatch off argv[0].
So they don't sound very similar, although they solve some of the same problem.
crunchen is the same, except it builds existing utilities with something like -DSMALL.
Quoted 9 lines
Notably, busybox's implementations are very minimal. One of busybox's aims is to be small (for installers, initramfs, etc.). A traditional GNU userland coreutils would be too big. So no-one in the Linux world would think of generating something to do busybox's job by smooshing together coreutils ls and coreutils cat and so on.
ISTM that crunchgen might be useful, especially if there's a way to specify whilch subsets of the BSD tools are included. ls will be quite fat compared to (say) mkdir and mknod.
Not too fat. NetBSD includes a "rescue" crunch in the default installation, for purposes of when you b0rk your ld.so or whatnot. Looks like it's currently ~6MB in size on amd64 and includes ~150 utils:
http://nxr.netbsd.org/xref/src/rescue/list
We wouldn't need many many many of those, e.g. ksh or init.