virtualization

All posts tagged virtualization

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.

http://trivialproof.blogspot.com/2011/01/resizing-virtualbox-virtual-hard-disk.html

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):

or better start the VM directly:

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

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

to be sure of the right one to send.

How to create dumps on Mac OS X ¶

To create a core dump on Mac OS X, start VirtualBox from a command line:

or better start the VM directly:

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 core files can be found in the /cores folder.

How to create dumps on Solaris ¶

To get core on Solaris host run the following command as root

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:

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:

As an alternative to kill you can do

On Mac OS X:

On Solaris:

You can find result core file according location specified in coreadm

Passing the signal number 4 (SIGILL) is essential! The same applies to the alternative frontends VBoxHeadless and VBoxSDL.

 

Minidumps on Windows ¶

Please visit this Microsoft site for more details about minidumps
Please visit the Microsoft Performance Team blog for more details about Application crash dumps

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

 

Our standard build = 30GB.  How do you expand the file system without losing data and/or the VM.

Our test

30GB standard VM

Need to increase /motr to 100GB

Before you start, verify that the new space can be seen.  Here is the un-modified fdisk.

Either reboot, or just enter this in.  This will rescan the disk to find the new space.

echo 1 > /sys/block/sda/device/rescan

 

 

#1  Start by creating a new primary with your new disk space, this also can be an extended

p = print

n = create new partition

w = write

t = type (8e = LVM)

Here’s the original without the new partition.

 

Add a new partition with the new space, we will create this on /dev/sda3.  n = create new partition, p = print, t = disk type

Now that it’s created we need to specify the partition type and switch that to Linux LVM.  Type = 8e for Linux LVM

 

Looks good.   Now we need to write this partition to disk using the w

 

 

run partprobe -s

which will re-scan the new partition table.  A reboot will do the samething, but why reboot?

 

Increase the physical layer

 

Increase the “system” volume. System = the volume name

 

Increase the Logical Volume

 

Finally increase the file system.

Note:  I had issues trying to use resize2fs on a physical host, as I was attempting to expand file system by adding a new disk to the system.  So try this as last step if that fails..

resize_reiserfs: On-line resizing finished successfully.

 

That’s it.