1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="solariscodedumper">
|
---|
4 | <title>Configuring the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> CoreDumper on Oracle Solaris Hosts</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>
|
---|
8 | <ph conkeyref="vbox-conkeyref-phrases/product-name"/> is capable of producing its own core files for
|
---|
9 | extensive debugging when things go wrong. Currently this is only
|
---|
10 | available on Oracle Solaris hosts.
|
---|
11 | </p>
|
---|
12 | <p>
|
---|
13 | The <ph conkeyref="vbox-conkeyref-phrases/product-name"/> CoreDumper can be enabled using the following
|
---|
14 | command:
|
---|
15 | </p>
|
---|
16 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> VBoxInternal2/CoreDumpEnabled 1</pre>
|
---|
17 | <p>
|
---|
18 | You can specify which directory to use for core dumps with this
|
---|
19 | command, as follows:
|
---|
20 | </p>
|
---|
21 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> VBoxInternal2/CoreDumpDir <varname>path-to-directory</varname>
|
---|
22 | </pre>
|
---|
23 | <p> Ensure the directory you specify is on a volume with sufficient free space and that the <ph
|
---|
24 | conkeyref="vbox-conkeyref-phrases/product-name"/> process has sufficient permissions to
|
---|
25 | write files to this directory. If you skip this command and do not specify any core dump
|
---|
26 | directory, the current directory of the <ph conkeyref="vbox-conkeyref-phrases/product-name"/>
|
---|
27 | executable will be used. This would most likely fail when writing cores as they are protected
|
---|
28 | with root permissions. It is recommended you explicitly set a core dump directory. </p>
|
---|
29 | <p>
|
---|
30 | You must specify when the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> CoreDumper should be
|
---|
31 | triggered. This is done using the following commands:
|
---|
32 | </p>
|
---|
33 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> VBoxInternal2/CoreDumpReplaceSystemDump 1
|
---|
34 | $ VBoxManage setextradata <varname>VM-name</varname> VBoxInternal2/CoreDumpLive 1</pre>
|
---|
35 | <p>
|
---|
36 | At least one of the above two commands will have to be provided if
|
---|
37 | you have enabled the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> CoreDumper.
|
---|
38 | </p>
|
---|
39 | <p>
|
---|
40 | Setting <codeph>CoreDumpReplaceSystemDump</codeph> sets up the
|
---|
41 | VM to override the host's core dumping mechanism and in the event
|
---|
42 | of any crash only the <ph conkeyref="vbox-conkeyref-phrases/product-name"/> CoreDumper would produce the
|
---|
43 | core file.
|
---|
44 | </p>
|
---|
45 | <p>
|
---|
46 | Setting <codeph>CoreDumpLive</codeph> sets up the VM to produce
|
---|
47 | cores whenever the VM process receives a
|
---|
48 | <codeph>SIGUSR2</codeph> signal. After producing the core file,
|
---|
49 | the VM will not be terminated and will continue to run. You can
|
---|
50 | thus take cores of the VM process using the following command:
|
---|
51 | </p>
|
---|
52 | <pre xml:space="preserve">$ kill -s SIGUSR2 <varname>VM-process-id</varname>
|
---|
53 | </pre>
|
---|
54 | <p>
|
---|
55 | The <ph conkeyref="vbox-conkeyref-phrases/product-name"/> CoreDumper creates core files of the form
|
---|
56 | <filepath>core.vb.<varname>process-name</varname>.<varname>process-ID</varname>
|
---|
57 | </filepath>
|
---|
58 | such as <filepath>core.vb.VBoxHeadless.11321</filepath>.
|
---|
59 | </p>
|
---|
60 | </body>
|
---|
61 |
|
---|
62 | </topic>
|
---|