11Troubleshooting
11.6.2VM aborts with out of memory errors on Solaris 10 hosts
Solaris 10 hosts (bug 1225025) requires swap space equal to, or greater than the host’s physical memory size. For example, 8 GB physical memory would require at least 8 GB swap. This can be configured during a Solaris 10 install by choosing a ’custom install’ and changing the default partitions.
For existing Solaris 10 installs, an additional swap image needs to be mounted and used as swap. Hence if you have 1 GB swap and 8 GB of physical memory, you require to add 7 GB more swap. This can be done as follows:
For ZFS (as root user):
zfs create
To mount if after reboot, add the following line to /etc/vfstab:
/dev/zvol/dsk/_<ZFS volume>_/swap - - swap - no -
Alternatively, you could grow the existing swap using:
zfs set volsize=8G rpool/swap
And reboot the system for the changes to take effect.
For UFS (as root user):
mkfile 7g /path/to/swapfile.img swap
To mount it after reboot, add the following line to /etc/vfstab:
/path/to/swap.img - - swap - no -
166