Code: Select all
sudo /usr/libexec/qemu-kvm \
-machine q35,accel=kvm \
-m 4096 \
-cpu Penryn -smp 4,cores=2 \
-bios ./osx-kvm-2/share/qemu/bios-mac.bin \
-kernel /var/lib/libvirt/images/enoch_rev2902_boot \
-usb -device usb-kbd -device usb-tablet \
-netdev user,id=usr0 -device e1000,netdev=usr0,id=vnet0 \
-device ide-drive,bus=ide.0,drive=MacDVD \
-drive id=MacDVD,if=none,snapshot=on,file=/var/lib/kimchi/isos/Install_macOS_10.12.5_Sierra.iso \
-device ide-drive,bus=ide.2,drive=MacHDD \
-drive id=MacHDD,if=none,file=./mac_hdd.img
I wanted to install the guest permanently in KVM as a domain. I tried to translate the above command as follows:
Code: Select all
sudo virt-install --virt-type=kvm \
--name macOSSierra \
--machine q35 --virt-type kvm \
--memory 4096 \
--cpu Penryn --vcpus sockets=2,cores=4,threads=2 \
--disk size=32 \
--disk /var/lib/kimchi/isos/Install_macOS_10.12.5_Sierra.iso,device=cdrom,perms=ro \
--boot kernel=/var/lib/libvirt/images/enoch_rev2902_boot,cdrom \
--input tablet,bus=usb \
--input keyboard,bus=usb \
--network network=default,model=e1000
Any idea what went wrong with the virt-install command?
Thank you.