Changes between Version 71 and Version 72 of VboxApps


Ignore:
Timestamp:
Jun 3, 2014, 5:54:07 PM (10 years ago)
Author:
romw
Comment:

Add documentation for vboxmonitor

Legend:

Unmodified
Added
Removed
Modified
  • VboxApps

    v71 v72  
    196196   You should now be able to interact with your VM.
    197197
     198=== Debugging Guest VM scripts ===
     199
     200To debug what is going on within the guest VM you can use '''vboxmonitor''' which writes whatever
     201is received in stdin to the VM guest log (VBox.log).  This in turn is read and rewritten to stderr.txt
     202in the slot directory by '''vboxwrapper'''.
     203
     204To use you must either use the premade vboxmonitor or build your own.  Once on the guest VM you must
     205execute setuid on it so that it runs with root permissions.
     206
     207Usage:
     208{{{
     209[root@localhost vboxmonitor]# echo this is a test | ./vboxmonitor
     210this is a test
     211}}}
     212
     213Log Output:
     214{{{
     21501:08:57.938896 Guest Log: this is a test
     216}}}
     217
     218Usage:
     219{{{
     220[root@localhost vboxmonitor]# ls -la ../vboxwrapper | ./vboxmonitor
     221total 37052
     222drwxrwxr-x  5 boincadm boincadm    4096 Jun  2 12:36 .
     223drwxrwxr-x 18 boincadm boincadm    4096 Oct  3  2013 ..
     224-rw-rw-r--  1 boincadm boincadm    3831 Apr 24  2013 BuildMacVboxWrapper.sh
     225drwxrwxr-x  2 boincadm boincadm    4096 Apr 24  2013 cernvm
     226drwxrwxr-x  3 boincadm boincadm    4096 Apr 24  2013 deprecated
     227-rw-rw-r--  1 boincadm boincadm   11585 Apr 24  2013 floppyio.cpp
     228-rw-rw-r--  1 boincadm boincadm    5910 Apr 24  2013 floppyio.h
     229-rw-rw-r--  1 boincadm boincadm   71444 May 21 20:01 floppyio.o
     230lrwxrwxrwx  1 boincadm boincadm      48 May 21 20:01 libstdc++.a -> /usr/lib/gcc/i386-redhat-linux/4.1.2/libstdc++.a
     231-rw-rw-r--  1 boincadm boincadm     927 May 29  2013 Makefile
     232-rw-rw-r--  1 boincadm boincadm    1135 Apr 24  2013 Makefile_mac
     233-rw-rw-r--  1 boincadm boincadm   90494 Jun  2 12:33 vbox.cpp
     234-rw-rw-r--  1 boincadm boincadm    7573 Jun  2 12:33 vbox.h
     235-rw-rw-r--  1 boincadm boincadm  249892 Jun  2 12:35 vbox.o
     236-rw-rw-r--  1 boincadm boincadm   43848 Jun  2 12:33 vboxwrapper.cpp
     237-rw-rw-r--  1 boincadm boincadm    1458 Dec  9 19:21 vboxwrapper.h
     238-rw-rw-r--  1 boincadm boincadm  178548 Jun  2 12:35 vboxwrapper.o
     239-rw-rw-r--  1 boincadm boincadm     438 May 21 19:56 vboxwrapper_win.h
     240-rw-rw-r--  1 boincadm boincadm    2127 May 21 19:56 vboxwrapper_win.rc
     241drwxrwxr-x  2 boincadm boincadm    4096 Apr 24  2013 vboxwrapper.xcodeproj
     242}}}
     243
     244Log Output:
     245{{{
     24601:09:25.148427 Guest Log: total 37052
     24701:09:25.148762 Guest Log: drwxrwxr-x  5 boincadm boincadm    4096 Jun  2 12:36 .
     24801:09:25.149071 Guest Log: drwxrwxr-x 18 boincadm boincadm    4096 Oct  3  2013 ..
     24901:09:25.149445 Guest Log: -rw-rw-r--  1 boincadm boincadm    3831 Apr 24  2013 BuildMacVboxWrapper.sh
     25001:09:25.149729 Guest Log: drwxrwxr-x  2 boincadm boincadm    4096 Apr 24  2013 cernvm
     25101:09:25.150070 Guest Log: drwxrwxr-x  3 boincadm boincadm    4096 Apr 24  2013 deprecated
     25201:09:25.150374 Guest Log: -rw-rw-r--  1 boincadm boincadm   11585 Apr 24  2013 floppyio.cpp
     25301:09:25.150700 Guest Log: -rw-rw-r--  1 boincadm boincadm    5910 Apr 24  2013 floppyio.h
     25401:09:25.151029 Guest Log: -rw-rw-r--  1 boincadm boincadm   71444 May 21 20:01 floppyio.o
     25501:09:25.151573 Guest Log: lrwxrwxrwx  1 boincadm boincadm      48 May 21 20:01 libstdc++.a -> /usr/lib/gcc/i386-redhat-linux/4.1.2/libstdc++.a
     25601:09:25.151864 Guest Log: -rw-rw-r--  1 boincadm boincadm     927 May 29  2013 Makefile
     25701:09:25.152190 Guest Log: -rw-rw-r--  1 boincadm boincadm    1135 Apr 24  2013 Makefile_mac
     25801:09:25.152476 Guest Log: -rw-rw-r--  1 boincadm boincadm   90494 Jun  2 12:33 vbox.cpp
     25901:09:25.152757 Guest Log: -rw-rw-r--  1 boincadm boincadm    7573 Jun  2 12:33 vbox.h
     26001:09:25.153045 Guest Log: -rw-rw-r--  1 boincadm boincadm  249892 Jun  2 12:35 vbox.o
     26101:09:25.199092 Guest Log: -rw-rw-r--  1 boincadm boincadm   43848 Jun  2 12:33 vboxwrapper.cpp
     26201:09:25.199479 Guest Log: -rw-rw-r--  1 boincadm boincadm    1458 Dec  9 19:21 vboxwrapper.h
     26301:09:25.199806 Guest Log: -rw-rw-r--  1 boincadm boincadm  178548 Jun  2 12:35 vboxwrapper.o
     26401:09:25.200147 Guest Log: -rw-rw-r--  1 boincadm boincadm     438 May 21 19:56 vboxwrapper_win.h
     26501:09:25.200490 Guest Log: -rw-rw-r--  1 boincadm boincadm    2127 May 21 19:56 vboxwrapper_win.rc
     26601:09:25.201024 Guest Log: drwxrwxr-x  2 boincadm boincadm    4096 Apr 24  2013 vboxwrapper.xcodeproj
     267}}}
     268
    198269== Premade vboxwrapper executables ==
    199270
     
    215286
    216287x64: [http://boinc.berkeley.edu/dl/vboxwrapper_26086_x86_64-pc-linux-gnu.zip vboxwrapper_26086_x86_64-pc-linux-gnu.zip]
     288
     289== Premade vboxmonitor executables ==
     290
     291Linux:
     292
     293x86: [http://boinc.berkeley.edu/dl/vboxmonitor_26086_i686-pc-linux-gnu.zip vboxmonitor_26086_i686-pc-linux-gnu.zip]
     294
     295x64: [http://boinc.berkeley.edu/dl/vboxmonitor_26086_x86_64-pc-linux-gnu.zip vboxmonitor_26086_x86_64-pc-linux-gnu.zip]
    217296
    218297== Premade Linux VM Images ==