Hope you have already installed your required software from IT team [eg. Vinit]. He has mainly installed the following software:
- Python 3.8
- Docker
- VSCode
- Sublime Text
- Anaconda including navigator
- Chrome
- MS Edge
- draw.io
- Acrobat reader [original]
- Itsycal [for notification from our office 365 calendar and more]
- Postman
- Mongodb Compass [community version]
- DBbrowser for sqllite
- balenaEtcher
- OpenVpn connect [to connect to our office.vpn to work and connect to our remote team]
- XCTU [to configure xBee module if needed]
- Microsoft Teams
- LibreOffice
After several R&D found that UTM | Virtual machines for Mac (getutm.app) can solve our problem. Before that I have tried with lima-vm/lima: Linux virtual machines, typically on macOS, for running containerd (github.com) which not helped out the problem with Docker Desktop run on MAC especially on our M1 MAC which can’t detect our xBee module USB port. M1 MAC host do not share the USB port with guest system [Docker container]. Also then we needed different VM for windows as well eg. Parallels [not free].
UTM does solve both windows and ubuntu can run with USB port sharing inside the container.
Remember:
- Size of the disk space can’t be change unless delete the VM [eg. Windows] and increase or decrease the size eg. 20 GB to 30 GB etc
- Windows need to unblock Device Manager by following a You tube link I provided below or you can approach Vinit [IT team]
- Never close the VM window directly by click on X. Instead shut down the VM properly from OS menu itself first and then can close the window
- Do not need to keep running UTM all the time. Run only when you require to run any VM OS
How to install UTM in M1 MAC:
- Download latest [at least 3.1.5] from UTM | Virtual machines for Mac (getutm.app) or Latest UTM release you can download from:
- Releases · utmapp/UTM (github.com)
- Open a terminal and run
1brew install qemu
- Install the UTM dmg file by clicking on it
- Follow this link to install and configure UTM for Ubuntu 20.04 Ubuntu 20.04 | UTM (getutm.app)
- but settings on UTM must be following
- need at least 64 GB space for Ubuntu guest [as we will be using Docker 20–30GB fails]
- Keep patient it can goes error or take some time around 10–20 min max to boot up if everything fine. Otherwise restart again and when it is calling rebooting just hold the shift key.
- Then terminal login with your username and password you have given when installing.
- Run the following commands from the above links to install Desktop and sharing lib
- After run all the commands for desktop you can login inside it
- To get the share folder inside the guest [Ubuntu] you may need to run this command
sudo apt update
sudo apt install ubuntu-desktop
sudo reboot
sudo apt install davfs2
sudo systemctl start spice-webdavd.service
sudo mount -t davfs -o noexec http://127.0.0.1:9843/ <your_mnt_folder>
- Click on USB icon need to click the USB device you attached to your host to get inside guest. For me it is USB connector for hat with xBee module.
- Now open a terminal and install
- sudo apt-get install docker-compose
- First time you may need the UI folder in your shared folder
- Now you are ready to get the git pull of our application and then run docker-compose to run the application
Similar way you can install Windows 10 home edition,. Before start installing kindly take the lic key for it from our IT team. Windows installation very straight forward.
Follow this link How to Install Windows 10 in UTM (M1 Mac) — YouTube or Windows 10/11 | UTM (getutm.app)
- Setup 20 GB space is more than enough
- connect USB drive and activate from VM top right panel
- Copy paste the folder containing [spice guest tool from above utm link, Mission Control application zip, USB to URT bridge driver zip] into desktop
- extract the zip folders inside that folder
- You need to unblock the Device Manager [Vinit from IT team helped me,
- How to Fix this App has Been Blocked for Your Protection Error in Windows 10 ]
- Now restart the system
- Connect the USB from RC
- activate the USB port from top right panel
- Then go to Device Manager and update the driver