How to run sketches on Ubuntu Virtual Box

Hello,

I am using an Oracle VB virtual machine to run Linux Ubuntu. I have arduino ide set up on this vm but am having trouble uploading sketches to the board. This is mainly because it does not give me the option to select a serial port. I understand since it is a virtual machine it may not be able to detect the usb port in my actual computer. Can anyone guide me in making it so I can run my sketch on my virtual machine?

edit: perhaps this would also be fitting in a forum regarding virtualbox but I thought I'd try posting here first.

On the VirtualBox menu of the virtual machine window, click the Devices > USB menu item. You should see the port of your Arduino board listed under that menu. Click on it. After doing that, you should now see the port in the Arduino IDE's Tools > Port menu.

Note that the Arduino IDE's Tools > Port menu is only updated after you have closed and then re-opened the Tools menu.