VirtualBox stores the guest OS in a virtual disc that is a file in the host operating system. It does nothing with the hard drive of the system. If you mess up, or don't want to use the VM installed...