| 198 | === Debugging Guest VM scripts === |
| 199 | |
| 200 | To debug what is going on within the guest VM you can use '''vboxmonitor''' which writes whatever |
| 201 | is received in stdin to the VM guest log (VBox.log). This in turn is read and rewritten to stderr.txt |
| 202 | in the slot directory by '''vboxwrapper'''. |
| 203 | |
| 204 | To use you must either use the premade vboxmonitor or build your own. Once on the guest VM you must |
| 205 | execute setuid on it so that it runs with root permissions. |
| 206 | |
| 207 | Usage: |
| 208 | {{{ |
| 209 | [root@localhost vboxmonitor]# echo this is a test | ./vboxmonitor |
| 210 | this is a test |
| 211 | }}} |
| 212 | |
| 213 | Log Output: |
| 214 | {{{ |
| 215 | 01:08:57.938896 Guest Log: this is a test |
| 216 | }}} |
| 217 | |
| 218 | Usage: |
| 219 | {{{ |
| 220 | [root@localhost vboxmonitor]# ls -la ../vboxwrapper | ./vboxmonitor |
| 221 | total 37052 |
| 222 | drwxrwxr-x 5 boincadm boincadm 4096 Jun 2 12:36 . |
| 223 | drwxrwxr-x 18 boincadm boincadm 4096 Oct 3 2013 .. |
| 224 | -rw-rw-r-- 1 boincadm boincadm 3831 Apr 24 2013 BuildMacVboxWrapper.sh |
| 225 | drwxrwxr-x 2 boincadm boincadm 4096 Apr 24 2013 cernvm |
| 226 | drwxrwxr-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 |
| 230 | lrwxrwxrwx 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 |
| 241 | drwxrwxr-x 2 boincadm boincadm 4096 Apr 24 2013 vboxwrapper.xcodeproj |
| 242 | }}} |
| 243 | |
| 244 | Log Output: |
| 245 | {{{ |
| 246 | 01:09:25.148427 Guest Log: total 37052 |
| 247 | 01:09:25.148762 Guest Log: drwxrwxr-x 5 boincadm boincadm 4096 Jun 2 12:36 . |
| 248 | 01:09:25.149071 Guest Log: drwxrwxr-x 18 boincadm boincadm 4096 Oct 3 2013 .. |
| 249 | 01:09:25.149445 Guest Log: -rw-rw-r-- 1 boincadm boincadm 3831 Apr 24 2013 BuildMacVboxWrapper.sh |
| 250 | 01:09:25.149729 Guest Log: drwxrwxr-x 2 boincadm boincadm 4096 Apr 24 2013 cernvm |
| 251 | 01:09:25.150070 Guest Log: drwxrwxr-x 3 boincadm boincadm 4096 Apr 24 2013 deprecated |
| 252 | 01:09:25.150374 Guest Log: -rw-rw-r-- 1 boincadm boincadm 11585 Apr 24 2013 floppyio.cpp |
| 253 | 01:09:25.150700 Guest Log: -rw-rw-r-- 1 boincadm boincadm 5910 Apr 24 2013 floppyio.h |
| 254 | 01:09:25.151029 Guest Log: -rw-rw-r-- 1 boincadm boincadm 71444 May 21 20:01 floppyio.o |
| 255 | 01: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 |
| 256 | 01:09:25.151864 Guest Log: -rw-rw-r-- 1 boincadm boincadm 927 May 29 2013 Makefile |
| 257 | 01:09:25.152190 Guest Log: -rw-rw-r-- 1 boincadm boincadm 1135 Apr 24 2013 Makefile_mac |
| 258 | 01:09:25.152476 Guest Log: -rw-rw-r-- 1 boincadm boincadm 90494 Jun 2 12:33 vbox.cpp |
| 259 | 01:09:25.152757 Guest Log: -rw-rw-r-- 1 boincadm boincadm 7573 Jun 2 12:33 vbox.h |
| 260 | 01:09:25.153045 Guest Log: -rw-rw-r-- 1 boincadm boincadm 249892 Jun 2 12:35 vbox.o |
| 261 | 01:09:25.199092 Guest Log: -rw-rw-r-- 1 boincadm boincadm 43848 Jun 2 12:33 vboxwrapper.cpp |
| 262 | 01:09:25.199479 Guest Log: -rw-rw-r-- 1 boincadm boincadm 1458 Dec 9 19:21 vboxwrapper.h |
| 263 | 01:09:25.199806 Guest Log: -rw-rw-r-- 1 boincadm boincadm 178548 Jun 2 12:35 vboxwrapper.o |
| 264 | 01:09:25.200147 Guest Log: -rw-rw-r-- 1 boincadm boincadm 438 May 21 19:56 vboxwrapper_win.h |
| 265 | 01:09:25.200490 Guest Log: -rw-rw-r-- 1 boincadm boincadm 2127 May 21 19:56 vboxwrapper_win.rc |
| 266 | 01:09:25.201024 Guest Log: drwxrwxr-x 2 boincadm boincadm 4096 Apr 24 2013 vboxwrapper.xcodeproj |
| 267 | }}} |
| 268 | |