How long do you have to be separated before you are legally divorced in Virginia?

Unless rules have changed, you have to file for divorce, you cannot just stay separated for any length of time and automatically become divorced.