<runtime ram="1600M" caps="1500" binary="init">

	<requires>
		<block label="primary"/>
		<block label="secondary"/>
		<nic label="0"/>
		<nic label="1"/>
		<nitpicker/>
		<report/>
		<report label="shape"/>
		<rm/>
		<rom label="platform_info"/>
		<rom label="usb_devices"/>
		<rtc/>
		<usb/>
	</requires>

	<content>
		<rom label="init"/>
		<rom label="libc.lib.so"/>
		<rom label="libc_pipe.lib.so"/>
		<rom label="libc_terminal.lib.so"/>
		<rom label="libiconv.lib.so"/>
		<rom label="libm.lib.so"/>
		<rom label="nit_fb"/>
		<rom label="qemu-usb.lib.so"/>
		<rom label="stdcxx.lib.so"/>
		<rom label="timer"/>
		<rom label="vfs.lib.so"/>
		<rom label="virtualbox5-nova"/>
		<rom label="machine.vbox"/>
		<rom label="primary.vmdk"/>
		<rom label="secondary.vmdk"/>
	</content>

	<config verbose="yes" prio_levels="2">

		<parent-provides>
			<service name="ROM"/>
			<service name="PD"/>
			<service name="RM"/>
			<service name="CPU"/>
			<service name="LOG"/>
			<service name="Block"/>
			<service name="Nitpicker"/>
			<service name="Rtc"/>
			<service name="Report"/>
			<service name="Usb"/>
			<service name="Nic"/>
		</parent-provides>

		<default-route> <any-service> <parent/> <any-child/> </any-service> </default-route>

		<default caps="100"/>

		<start name="timer">
			<resource name="RAM" quantum="1M"/>
			<provides><service name="Timer"/></provides>
			<config/>
			<route>
				<service name="ROM" label="platform_info">
					<parent label="platform_info"/> </service>
				<any-service> <parent/> </any-service>
			</route>
		</start>

		<start name="nit_fb" priority="0">
			<resource name="RAM" quantum="8M" />
			<provides>
				<service name="Framebuffer" /> <service name="Input" />
			</provides>
			<config initial_width="848" initial_height="480" />
			<route>
				<service name="Nitpicker"> <parent label=""/> </service>
				<any-service> <parent/> </any-service>
			</route>
		</start>

		<start name="vbox" priority="-1" caps="1000">
			<binary name="virtualbox5-nova" />
			<resource name="RAM" quantum="2G"/>
			<exit propagate="yes"/>
			<config vbox_file="machine.vbox" xhci="no" vm_name="linux">
				<vfs>
					<rom name="machine.vbox"/>
					<rom name="primary.vmdk"/>
					<rom name="secondary.vmdk"/>
					<dir name="dev">
						<block name="sda" label="primary"/>
						<block name="sdb" label="secondary"/>
						<log/>
						<rtc/>
					</dir>
				</vfs>
				<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
			</config>
			<route>
				<service name="Audio_out">
					<parent/> </service>
				<service name="ROM" label="usb_devices">
					<parent label="usb_devices"/> </service>
				<service name="ROM" label="platform_info">
					<parent label="platform_info"/> </service>
				<service name="Block" label_suffix="primary">
					<parent label="primary"/> </service>
				<service name="Block" label_suffix="secondary">
					<parent label="secondary"/> </service>
				<service name="Nic" label_suffix="0">
					<parent label="0"/> </service>
				<service name="Nic" label_suffix="1">
					<parent label="1"/> </service>
				<service name="Report" label="shape">
					<parent label="shape"/> </service>
				<service name="ROM"    label="clipboard">
					<parent label="clipboard"/> </service>
				<service name="Report" label="clipboard">
					<parent label="clipboard"/> </service>
				<any-service>
					<parent/> <any-child/>
				</any-service>
			</route>
		</start>

</config>

</runtime>
