{"id":34,"date":"2023-06-26T14:12:32","date_gmt":"2023-06-26T12:12:32","guid":{"rendered":"http:\/\/cbleile.de\/wordpress\/?p=34"},"modified":"2023-06-26T14:12:32","modified_gmt":"2023-06-26T12:12:32","slug":"building-a-transportable-oracle-sandbox-environment-for-an-apple-silicon-laptop-macbook-with-m1-or-m2-processor","status":"publish","type":"post","link":"http:\/\/cbleile.de\/wordpress\/building-a-transportable-oracle-sandbox-environment-for-an-apple-silicon-laptop-macbook-with-m1-or-m2-processor\/","title":{"rendered":"Building a transportable Oracle Sandbox environment for an Apple Silicon Laptop (MacBook with M1- or M2-processor)"},"content":{"rendered":"\n<p>Since Apple released their Apple Silicon Laptops based on the ARM processor architecture, it became difficult for Consultants with such a device to run their Oracle Sandbox environment, because the main Oracle products are running on the Intel architecture. Hence a virtual machine on an Apple Silicon MacBook cannot be used for e.g. an Oracle Database Sandbox environment. You may use emulators like described <a href=\"https:\/\/www.dbi-services.com\/blog\/running-intel-x86-64-vms-with-an-oracle-db-on-apple-silicon-arm\/\">here<\/a>, but they are so slow, that they are not usable for daily tests.<\/p>\n\n\n\n<p>So what can you do? You may run your test environment on the Cloud, but that produses additional costs and is not so easy to setup (except if you use <a href=\"https:\/\/www.dbi-services.com\/products\/yak\/\">YaK<\/a> ?).<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>I want to explain another alternative here: Running your Oracle Sandbox on a separate AMD-based Mini PC. I used AMD instead of Intel, because it\u2019s more affordable with a 4-Core processor. To manage several environments on my external Mini PC I\u2019m using Proxmox (Open Source Type I hypervisor\/virtualisation software) to virtualise my Sandbox environments. Here are my components:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/My-Hardware.png\" alt=\"\" class=\"wp-image-26294\"\/><\/figure>\n\n\n\n<p>I.e. on the right I have my Apple MacBook Air 10,1 with 8GB of RAM and the M1 processor. On the left my external machine, which has the following specifications: Mini PC, AMD Ryzen 7 3750H Desktop PC (Quad-Core), 16GB DDR4 RAM 512GB. The Mini PC was purchased for 300.- Euros. It is small and light: 12&#215;4.5&#215;14.5 cm, 476g. Below the Mini PC an USB stick with a Proxmox ISO image on it.<\/p>\n\n\n\n<p>To be able to use the Sandbox when connected to a network, the 2 machines should be connected through network cable with private IP addresses. In case the Mac has network access through WLAN it should act as a Gateway for the Mini PC.<\/p>\n\n\n\n<p>Before switching on the Mini PC I configured the Mac to act as an Internet Gateway. First of all I gave my Mac a fix internal IP on the network adapter used:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/Private-IP.png\" alt=\"\" class=\"wp-image-26295\" width=\"840\" height=\"744\"\/><\/figure>\n\n\n\n<p>Then I setup Internet Sharing on my Mac, i.e. the Mac acts as a gateway, In the System Settings I searched for \u201cinternet sharing\u201d:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/Internet-Sharing-1.png\" alt=\"\" class=\"wp-image-26296\"\/><\/figure>\n\n\n\n<p>Clicking on the little \u201cI\u201d next to enabling Internet Sharing I get this to setup what interface I provide internet sharing with:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/Internet-Sharing-2.png\" alt=\"\" class=\"wp-image-26297\"\/><\/figure>\n\n\n\n<p>After confirming that and enabling Internet Sharing the following message appears:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/Internet-Sharing-3.png\" alt=\"\" class=\"wp-image-26298\"\/><\/figure>\n\n\n\n<p>That\u2019s OK, because I\u2019m using my own private network to the Mini PC only. So I clicked Start:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/Internet-Sharing-4.png\" alt=\"\" class=\"wp-image-26299\"\/><\/figure>\n\n\n\n<p>At this point I can start setting up Proxmox on my Mini PC. I installed it with DHCP enabled, so that it gets an IP address from my Mac automatically.<\/p>\n\n\n\n<p>The hypervisor gets an IP-address 192.168.2.2 and I can connect to it with the browser:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/Proxmox1.png\" alt=\"\" class=\"wp-image-26301\"\/><\/figure>\n\n\n\n<p>Now I can install e.g. an Oracle 23cFree for developers in a VM as described <a href=\"https:\/\/www.dbi-services.com\/blog\/installing-oracle-23c-free-developer-release-on-proxmox\/\">here<\/a>.<\/p>\n\n\n\n<p>Finally I have my portable Oracle Sandbox running and accessible from my Apple SIlicon Laptop:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/06\/Finally-1024x768.jpeg\" alt=\"\" class=\"wp-image-26310\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>In the past I used Virtualbox and Vagrant to run my Oracle-Sandbox-environments directly on my Intel MacBook Pro 2019. If I want to remain on a Mac on Apple SIlicon then I need to adjust my Sandbox environment. Using an external AMD (or Intel) based Mini PC is affordable today. With Proxmox as a Type 1 hypervisor I can handle the VMs easily. The only efforts I have is to migrate my Virtualbox-VMs managed in Vagrant to Proxmox.<\/p>\n\n\n\n<p>REMARK 1: If you can afford to spend more money for your Mini PC then you may check the latest Intel NUC 13 Pro, which is a high-performance device. See e.g. the Youtube-video <a href=\"https:\/\/youtu.be\/C9x0vW4qCYw\">here<\/a>.<\/p>\n\n\n\n<p>REMARK 2: If you want to remain on Virtualbox and Vagrant then just install Linux or Windows on your Mini PC, but this requires maintaining the OS as well. Maintaining Proxmox requires much less efforts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since Apple released their Apple Silicon Laptops based on the ARM processor architecture, it became difficult for Consultants with such a device to run their Oracle Sandbox environment, because the main Oracle products are running on the Intel architecture. Hence a virtual machine on an Apple Silicon MacBook cannot be used for e.g. an Oracle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[3,31],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-oracle","tag-proxmox"],"_links":{"self":[{"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":1,"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":35,"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/posts\/34\/revisions\/35"}],"wp:attachment":[{"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/cbleile.de\/wordpress\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}