{"id":2053,"date":"2021-04-27T15:44:51","date_gmt":"2021-04-27T15:44:51","guid":{"rendered":"https:\/\/dft.wiki\/?p=2053"},"modified":"2023-07-12T08:46:44","modified_gmt":"2023-07-12T12:46:44","slug":"running-macos-in-virtualbox-on-linux","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=2053","title":{"rendered":"Running MacOS in VirtualBox on Linux"},"content":{"rendered":"<p>This step-by-step will work on <strong>VirtualBox 5.x and 6.x<\/strong> for <strong>macOS Sierra 10.12<\/strong>, <strong>macOS High Sierra 10.13<\/strong>, <strong>macOS Catalina 10.15<\/strong>, and others.<\/p>\n<p>Make sure your system is up to date and all the dependencies are installed.<\/p>\n<pre>sudo apt update &amp;&amp; sudo apt upgrade -y\r\nsudo apt install virtualbox virtualbox-dkms virtualbox-ext-pack virtualbox-guest-additions-iso virtualbox-guest-utils virtualbox-qt -y<\/pre>\n<p>Create a VM using VirtualBox:<\/p>\n<ul>\n<li>Name it MacOS,<\/li>\n<li>Give 4+ GB of RAM,<\/li>\n<li>Give 100+ GB of Storage,<\/li>\n<li>Give it 3+ CPUs,<\/li>\n<li>Disable Floppy,<\/li>\n<li>Enable EFI,<\/li>\n<li>Give 128+ MB for Video,<\/li>\n<li>Enable 3D Acceleration,<\/li>\n<li>Network Adapter work better as Bridged,<\/li>\n<li>Add the ISO installation disk to the CD drive.<\/li>\n<\/ul>\n<p>Go to the Linux terminal and issue the following commands to modify your VM to mimic Apple hardware:<\/p>\n<pre>VBoxManage modifyvm \"MacOS\" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff\r\nVBoxManage modifyvm \"MacOS\" --cpu-profile \"Intel Core i7-6700K\"\r\nVBoxManage setextradata \"MacOS\" \"VBoxInternal\/Devices\/efi\/0\/Config\/DmiSystemProduct\" \"iMac11,3\"\r\nVBoxManage setextradata \"MacOS\" \"VBoxInternal\/Devices\/efi\/0\/Config\/DmiSystemVersion\" \"1.0\"\r\nVBoxManage setextradata \"MacOS\" \"VBoxInternal\/Devices\/efi\/0\/Config\/DmiBoardProduct\" \"Iloveapple\"\r\nVBoxManage setextradata \"MacOS\" \"VBoxInternal\/Devices\/smc\/0\/Config\/DeviceKey\" \"ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc\"\r\nVBoxManage setextradata \"MacOS\" \"VBoxInternal\/Devices\/smc\/0\/Config\/GetKeyFromRealSMC\" 1\r\nVBoxManage setextradata \"MacOS\" \"VBoxInternal2\/EfiGraphicsResolution\" \"1920x1080\"<\/pre>\n<p>Many of the commands above can be customized.<\/p>\n<ul>\n<li>Do not issue the second line if your processor is not an <strong>Intel<\/strong>.<\/li>\n<li>Customize the size of the desired screen on the last line with: 1920&#215;1200 <strong>1920&#215;1080<\/strong> 1600&#215;1200 1680&#215;1050 <strong>1440&#215;900<\/strong> 1280&#215;800 1024&#215;768 640&#215;480<\/li>\n<li>Also edit the file MacOS\/MacOS.vbox to make modifications of the VM, for example: <strong>Display VRAMSize=&#8221;<span style=\"color: #ff0000;\">256<\/span>&#8220;<\/strong><\/li>\n<\/ul>\n<p>Start the VM and first set up the partition for the installation using the <strong>Disk Utility<\/strong>.<\/p>\n<p>Look for your disk. If it does not show up immediately, click on <strong>VIEW<\/strong> then <strong>ALL<\/strong>.<\/p>\n<p>Click on <strong>Erase<\/strong> and give the name for the new partition.<\/p>\n<p>Close the <strong>Disk Utilities<\/strong> and begin the installation.<\/p>\n<hr \/>\n<p><strong>BONUS<\/strong><\/p>\n<p>Open the Terminal and install the package manager Brew:<\/p>\n<pre>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre>\n<p>Then, install the basic CLI tools:<\/p>\n<pre>brew Install wget\r\nbrew Install htop\r\nbrew Install tnftp<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This step-by-step will work on VirtualBox 5.x and 6.x for macOS Sierra 10.12, macOS High [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-2053","post","type-post","status-publish","format-standard","hentry","category-hacking"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2053"}],"version-history":[{"count":3,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2053\/revisions"}],"predecessor-version":[{"id":3702,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2053\/revisions\/3702"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}