yeeeees at last made it work !!!!!!!!!!!!!!!!!!!
to connect to the internet just connect the host pc to the internet and in virtual box go to network settings adpater 1 attached to nat and in advanced check cable connected not any other settings on network.also keep in mind that in virtual machine there wiil be no icon that shows you connected to the internet , just open explorer and voila!
here is the link for 30 day trial for vm by microsoft

choose os and vm and then download the desired os