{"id":752,"date":"2019-02-21T17:15:52","date_gmt":"2019-02-21T14:15:52","guid":{"rendered":"https:\/\/artem.services\/?p=722"},"modified":"2019-02-22T14:27:40","modified_gmt":"2019-02-22T11:27:40","slug":"qemu-kvm-d1-83-d1-81-d1-82-d0-b0-d0-bd-d0-be-d0-b2-d0-ba-d0-b0-macos-mojave","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=752&lang=en","title":{"rendered":"QEMU\/KVM &#8212; MacOS Mojave installation"},"content":{"rendered":"<h4>1. <span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Convert to ISO image<\/span><\/span><\/h4>\n<p>First we need the <strong>MacOS Mojave<\/strong> image.<\/p>\n<blockquote><p>Download the official only on the <strong>Mac<\/strong><\/p><\/blockquote>\n<p>Follow the link: <a href=\"https:\/\/support.apple.com\/macos\/mojave\" target=\"_blank\" rel=\"noopener\">support.apple.com\/macos\/mojave<\/a><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-726\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-01.png\" alt=\"\" width=\"877\" height=\"238\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-01.png 877w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-01-300x81.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-01-768x208.png 768w\" sizes=\"(max-width: 877px) 100vw, 877px\" \/><\/p>\n<p>You will transfer to <strong>iTunes<\/strong>, agree with the license agreement, remove all the checkboxes about the update, and choose to download the image.<\/p>\n<p>After the download is complete, you need to convert the downloaded image into <strong>ISO<\/strong>, for this we will download the repository:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/github.com\/kholia\/OSX-KVM.git\r\n<\/pre>\n<p>And run the script:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n.\/mojave\/create_iso_mojave.sh\r\n<\/pre>\n<p>Upon completion of which, the converted <strong>ISO<\/strong> image will appear on the desktop.<\/p>\n<p><!--more--><\/p>\n<h4><\/h4>\n<h4>2. Host machine preparation<\/h4>\n<p>To run MacOS Mojave, you need a processor with support for <strong>sse4.1<\/strong> and <strong>sse4.2<\/strong> instructions<\/p>\n<blockquote><p>All actions were performed on <strong>OS Ubuntu 18.04<\/strong>, <strong>CPU:<\/strong> <strong>Intel Xeon E3-1270 v6<\/strong><\/p><\/blockquote>\n<p>Make sure the processor supports virtualization:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\negrep -c '(vmx|svm)' \/proc\/cpuinfo\r\n<\/pre>\n<p>If the match is &quot;<strong>0<\/strong>&quot; &#8212; does not support, if non-zero, it supports.<\/p>\n<p>Enable forwarding packages:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvim \/etc\/sysctl.conf\r\n<\/pre>\n<p>Add a line:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nnet.ipv4.ip_forward=1\r\n<\/pre>\n<p>Apply the changes:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsysctl -p\r\n<\/pre>\n<p>Install all necessary packages:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt install -y qemu qemu-kvm libvirt0 virt-manager bridge-utils libvirt-daemon-system libvirt-clients uml-utilities libguestfs-tools\r\n<\/pre>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Create interface &quot;<strong>tap0<\/strong>&quot;<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nip tuntap add dev tap0 mode tap\r\nip link set tap0 up promisc on\r\nbrctl addif virbr0 tap0\r\n<\/pre>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Now on the host machine we also need the following repository:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/github.com\/kholia\/OSX-KVM.git\r\n<\/pre>\n<p><span class=\"tlid-translation translation\"><span title=\"\">Copy our <strong>ISO<\/strong> image directly to the root of the downloaded repository.<\/span><\/p>\n<p><span class=\"\" title=\"\">Create a disk for a future virtual machine:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nqemu-img create -f qcow2 mac_hdd.img 128G\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4>3. <span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Installing MacOS Mojave<\/span><\/span><\/h4>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">We are interested in the script &quot;<strong>boot-macOS-Mojave.sh<\/strong>&quot; in the root of the repository<\/span><\/p>\n<p><span class=\"\" title=\"\">Correct the name and, if necessary, the path to the <strong>ISO<\/strong> image.<\/span> <span class=\"\" title=\"\">Since we have <strong>Ubuntu<\/strong> without a graphical shell, we need to add the following options for forwarding an image via <strong>VNC<\/strong>:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n-vga std -nographic -vnc :1\r\n<\/pre>\n<blockquote><p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Where <strong>1<\/strong> &#8212; screen numbers, <strong>1<\/strong> &#8212; corresponds to port <strong>5901<\/strong>. Counting from <strong>zero<\/strong>.<\/span><\/span><\/p><\/blockquote>\n<p><span class=\"tlid-translation translation\"><span title=\"\">And delete the line: &quot;<strong>-monitor stdio<\/strong>&quot;<\/span><\/p>\n<p><span class=\"\" title=\"\">To get the following:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nqemu-system-x86_64 -vga std -nographic -vnc :1 -enable-kvm -m 3072 -cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,$MY_OPTIONS\\\r\n          -machine pc-q35-2.11 \\\r\n          -smp 4,cores=2 \\\r\n          -usb -device usb-kbd -device usb-tablet \\\r\n          -device isa-applesmc,osk=&quot;ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc&quot; \\\r\n          -drive if=pflash,format=raw,readonly,file=OVMF_CODE.fd \\\r\n          -drive if=pflash,format=raw,file=OVMF_VARS-1024x768.fd \\\r\n          -smbios type=2 \\\r\n          -device ich9-intel-hda -device hda-duplex \\\r\n          -device ide-drive,bus=ide.2,drive=Clover \\\r\n          -drive id=Clover,if=none,snapshot=on,format=qcow2,file=.\/'Mojave\/Clover.qcow2' \\\r\n          -device ide-drive,bus=ide.1,drive=MacHDD \\\r\n          -drive id=MacHDD,if=none,file=.\/mac_hdd.img,format=qcow2 \\\r\n          -device ide-drive,bus=ide.0,drive=MacDVD \\\r\n          -drive id=MacDVD,if=none,snapshot=on,media=cdrom,file=.\/'Mojave.iso' \\\r\n          -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:AB:F8:B7\r\n<\/pre>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Run the script:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n.\/boot-macOS-Mojave.sh\r\n<\/pre>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Connect via VNC to the port specified in the startup script<\/span><\/span><img loading=\"lazy\" class=\"alignnone size-full wp-image-727\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-02.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-02.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-02-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-02-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-02-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-02-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Run the installation<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-728\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-03.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-03.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-03-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-03-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-03-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-03-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Immediately after selecting the installation language, run &quot;<strong>Disk Utility<\/strong>&quot;<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-729\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-04.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-04.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-04-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-04-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-04-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-04-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">We look at the size of the disks, and we find that we created for the virtual machine.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-730\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-05.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-05.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-05-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-05-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-05-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-05-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Select &quot;<strong>Erase<\/strong>&quot; and set the section name<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-732\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-07.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-07.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-07-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-07-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-07-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-07-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Close the &quot;<strong>Disk Utility<\/strong>&quot; and proceed to install the &quot;<strong>Install MacOS<\/strong>&quot;<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-733\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-08.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-08.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-08-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-08-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-08-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-08-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><img loading=\"lazy\" class=\"alignnone size-full wp-image-734\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-09.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-09.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-09-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-09-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-09-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-09-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">We agree with the license agreement and choose the section for installation<\/span><\/span><img loading=\"lazy\" class=\"alignnone size-full wp-image-735\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-10.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-10.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-10-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-10-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-10-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-10-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span title=\"\">Next, the installation process to paint it makes no sense.<\/span><\/p>\n<p><span class=\"\" title=\"\">After installing <strong>MacOS Mojave<\/strong>, turn off the virtual machine and remove from the script the lines connecting our <strong>ISO<\/strong> image as a <strong>DVD drive<\/strong>.<\/span><br \/>\n<span title=\"\">These 2 lines are:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n          -drive id=MacHDD,if=none,file=.\/mac_hdd.img,format=qcow2 \\\r\n          -device ide-drive,bus=ide.0,drive=MacDVD \\\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4>4. <strong><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Installing Clover on a partition with MacOS<\/span><\/span><\/strong><\/h4>\n<p><span class=\"tlid-translation translation\"><span title=\"\">This is necessary not to remove the extra image from the virtual machine, but to set up the system autostart, without the need to select the boot partition.<\/span><\/p>\n<p><span class=\"\" title=\"\">Start the virtual machine and select the <strong>3rd<\/strong> item &quot;<strong>Boot MacOS from MacOS<\/strong>&quot;<\/span><\/span><\/p>\n<blockquote><p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">MacOS &#8212; the name of the section that we asked when preparing the section (<strong>Erase<\/strong>)<\/span><\/span><\/p><\/blockquote>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">For this you will need:<\/span><\/span><br \/>\n1. <a href=\"https:\/\/sourceforge.net\/projects\/cloverefiboot\/\"><strong>Clover<\/strong><\/a><br \/>\n2. <a href=\"http:\/\/mackie100projects.altervista.org\/download-clover-configurator\/\"><strong>Clover Configurator<\/strong><\/a><\/p>\n<p><span class=\"tlid-translation translation\" tabindex=\"-1\"><span class=\"\" title=\"\">Download <strong>Clover<\/strong> and run, we get the following error:<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-736\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-11.png\" alt=\"\" width=\"766\" height=\"432\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-11.png 766w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-11-300x169.png 300w\" sizes=\"(max-width: 766px) 100vw, 766px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span title=\"\">Click &quot;<strong>OK<\/strong>&quot; and go to &quot;<strong>System Preferences<\/strong>&quot; -&gt; &quot;<strong>Security &amp; Privacy<\/strong>&quot; and see our <strong>Clover<\/strong>, and the message that for security purposes it was blocked.<\/span> <span class=\"\" title=\"\">Click &quot;<strong>Open Anyway<\/strong>&quot;<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-737\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-12.png\" alt=\"\" width=\"665\" height=\"570\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-12.png 665w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-12-300x257.png 300w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">We reach the point &quot;<strong>Installation Type<\/strong>&quot; and do not click &quot;<strong>Install<\/strong>&quot;, but go to &quot;<strong>Customize<\/strong>&quot;.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-738\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-13.png\" alt=\"\" width=\"614\" height=\"436\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-13.png 614w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-13-300x213.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Mark the top two points for <strong>EFI<\/strong><\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-739\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-14.png\" alt=\"\" width=\"618\" height=\"436\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-14.png 618w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-14-300x212.png 300w\" sizes=\"(max-width: 618px) 100vw, 618px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span title=\"\">Click &quot;<strong>Install<\/strong>&quot; and enter the user password<\/span><\/p>\n<p><span class=\"\" title=\"\"><strong>Clover<\/strong> installation is complete.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-740\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-15.png\" alt=\"\" width=\"617\" height=\"432\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-15.png 617w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-15-300x210.png 300w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">In essence, the <strong>Clover<\/strong> installation was needed in order to create a boot partition, and we\u2019ll clone the contents of the &quot;<strong>Clover.qcow2<\/strong>&quot; section into it.<\/span><\/p>\n<p><span class=\"\" title=\"\">Download <strong>Clover<\/strong> <strong>Configurator<\/strong> and run.<\/span> <span class=\"\" title=\"\">Just go to &quot;<strong>System Preferences<\/strong>&quot; -&gt; &quot;<strong>Security &amp; Privacy<\/strong>&quot; and allow the launch.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-741\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-16.png\" alt=\"\" width=\"1217\" height=\"677\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-16.png 1217w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-16-300x167.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-16-768x427.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-16-1024x570.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-16-954x531.png 954w\" sizes=\"(max-width: 1217px) 100vw, 1217px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">Select the &quot;<strong>Mount EFI<\/strong>&quot; section and see two <strong>EFI<\/strong> sections there.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-742\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-17.png\" alt=\"\" width=\"1215\" height=\"676\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-17.png 1215w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-17-300x167.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-17-768x427.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-17-1024x570.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-17-954x531.png 954w\" sizes=\"(max-width: 1215px) 100vw, 1215px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span title=\"\"><strong>disk1s1<\/strong> &#8212; mounted, <strong>MacOS<\/strong> partition, we will clone <strong>Clover<\/strong> here<\/span><\/p>\n<p><span title=\"\"><strong>disk0s1<\/strong> &#8212; not mounted, image section &quot;<strong>Clover.qcow2<\/strong>&quot;, we will clone from here<\/span><\/p>\n<p><span class=\"\" title=\"\">Mount disk <strong>disk0s1<\/strong> &#8212; &quot;<strong>Mount Partition<\/strong>&quot;<\/span><\/p>\n<p><span class=\"\" title=\"\">Go to the section &quot;<strong>Clover Cloner<\/strong>&quot;.<\/span> <span class=\"\" title=\"\">Make sure that the &quot;<strong>Source<\/strong>&quot; is the partition &quot;<strong>disk0s1<\/strong>&quot;, and the &quot;<strong>Target<\/strong>&quot; &#8212; &quot;<strong>disk1s1<\/strong>&quot;.<\/span> <span class=\"\" title=\"\">Click &quot;<strong>Clone<\/strong>&quot;.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-743\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-18.png\" alt=\"\" width=\"1215\" height=\"675\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-18.png 1215w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-18-300x167.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-18-768x427.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-18-1024x569.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-18-954x530.png 954w\" sizes=\"(max-width: 1215px) 100vw, 1215px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">After successful cloning, turn off the virtual machine, find the following lines in the startup script:<\/span><\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n          -device ide-drive,bus=ide.2,drive=Clover \\\r\n          -drive id=Clover,if=none,snapshot=on,format=qcow2,file=.\/'Mojave\/Clover.qcow2' \\\r\n<\/pre>\n<p><span class=\"tlid-translation translation\"><span title=\"\">And delete them.<\/span><\/p>\n<p><span class=\"\" title=\"\">We start again the virtual machine.<\/span> <span class=\"\" title=\"\">If everything is done correctly, then we see our <strong>Clover<\/strong><\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-744\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-19.png\" alt=\"\" width=\"1154\" height=\"899\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-19.png 1154w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-19-300x234.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-19-768x598.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-19-1024x798.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-19-954x743.png 954w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span title=\"\">Boot from the section with <strong>MacOS<\/strong>.<\/span> <span title=\"\">Open <strong>Clover Configurator<\/strong> again.<\/span> <span class=\"\" title=\"\">Go to the &quot;<strong>Mount EFI<\/strong>&quot; section and see that there is now one partition, we will mount it.<\/span><\/p>\n<p><span class=\"\" title=\"\">In the lower left corner we find the icon with the name &quot;<strong>Import Configuration<\/strong>&quot;.<\/span> <span class=\"\" title=\"\">In &quot;<strong>Locations<\/strong>&quot;, select &quot;<strong>EFI<\/strong>&quot; -&gt; &quot;<strong>CLOVER<\/strong>&quot; -&gt; &quot;<strong>config.plist<\/strong>&quot; and click &quot;<strong>Open<\/strong>&quot;.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-745\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-20.png\" alt=\"\" width=\"1213\" height=\"677\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-20.png 1213w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-20-300x167.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-20-768x429.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-20-1024x572.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-20-954x532.png 954w\" sizes=\"(max-width: 1213px) 100vw, 1213px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">In the section &quot;<strong>SECTIONS<\/strong>&quot; select the item &quot;<strong>Boot<\/strong>&quot; and bring it to the following form.<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-746\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-21.png\" alt=\"\" width=\"1216\" height=\"676\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-21.png 1216w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-21-300x167.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-21-768x427.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-21-1024x569.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/osx-kvm-21-954x530.png 954w\" sizes=\"(max-width: 1216px) 100vw, 1216px\" \/><\/p>\n<p><span class=\"tlid-translation translation\"><span class=\"\" title=\"\">In the lower left corner we find the icon with the name &quot;<strong>Export Configuration<\/strong>&quot; and click &quot;<strong>Save<\/strong>&quot; and reboot, when you turn on <strong>Clover<\/strong> will ask the partition from which it is loaded, select our section, all subsequent downloads it will be automatically loaded from it.<\/span><\/p>\n<p><span class=\"\" title=\"\">After that you can leave only the following files:<\/span><\/span><\/p>\n<ul>\n<li>boot-macOS-Mojave.sh<\/li>\n<li>mac_hdd.img<\/li>\n<li>OVMF_CODE.fd<\/li>\n<li>OVMF_VARS-1024&#215;768.fd<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. Convert to ISO image First we need the MacOS Mojave image. Download the official only on the Mac Follow the link: support.apple.com\/macos\/mojave You will transfer to iTunes, agree with the license agreement, remove all the checkboxes about the update, and choose to download the image. After the download is complete, you need to convert &hellip; <a href=\"https:\/\/artem.services\/?p=752&#038;lang=en\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;QEMU\/KVM &#8212; MacOS Mojave installation&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[535],"tags":[523,525,527,529,531,533],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/752"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=752"}],"version-history":[{"count":4,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/752\/revisions"}],"predecessor-version":[{"id":757,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/752\/revisions\/757"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}