I am trying to setup a virtual machine running Linux on my Windows PC. My ultimate goal is to use GameMaker 2 to create arcade style games and run them on a banana pi board, so I can develop and build arcade machinces as a project with my high school students. But before I can do that, I need an Ubuntu device to compile the games into files that Linux can run on the banana pi board. I wish to use VirtualBox as my Ubuntu device.
I'm new to virtual machines and Linux, so I'm a bit out of my depth here. I have installed VirtualBox and installed Ubuntu 18.04. It seems to be working, and I am connected to the internet on the guest when using NAT network. But I cannot pint it from my host.
I've tried the following:
- Changing NAT network to bridge on the VM (this messes up the internet connection on the VM).
- Changing NAT network to Only Hosted Networks. I cannot find any Networks in VirtualBox > File > Settings > Network. Also messes up the internet on the VM.
- Changing my Ubuntu guest to static IP, since I read somewhere that the three first parts of the IP address has to be the same on the host and guest. Every time I try to change to static IP, I lose internet connection on the VM.
Ifconfig on virtual machine says:
Ipconfig on host says:inet 10.0.2.15 netmas 255.255.255.0 broadcast 10.0.2.255
IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
Thanks,
Peter