{"id":2053,"date":"2021-04-27T15:44:51","date_gmt":"2021-04-27T15:44:51","guid":{"rendered":"https:\/\/dft.wiki\/?p=2053"},"modified":"2026-06-08T22:51:16","modified_gmt":"2026-06-09T02:51:16","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 guide works 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 dependencies are installed.<\/p>\n<pre>sudo apt update && 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 in VirtualBox with the following settings:<\/p>\n<ul>\n<li>Name it <strong>MacOS<\/strong><\/li>\n<li>4+ GB of RAM<\/li>\n<li>100+ GB of storage<\/li>\n<li>3+ CPUs<\/li>\n<li>Floppy disabled<\/li>\n<li>EFI enabled<\/li>\n<li>128+ MB of video memory<\/li>\n<li>3D Acceleration enabled<\/li>\n<li>Network Adapter set to Bridged (recommended)<\/li>\n<li>ISO installation disk added to the CD drive<\/li>\n<\/ul>\n<p>Open a terminal and run the following commands to configure 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>Some of these commands can be customized:<\/p>\n<ul>\n<li>Skip the second line if your processor is not <strong>Intel<\/strong>.<\/li>\n<li>Change the resolution on the last line as needed: 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>You can also edit <strong>MacOS\/MacOS.vbox<\/strong> directly to adjust VM settings, for example: <strong>Display VRAMSize=&#8221;<span style=\"color: #ff0000;\">256<\/span>&#8220;<\/strong><\/li>\n<\/ul>\n<p>Start the VM and set up the installation partition using <strong>Disk Utility<\/strong>.<\/p>\n<p>Find your disk. If it does not appear right away, click <strong>View<\/strong> then <strong>Show All Devices<\/strong>.<\/p>\n<p>Click <strong>Erase<\/strong> and enter a name for the new partition.<\/p>\n<p>Close <strong>Disk Utility<\/strong> and proceed with the installation.<\/p>\n<hr \/>\n<p><strong>BONUS<\/strong><\/p>\n<p>Open the Terminal and install the Homebrew package manager:<\/p>\n<pre>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre>\n<p>Then install some useful 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 guide works 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":4,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2053\/revisions"}],"predecessor-version":[{"id":5735,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2053\/revisions\/5735"}],"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}]}}