![]() Microsoft and Apple are two of the most well-known computer technology companies. Parallels is not free, but there is a trial version available so you can try it before you buy it. It creates a virtual machine, or separate environment, on your Mac in which you can install and run Windows. Parallels is a software program that allows you to run Windows on your Mac. Install AppVeyor Host AgentĪppVeyor Host Agent is a lightweight service running on your macOS machine that connects to AppVeyor and runs your builds.If you are a Mac user and need to run Windows software or games that are not available on the Mac platform, you can use Parallels to install Windows on your Mac. Specify macOS as Name and choose macOS in OS type dropdown.On BYOC page navigate to Images and click Add image.Specify Cloud name, for example Mike's computer and generate Host agent authorization token (or provide your own - it’s basically AppVeyor Host Agent identifier and the password it connects to AppVeyor with).Click Add cloud then choose Add cloud manually.Select Self-hosted jobs in the top menu.VM’s name should be put into Appveyor’s build cloud configuration.Note, this command will rename VM’s name and Vm’s subfoler in ~/Parallels. For example next command will rename it to macos-_prod: prlctl set packer-name macos_prod. register PVM: prlctl register ~/Parallels/packer-.pvm.move that PVM to ~/Parallels folder: mv output-parallels-pvm/packer-.pvm ~/Parallels. ![]() Packer will name that PVM according to pattern packer- e.g. Packer will create another PVM in output-parallels-pvm subfolder. Run packer build -only=parallels-pvm -var-file=vault.json macos.json.Prepare var-file for Packer named vault.json with sensitive values: Copy to clipboard full path to the VM’s folder for the next step. Locate VM’s folder, usually it’s $HOME/Parallels/.pvm.Unregister VM prepared earlier: prlctl unregister.Clone build-images repository: git clone, change current directory to the repository e.g.Download Packer, unpack it and copy packer executable to /usr/local/bin (or any other directory in your PATH variable): cp packer /usr/local/bin/packer.On host machine’s terminal window while in user’s Home directory: Now its time to run Packer to install software into build image. In Host’s terminal optimize VM: prlctl set -pause-idle off -faster-vm on -nested-virt on -auto-compress off -adaptive-hypervisor on -isolate-vm on. ![]() After installation it will require to restart VM. Click on it and proceed with installation. This will mount Parallels Guest Tools dvd into VM. Install Parallels Guest Tools by clicking yellow triangle at top right corner of VM’s window.Turn on Automatic login for appveyor user. Click “Users & Groups” icon and then click on Login Options.Click Sharing icon and enable “Remote login” (sshd) for Administrators group.Set Computer Sleep to “Never” with command: sudo systemsetup -setcomputersleep Never.Add user appveyor to sudoers with NOPASSWD: echo -e 'appveyor\tALL=(ALL)\tNOPASSWD: ALL\nDefaults:appveyor !requiretty' > /etc/sudoers.d/appveyor.When MacOS is installed login as appveyor user and continue with the following steps: During installation of Mac OS configure appveyor user. Click Reinstall MacOS and follow further instructions. It will show “MacOS Utilities” window first. It will create VM and start MacOS Recovery. Browse Free Systems and click on “Install MacOS Using the recovery Partition”. ![]() In Parallels Control Center GUI click “+” button to create a new VM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |