Hi there,
Let us know how you have setup your Virtual machine's NIC card. Is it set to host only or bridged. If you want to have internet connectivity on your virtual machine I would suggest you should either use Bridged or NAT.
For your SSH query refer the following documentation:
http://blogs.oracle.com/sunrise/entr..._root_login_in
Instead of SSHing as root I would suggest you to SSH using normal user and then su - root. As that will be more appropriate way of accessing your machine over ssh and have root access.
I hope this helps.