Ok. One line to output VM name and os:
Code:
for x in `VBoxManage list vms | grep '"' | cut -d'"' -f2 2>/dev/null`; do VBoxManage showvminfo "${x}" | egrep -e "Name:" -e "Guest OS:" |cut -b 10-64 |tr -d '\n'| awk '{print $1" "$2" "$3" "$4" "$5" "$6}'; done
which outputs like this:
Code:
redhatest Red Hat (64 bit)
windowstest Windows XP (64 bit)
opensolaristest OpenSolaris (64 bit)
anothertest Windows 7 (64 bit)
archtest Arch Linux (64 bit)
bsdtest FreeBSD (64 bit)
warptest OS/2 Warp 4.5
Working on the portion to determine which is running and append that file with that.