"To be a warrior is not a simple matter of wishing to be one. It is rather an endless struggle that will go on to the very last moment of our lives. Nobody is born a warrior, in exactly the same way that nobody is born an average man. We make ourselves into one or the other." --Kokoro
I use Virtualbox on my Linux box that runs a virtual WinXP guest, primarily only used for the Outlook client as we use Exchange for email. I was constantly running out of space on the system drive c:\ as I only created a 10GB drive. Thinking I was going to have to re-do the entire XP installation to get a bigger disk, I’ve really been putting it off . However today, I found a howto guide that expands it without losing any data. This worked great, zero issues. Here’s a link to that howto. Uses gparted, pretty slick..
http://www.my-guides.net/en/content/view/122/26/
Update: So tried the clonehd method, and both are pretty much the same…where clonehd is doing the smaething as the copy is in gparted. I’m on the fence with what one is actually better, as I thought they both took about the same amount of time.. Here’s the instructions I used.
A core dump is very helpful for helping us tracking down crashes of VirtualBox. To create a core dump, start VirtualBox from a command line (e.g. xterm):
1
2
3
4
5
6
$ulimit-cunlimited
$sudo su
# echo -n 1 > /proc/sys/kernel/core_uses_pid
# echo -n 1 > /proc/sys/fs/suid_dumpable
# exit
$VirtualBox
or better start the VM directly:
1
2
3
4
5
6
$ulimit-cunlimited
$sudo su
# echo -n 1 > /proc/sys/kernel/core_uses_pid
# echo -n 1 > /proc/sys/fs/suid_dumpable
# exit
$/usr/lib/virtualbox/VirtualBox-startvm VM_NAME
Ensure that no startup script (~/.bashrc, ~/.bash_profile, ~/.profile) contains an instruction like ulimit -c 0 as the limit cannot be increased once it was set to zero.
Starting with version 2.0.0, the VirtualBox processes are started suid root, that is, with permissions to do things that “normal” applications cannot. This is the reason for the
1
2
3
$sudo su
$echo-n1>/proc/sys/fs/suid_dumpable
$exit
before starting the VM/GUI (note that sudo echo will not do what we want here).
When VirtualBox or one of its processes crashes, a file core.<pid> is created in the current directory. Be aware that core dumps can be very huge. Please compress the file before submitting it to a bug report. Or better don’t attach the file to a report. Note that this core dump can contain a memory dump of your guest which can include sensitive information. Send it to frank _dot_ mehnert _at_ oracle _dot_ com if the compressed file is smaller than 5MB. Contact me directly otherwise.
If several core files are created, you can check which process created them using the command
Ensure that no startup script (~/.bashrc, ~/.bash_profile, ~/.profile) contains an instruction like ulimit -c 0 as the limit cannot be increased once it was set to zero.
The cores will now be placed in /var/cores/ folder with the global dumps will go into /var/crash/<hostname>
System core dumps need to be enabled via dumpadm. The important thing is to have “Savecore enabled” to “yes” (use dumpadm -y). The config. should look something like this:
1
2
3
4
5
6
# dumpadm
Dump content:kernel pages
Dump device:/dev/zvol/dsk/rpool/dump(dedicated)
Savecore directory:/var/crash/myhostname
Savecore enabled:yes
Save compressed:on
Forcing VirtualBox to terminate with a core dump ¶
Sometimes it is required to force a VirtualBox process to terminate, for example, a VM hangs for some unknown reason. On Linux, this can be done as follows:
User mode crash dumps on Windows Vista and Windows 7 ¶
The section To collect user-mode dumps of the Microsoft site explains how to enable user mode dumps on Windows Vista and Windows 7
More detailed information about collecting user-mode dumps is available on the MSDN site