Skip to content

Latest commit

 

History

History
67 lines (60 loc) · 1.62 KB

oldsh.md

File metadata and controls

67 lines (60 loc) · 1.62 KB

hardware

info
cpu r5 2600
board b450m-k
nvidia gtx1070itx

step1

  • install the vm:
    wget https://raw.githubusercontent.com/Bebove/macos-kvm/master/install_qemu.sh
    chmod 777 install_qemu.sh
    ./install_qemu.sh
    cd ~
    cp -r /media/q/Data/mac   ~/macOS-Simple-KVM
    chmod 777 ~/macOS-Simple-KVM
    cd macOS-Simple-KVM
    ./basic.sh
    

step2

  • install nvidia-driver

step3

  • run

    cd ~
    wget https://raw.githubusercontent.com/Bebove/macos-kvm/master/macos.xml
    apt-get install virt-manager -y
    systemctl enable libvirtd.service virtlogd.service
    systemctl start libvirtd.service virtlogd.service
    rm -rf /etc/default/grub
    cd /etc/default/
    wget https://raw.githubusercontent.com/Bebove/macos-kvm/master/grub
    chmod 777 grub
    reboot
    
  • edit the /etc/libvirt/qemu.conf. you must uncomment these two lines:

       user="root"
       group="root"
    

    and run

    systemctl enable libvirtd.service virtlogd.service
    systemctl start libvirtd.service virtlogd.service
    cd ~
    virsh define macos.xml
    virt-manager
    
  • in virt-manager ,you should del old mouth/keyboard, and add new.

  • go into virt-manager, add pcie nvidia card via virt-manager. you can also change the memory and the number of cpu.

  • run init 3

  • run

cd ~
sudo systemctl enable libvirtd.service virtlogd.service
sudo systemctl start libvirtd.service virtlogd.service
sudo virsh start OSX