Last active
October 7, 2021 05:57
-
-
Save RPTST/2592d8539979441cddee0d18632fdd55 to your computer and use it in GitHub Desktop.
How to run the VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install | |
// Pre-reqs | |
sudo apt-get install qemu-system qemu-utils python3 python3-pip // for Ubuntu 19.04+, Debian, Mint, and Pop!_OS 19.04+. | |
// Clone the repo | |
mkdir ~/projects/ | |
cd ~/projects/ | |
git clone https://github.com/foxlet/macOS-Simple-KVM.git | |
cd macOS-Simple-KVM/ | |
// Getting Started | |
./jumpstart.sh --mojave | |
// Creating HDD image | |
qemu-img create -f qcow2 Mybigboy.qcow2 64G | |
// Edit basic.sh and add the following lines at the end of the file. | |
nano basic.sh | |
// | |
-drive id=SystemDisk,if=none,file=Mybigboy.qcow2 \ | |
-device ide-hd,bus=sata.4,drive=SystemDisk \ | |
-nographic \ | |
-vnc :0 -k en-us \ | |
// | |
In addition modify the following: | |
-m 8G \ | |
-smp cores=2,threads=4,sockets=1 \ | |
//Run the application | |
./basic.sh | |
// Then just VNC into you VM for setup | |
// If you're using a cloud-based/headless system, you can use headless.sh to set up a quick VNC instance. Settings are defined through variables as seen in the following example. VNC will start on port 5900 by default. | |
HEADLESS=1 MEM=8G CPUS=4 SYSTEM_DISK=MyDisk.qcow2 ./headless.sh | |
//To Start customizing your set look into the following: | |
https://github.com/foxlet/macOS-Simple-KVM/blob/master/docs/guide-screen-resolution.md | |
https://github.com/foxlet/macOS-Simple-KVM/blob/master/docs/guide-passthrough.md | |
https://github.com/foxlet/macOS-Simple-KVM/blob/master/docs/guide-networking.md | |
// That's it have fun! | |
// For useful youtube video on this please see: | |
https://www.youtube.com/watch?v=-Otg7JFMuVw | |
https://www.youtube.com/watch?v=QWZ_LjzT39k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment