I do this all the time using Virtualbox, I use the "Bridged Adapter" mode which assigns the VM an actual address on my 192.168.1.* subnet. If that is what you are doing, cgminer needs to aim at the ip address assigned to the VM, i.e., it would be 192.168.1.xxx, (you can look up xxx using the "ip r" terminal command), and cg miner also needs to aim at the rpcport you specified, 9222. I think you are just aiming cgminer at the wrong ip address and wrong port.
I don't think you need that rpcconnect line in the config file but not 100% sure.
I put the wrong IP and port in the config example, corrected it.
Thanks for the input now know it can be done I'll keep at it probably something simple I'm missing.