2014-09-10 08:11:25 +00:00
|
|
|
# Tested for nova.
|
2014-05-28 12:48:33 +00:00
|
|
|
assert_spec nova
|
2014-03-10 11:19:52 +00:00
|
|
|
|
2015-01-08 21:09:08 +00:00
|
|
|
if {[have_include "power_on/qemu"]} {
|
2014-09-23 11:01:47 +00:00
|
|
|
puts "\nRun script does not support Qemu.\n"
|
2015-01-08 21:09:08 +00:00
|
|
|
exit 0
|
2014-02-12 12:53:42 +00:00
|
|
|
}
|
|
|
|
|
2014-09-23 11:01:47 +00:00
|
|
|
set vdi_image "win7.vdi"
|
|
|
|
# Write overlay back to harddisk if set to 0
|
|
|
|
set use_ram_fs 0
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2014-05-28 12:48:33 +00:00
|
|
|
set build_components { }
|
2014-09-23 11:01:47 +00:00
|
|
|
set boot_modules { vm_auto_disk.vbox }
|
2014-05-28 12:48:33 +00:00
|
|
|
|
2014-02-12 12:53:42 +00:00
|
|
|
set config_of_app {
|
2014-07-02 10:11:20 +00:00
|
|
|
<start name="vbox" priority="-2">
|
2014-02-12 12:53:42 +00:00
|
|
|
<binary name="virtualbox" />
|
2014-09-23 11:01:47 +00:00
|
|
|
<resource name="RAM" quantum="1280M"/>
|
|
|
|
<config vbox_file="vm_auto_disk.vbox" vm_name="AutoDisk">
|
2015-01-13 16:38:04 +00:00
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc">
|
2014-09-23 11:01:47 +00:00
|
|
|
<vfs>}
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2014-09-23 11:01:47 +00:00
|
|
|
append_if [expr $use_ram_fs] config_of_app {
|
|
|
|
<dir name="ram"> <fs label="from_ram_fs"/> </dir>}
|
2014-02-12 12:53:42 +00:00
|
|
|
|
|
|
|
append config_of_app {
|
2015-01-13 16:38:04 +00:00
|
|
|
<dir name="dev"> <log/> <rtc/> </dir>
|
2014-09-23 11:01:47 +00:00
|
|
|
<rom name="vm_auto_disk.vbox" />
|
|
|
|
<fs />
|
2014-04-14 09:57:22 +00:00
|
|
|
</vfs>
|
|
|
|
</libc>
|
2014-02-12 12:53:42 +00:00
|
|
|
</config>
|
2014-09-23 11:01:47 +00:00
|
|
|
<route>}
|
|
|
|
|
|
|
|
append_if [expr $use_ram_fs] config_of_app {
|
|
|
|
<service name="File_system">
|
|
|
|
<if-arg key="label" value="from_ram_fs" />
|
|
|
|
<child name="ram_fs"/>
|
|
|
|
</service>}
|
|
|
|
|
|
|
|
append config_of_app {
|
2014-02-12 12:53:42 +00:00
|
|
|
<service name="File_system"> <child name="rump_fs"/> </service>
|
|
|
|
<any-service> <parent/> <any-child /> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
}
|
|
|
|
|
2014-05-07 09:48:19 +00:00
|
|
|
source ${genode_dir}/repos/ports/run/virtualbox_auto.inc
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2014-09-23 11:01:47 +00:00
|
|
|
# copy vbox configuration to bin directory
|
|
|
|
exec cp ${genode_dir}/repos/ports/run/vm_auto_disk.vbox bin/.
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
2015-01-15 09:55:01 +00:00
|
|
|
run_genode_until {\[init -\> vbox\].*Guest Additions capability report:.*seamless: no, hostWindowMapping: no, graphics: no} 70
|
2015-01-08 21:09:08 +00:00
|
|
|
run_genode_until {\[init -\> vbox\].*Guest Additions capability report:.*seamless: yes, hostWindowMapping: no, graphics: yes} 170 [output_spawn_id]
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2014-09-23 11:01:47 +00:00
|
|
|
# cleanup bin directory - remove vbox file
|
|
|
|
exec rm bin/vm_auto_disk.vbox
|