Oracle Virtual Box Mac OSX Physical Disk Attachment

1. Get the identity of the physical disk using
“diskutil list”
from the command line. Usually it’s named “System” if booting from an OSX Live USB drive

2. Unmount the physical disk from the system

3. From terminal create a holding VMDK file for Virtualbox to communicate with the physical disk through by:
“sudo VBoxManage internalcommands createrawvmdk -filename <<DIR/FILE.vmdk>> -rawdisk /dev/disk<<#>>”

4. Correct permissions on both the physical disk and the file you created, something like:
“sudo chmod 777 /dev/disk<<#>>”
and
“sudo chown <<group>>:<<user>> <<DIR/FILE.vmdk>>”
“sudo chmod 770 <<DIR/FILE.vmdk>>”

5. Launch Virtualbox, create a new DOS VM and attach a SATA Controller and then the new VMDKfile as a SATA disk

6. From Virtualbox “File>Virtual Media Manager”, modify the <<DIR/FILE.vmdk>> so that it’s set as a “writethrough” disk

7. Then attach the desired boot cd to the VM and ensure the boot order is correct

8. Start the VM!

Windows 7 SSD Tuning

Source: http://www.computing.net/howtos/show/solid-state-drive-ssd-tweaks-for-windows-7/552.html

  1. SATA Controller AHCI Mode
  2. Enable TRIM elevated cmd prompt: “fsutil behavior query DisableDeleteNotify”
  3. Disable System Restore (optional, recommended as it interferes with TRIM)
  4. Disbaled disk drive indexing
  5. Disbale Defrag on disk
  6. Disable Page File (optional, space saving only)
  7. Disable Hibernation (optional, space saving only): elevated cmd prompt: “powercfg -h off”
  8. Disable Prefetch & Superfetch: [HKEY_LOCAL_MACHINECurrentControlSetControlSessionManagerMemory ManagementPrefetchParameters] >> EnablePrefetcher and EnableSuperfetch = 0
  9. Disable Windows Write-Cache Buffer Flusing : Device Manager > Disk Drive > Policies > UNTICK “Enable write caching on the device”
  10. Disable Windows Search and Superfetch : services.msc > Superfetch = Disabled && Windows Search = Disabled
  11. Disable ClearPageFileAtShutdown and LargeSystemCache : [HKEY_LOCAL_MACHINECurrentControlSetControlSessionManagerMemory Management] > ClearPageFileAtShutdown && LargeSystemCache = 0

HOW TO ADD ADDITIONAL IP TO A NETWORK INTERFACE ON MAC OS X

Source: https://gerrydevstory.com/2012/08/20/how-to-create-virtual-network-interface-on-mac-os-x/

To add an additional IP to a network interface on OSX using the GUI simply “replicate service” on any interface via the cog in [Network Settings] and then assign the IP to the replicated interface manually.

source: http://hints.macworld.com/article.php?story=20041223112819235

From the terminal:

sudo ifconfig en1 inet xxx.xxx.xxx.xxx netmask 255.255.255.0 alias

Where sudo = execute as root, en1 = the interface you want to add an alias to, xxx.xxx.xxx.xxx = ip you wan to add, 255.255.255.0 = desired netmask.