VirtualBox

Changeset 33156 in vbox for trunk/doc


Ignore:
Timestamp:
Oct 15, 2010 12:11:48 PM (14 years ago)
Author:
vboxsync
Message:

doc/manual: document VM core format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/user_Troubleshooting.xml

    r32945 r33156  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
    3   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
     3"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
    44<chapter id="Troubleshooting">
    55  <title>Troubleshooting</title>
     
    194194            <computeroutput>VBOX_GUI_DBG_ENABLED</computeroutput> or
    195195            <computeroutput>VBOX_GUI_DBG_AUTO_SHOW</computeroutput>
    196             environment variable to <computeroutput>true</computeroutput> 
    197             before launching the VirtualBox process. Setting these variables 
     196            environment variable to <computeroutput>true</computeroutput>
     197            before launching the VirtualBox process. Setting these variables
    198198            (only their presence is checked) is effective even when the first
    199             VirtualBox process is the VM selector window. VMs subsequently 
     199            VirtualBox process is the VM selector window. VMs subsequently
    200200            launched from the selector will have the debugger enabled.</para>
    201201          </listitem>
    202202
    203203          <listitem>
    204             <para>Set the
    205             <computeroutput>GUI/Dbg/Enabled</computeroutput> extra data item to
    206             <computeroutput>true</computeroutput> before launching the
    207             VM.  This can be set globally or on a per VM basis.</para>
    208           </listitem>
    209 
     204            <para>Set the <computeroutput>GUI/Dbg/Enabled</computeroutput>
     205            extra data item to <computeroutput>true</computeroutput> before
     206            launching the VM. This can be set globally or on a per VM
     207            basis.</para>
     208          </listitem>
    210209        </itemizedlist></para>
    211210
     
    300299            <para><computeroutput>bc</computeroutput> -- clear a
    301300            breakpoint</para>
     301          </listitem>
     302
     303          <listitem>
     304            <para><computeroutput>writecore</computeroutput> -- writes a VM
     305            core file to disk, refer <xref linkend="guestcoreformat" />
     306            </para>
    302307          </listitem>
    303308        </itemizedlist></para>
     
    398403      provided can be invaluable.</para>
    399404    </sect2>
     405
     406    <sect2 id="guestcoreformat">
     407      <title>VM core format</title>
     408
     409      <para>VirtualBox uses the 64-bit ELF format for its VM core files. The
     410      VM core file contain the memory and CPU dumps of the VM and can be
     411      useful for debugging your guest OS. The 64-bit ELF object format
     412      specficiation can be obtained here: <literal><ulink
     413      url="http://www.tkk.fi/Misc/Electronics/faq/vga2rgb/calc.html">http://downloads.openwatcom.org/ftp/devel/docs/elf-64-gen.pdf</ulink></literal>.</para>
     414
     415      <para>The overall layout of the VM core format is as follows:</para>
     416
     417      <para><screen>[ ELF 64 Header]
     418[ Program Header, type PT_NOTE ]
     419  -&gt; offset to COREDESCRIPTOR
     420[ Program Header, type PT_LOAD ] - one for each contiguous physical memory range
     421  -&gt; Memory offset of range
     422  -&gt; File offset
     423[ Note Header, type NT_VBOXCORE ]
     424[ COREDESCRIPTOR ]
     425  -&gt; Magic
     426  -&gt; VM core file version
     427  -&gt; VBox version
     428  -&gt; Number of vCPUs etc.
     429[ Note Header, type NT_VBOXCPU ] - one for each vCPU
     430[ vCPU 1 Note Header ]
     431  [ CPUMCTX - vCPU 1 dump ]
     432[ Additional Notes + Data ] - currently unused
     433[ Memory dump ]</screen></para>
     434
     435      <para>The memory descriptors contain physical addresses relative to the
     436      guest and not virtual addresses. Regions of memory such as MMIO regions
     437      are not included in the core file.</para>
     438
     439      <para>The relevant data structures and definitions can be found in the
     440      VirtualBox sources under the following header files:
     441      <computeroutput>include/VBox/dbgfcorefmt.h</computeroutput>,
     442      <computeroutput>include/VBox/cpumctx.h</computeroutput> and
     443      <computeroutput>src/VBox/Runtime/include/internal/ldrELFCommon.h</computeroutput>.</para>
     444
     445      <para>The VM core file can be inspected using
     446      <computeroutput>elfdump</computeroutput> and GNU
     447      <computeroutput>readelf</computeroutput> or other similar
     448      utilities.</para>
     449    </sect2>
    400450  </sect1>
    401451
     
    648698      for download instructions.</para>
    649699    </sect2>
     700
    650701    <sect2>
    651702      <title>Long delays when accessing shared folders</title>
    652       <para>The performance for accesses to shared folders from a Windows guest
    653         might be decreased due to delays during the resolution of the VirtualBox
    654         shared folders name service. To fix these delays, add the following entries
    655         to the file
    656         <computeroutput>\windows\system32\drivers\etc\lmhosts</computeroutput>
    657         of the Windows guest:</para>
    658         <screen>255.255.255.255        VBOXSVR #PRE
     703
     704      <para>The performance for accesses to shared folders from a Windows
     705      guest might be decreased due to delays during the resolution of the
     706      VirtualBox shared folders name service. To fix these delays, add the
     707      following entries to the file
     708      <computeroutput>\windows\system32\drivers\etc\lmhosts</computeroutput>
     709      of the Windows guest:</para>
     710
     711      <screen>255.255.255.255        VBOXSVR #PRE
    659712255.255.255.255        VBOXSRV #PRE</screen>
    660         <para>After doing this change, a reboot of the guest is required.</para>
    661       </sect2>
    662        
     713
     714      <para>After doing this change, a reboot of the guest is required.</para>
     715    </sect2>
    663716  </sect1>
    664717
     
    733786      using the following command lines <screen>VBoxClient --clipboard
    734787VBoxClient --display
    735 VBoxClient --seamless</screen> when your X11 user session is started
    736       if you are using a common desktop environment (Gnome, KDE and others).
    737       If a particular desktop service is not working correctly, it is worth
     788VBoxClient --seamless</screen> when your X11 user session is started if you
     789      are using a common desktop environment (Gnome, KDE and others). If a
     790      particular desktop service is not working correctly, it is worth
    738791      checking whether the process which should provide it is running.</para>
    739792
     
    11191172      <title>VM aborts with out of memory errors on Solaris 10 hosts</title>
    11201173
    1121       <para>32-bit Solaris 10 hosts (bug 1225025) require swap space equal to, or
    1122       greater than the host's physical memory size. For example, 8 GB physical
    1123       memory would require at least 8 GB swap. This can be configured during a
    1124       Solaris 10 install by choosing a 'custom install' and changing the
    1125       default partitions.</para>
     1174      <para>32-bit Solaris 10 hosts (bug 1225025) require swap space equal to,
     1175      or greater than the host's physical memory size. For example, 8 GB
     1176      physical memory would require at least 8 GB swap. This can be configured
     1177      during a Solaris 10 install by choosing a 'custom install' and changing
     1178      the default partitions.</para>
    11261179
    11271180      <note>
    11281181        <para>This restriction applies only to 32-bit Solaris hosts, 64-bit
    1129           hosts are not affected!</para>
     1182        hosts are not affected!</para>
    11301183      </note>
    11311184
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette