Getting a virtual address is completely legal. With a virtual office you will still need to comply with the same regulations that you would have with a physical office, such as obtaining your valid business licenses fitting for your business entity and registering your business address.
The contents of this site contain general information and may not reflect current legal developments or address your situation.