Monday, January 25, 2010

VirtualBox - Start up Virtual Machine without gui

So you can ssh into it or whatever

VBoxManage startvm "windows xp" --type headless
VBoxManage controlvm "windows xp" poweroff

Tuesday, January 19, 2010

virtualbox - convert img file to vdi


VBoxManage convertfromraw -format VDI [filename].img [filename].vdi

source(s): http://mdm-adph.blogspot.com/2009/05/using-img-files-with-virtualbox-to-test.html

Monday, January 18, 2010

mysql - get rid of pipe delimiter, and auto escaping

mysql --silent
> select '\\';
\\

When using IO redirection, mysql commandline automatically enters --silent or --batch mode, and auto escapes the output. -r (--raw) is the fix.

mysql -r --silent
> select '\\';
\


mysql -r -D digicert_com < somequery.txt > Desktop/r-queries.txt

source(s): http://bugs.mysql.com/bug.php?id=35122

Tuesday, January 12, 2010

VirtualBox copy harddrive to new uuid

This should work fine with vdi and vmdk files.
VBoxManage clonevdi myhardrive.vdi


source(s): http://www.brianjester.us/blog/index.php?entry=entry080720-165143