Home Assistant installation virtual box

I used virtual box to install Home Assistant OS on my laptop , but After the installation , virtual box didn’t give any IPv4.
Also I used VM ware to install the OS but it gave me the same issue.
how I solve it …?