问题标签 [mirage]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1500 浏览

docker - Docker 与 Mirage OS 等外核方法有何关联?

Docker 与 MirageOS 等外核方法有何关联?

有关 MirageOS 的一些信息,请参阅:

0 投票
2 回答
463 浏览

xen - 如何构建 Mirage OS 的 Xen unikernel

我阅读了这份文档(http://openmirage.org/wiki/hello-world)并尝试构建一个 xen unikernel,如下所示:

但编译失败:

到 PKG_CONFIG_PATH 环境变量 No package 'mirage-xen' found make: *** [build] Error 1

我成功安装了 mirage-xen opam install mirage-xen。但是在我的 .opam 目录中,没有mirage-xen.pc.

0 投票
1 回答
255 浏览

customization - DSpace: how to modify the input box of advance search

I am a member of the ILS development team for the central library of Bangladesh University of Engineering and Technology (BUET). There we have installed DSpace as institutional repository. We are using XMLUI. We have included a new search filter "Department" in the advanced search filter. So the items can be searched by department. In the advanced search page, three fields appear in the search panel. First one is for filter, second one is for criteria (dropdown list containing options of "contains", "Equals", etc.), and the third box is the input box having type "text". My question is, how can we add dropdown list in the input box. I mean, the existing input box is of "text" type. But we want a dropdown list containing the department names to appear in the input box when the "Department" filter is selected, so that we don't need to input "Computer Science" by typing, instead, we can select the dept. name from the dropdown list to make it more user friendly. However, for other filters, say "Author", existing look is alright.

0 投票
0 回答
129 浏览

ocaml - 执行 make depend 时未绑定的值 Mirage.load

我正在尝试使用最新版本的 OCaml、OPAM 和相关软件包在 Ubuntu 14.04 下编译和构建这个简单的 Unikernel 项目https://github.com/MagnusS/mirage-stats-demo,但是当我执行命令时,请依赖出现以下错误:

0 投票
2 回答
149 浏览

ocaml - MirageOS - 无法为 XEN 构建 unikernel

我编写了一个简单的基于 MirageOS 的 Unikernel 来执行基本的 HTTP GET 调用。虽然当我将它作为 Unix 二进制文件运行时它没有任何问题,但当我为 XEN ( mirage configure --xen) 配置它并启动make命令时,我收到以下错误:

我刚开始使用 MirageOS 和 OCaml,所以这可能是一个愚蠢的问题,但现在我真的不知道该怎么做。

0 投票
2 回答
101 浏览

mirage - Cohttp_mirage.Client 是否支持 TLS?

谁能确认 Cohttp_mirage.Client 是否支持 TLS (https)?我所做的挖掘似乎表明 Conduit_mirage确实支持客户端 tls,但是在 Cohttp_mirage 中,而服务器是仿函数,它采用可以是 tcp 或 tls 的流(从 mirage-www dispatch_tls.ml 文件中收集到)。

如果它确实支持 TLS,是否有任何示例说明如何设置(对于 Mirage)?我在网上或海市蜃楼中找不到任何东西。我正在为单个 Web 服务编写客户端,所以我猜它只需要一个证书。

如果答案是“不,它不支持 TLS”,是否有任何工作正在进行?也许我可以尝试深入了解自己。我已经编程了 15 年,但我对 OCaml 还是很陌生。

0 投票
1 回答
121 浏览

network-programming - MirageOS 和 Xen - 虚拟接口无法获取 IP 地址

我按照本指南https://github.com/mirage/mirage-www/blob/master/tmpl/wiki/hello-world.md为 XEN 编译并构建了 MirageOS unikernel (主要是最后一部分,第 4 步,stackv4 ) 但在我启动它后,我无法通过 DHCP 发现阶段,如以下日志所示:

我的 MirageOS unikernel 配置:

我的网络配置:

我的网桥配置:

我的 /etc/network/interface:

我试图了解问题所在,但一切似乎都是正确的(根据此其他指南http://wiki.xen.org/wiki/Network_Configuration_Examples_(Xen_4.1%2B)#Example_Debian-style_bridge_configuration_.28e.g ._Debian.2C_Ubuntu.29)。

0 投票
1 回答
237 浏览

ocaml - MirageOS - Http 获取示例

我正在尝试修改可以在 mirage-skeleton 中找到的 MirageOS http-fetch 示例(https://github.com/mirage/mirage-skeleton),但我在理解为什么我不能将 config.ml 文件中执行的一些函数移动到我的 unikernel.ml 文件中。原始的 config.ml 文件如下(我将只复制有趣的部分):

我想要做的是移动这两行:

进入我的 unikernel.ml 启动方法。基本上我只想将堆栈传递给我的模块,并让它创建一个 dns 解析器和一个管道。我的启动功能如下:

现在我在提交 http_fetch 参数时收到此错误:

我在这里问的主要是一个概念性问题,因为我显然遗漏了一些东西。我不是 OCaml/MirageOS 方面的专家,但考虑到我只是从不同的文件调用相同的函数,这种类型不匹配的有争议的行为很难理解。

0 投票
1 回答
178 浏览

xen - Mirage OS 和 Xen - 在数据库中存储数据

如果我希望 MirageOS unikernel 将一些信息存储在外部数据库上(与类型无关),哪些是可用的最佳选项?我查看了不同的解决方案,但似乎没有提供 DB 绑定的库与 XEN 兼容。我尝试的最后一个是 Redis,但显然无法为 XEN 编译 ocaml 库。

0 投票
2 回答
1543 浏览

ocaml - ocamlopt and ocamlbuild give an Unbound module error despite ocamlfind seeing the required module

I'm attempting to build the xencat tool from this project. When I try to use ocamlopt to build it, I get

Following guidance here, I verified that cmdliner was installed and that it was visible to ocamlfind, and then tried again:

Here's what ocamlfind list shows:

No luck:

Following this page, I tried ocamlbuild:

Clearly I'm missing something, but being new to Ocaml, I don't know what else to try.