Hypervisor

RSS for tag

Build virtualization solutions on top of a lightweight hypervisor without the need for third-party kernel extensions using Hypervisor.

Hypervisor Documentation

Posts under Hypervisor tag

23 Posts
Sort by:
Post not yet marked as solved
5 Replies
3.6k Views
Hello,because I have to test my OS X app with an older Mac OS X version (to make sure it is still compatible) I would like to setup a VM with an older OS X Version (El Capitan or Yosemite) using Parallels desktop. In order to create the VM a need the installer package.I can see the older OS X versions in the Mac app store app in the list of my purchased apps, but when I click the downlaod button a message appears: "This version of OS X 10.10 cannot be installed on this computer" ...As far as I can see the Apple Developer Downloads at https://developer.apple.com/download/more/ doesn't include installer packages - just updates. Any ideas how to get an older OS X installer package ... for developing and testing? Best regards Frank
Posted
by
Post not yet marked as solved
4 Replies
2.4k Views
Cannot open VMware Fusion virtual machine. Get these error messages: A. Transport (VMDB) error -14: Pipe connection has been broken. B. Failed to initialize monitor device. C. Could not open/dev/vmmon: No such file or directory
Posted
by
Post not yet marked as solved
10 Replies
2.0k Views
Hi, I want something like sandbox-exec, so I can run things that I don't trust, and restrict their ability to read or write files to only certain locations. Like most software devs I have to download and run lots of code from the internet and the danger of this really annoys me. Unfortunately sandbox-exec is marked as deprecated and the APIs in sandbox.h say "No longer supported". I notice there is some new stuff in the Apple docs about "hypervisors" and "virtualization". https://developer.apple.com/documentation/hypervisor https://developer.apple.com/documentation/virtualization Would these APIs allow me to start and control a virtual copy of my macOS, to serve like a sandbox? Are there other solutions that people use? As an example, say that I need to download and run a copy of memcached. It's a typical open source project – you unpack a source tgz, then run configure; make and get a binary. Now I want to run that without worrying that some hacker injected a piece of evil code to copy my files and send them somewhere. So I want to say "run this binary, while disallowing file reads and writes, except for directories X,Y,Z, and disallowing network connections, except for listening on port 1234."
Posted
by
Post not yet marked as solved
1 Replies
488 Views
The documentation is clear, https://developer.apple.com/documentation/vmnet "Packets sent from a different IPv4 address are dropped by the system." But I wanted to have some proxmox nodes (debian with lxc containers) to test and learn high-availability clustering with it Also it could be cool to use some containers for "micro-services" web architecture I'm using https://github.com/gyf304/vmcli to create the virtual machines (both x86/arm 64bits are usable), but due to this "single IP" limitation, I can't make a virtual hosts communicate Is there any option / configuration on bridge100 interface to bypass this limitation ?
Posted
by
Post not yet marked as solved
0 Replies
359 Views
Hello! There are a few similar open-source projects that implement support for creating macOS M1 guest Virtual Machine on macOS M1 Host, for example: https://github.com/jspahrsummers/Microverse https://github.com/KhaosT/MacVM But both of them share a common problem: any audio from guest VM (system sounds or youtube videos in Safari or Firefox) is played late on host by approximately 0.3 seconds. Is there any way how we can remove this latency, so it is possible to hear real-time audio from guest VM? Regards, Eugene.
Posted
by
Post not yet marked as solved
2 Replies
454 Views
Hi, I'm not sure if i encountered a bug, or if this is expected behavior, but i have a cli that makes use of com.apple.security.virtualization entitlement, building it and running it on my local machine works like a charm. Building it on my local machine and running it on an another one results in the following error: Failed to validate the virtual machine configuration. Error Domain=VZErrorDomain Code=2 "The process doesn’t have the “com.apple.security.virtualization” entitlement." UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=The process doesn’t have the “com.apple.security.virtualization” entitlement.} But checking the entitlement, it's definitely there: $ codesign -d --entitlements - ./cli Executable=[...]/cli [Dict]   [Key] com.apple.security.virtualization   [Value]      [Bool] true Please note that we do not yet have an Apple developer account Thank you
Posted
by
Post not yet marked as solved
3 Replies
419 Views
Hey: I've grepped through Apple Documentations and found no hint about how to boot my macOS VM into 1TR to disable SIP and whatnot in a Virtualized macOS with Apple Silicon's Virtualization.framework. Any hint on how to implement this feature?
Posted
by
Post not yet marked as solved
4 Replies
380 Views
While launching a VM using the Virtualization framework, it transiently exhibits the following behavior: Start the VM, runs the completion handler, and immediately after, the VM exits with the following error: Error Domain=VZErrorDomain Code=1 "The virtual machine stopped unexpectedly." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine stopped unexpectedly.} Inspecting the Console logs, 302 of those logs messages can be found (for a single VM crash): virtual bool IOAccelSysMemory::wire(): memory failed to prepare. Error 0x1
Posted
by
Post not yet marked as solved
1 Replies
237 Views
Hi! I'm trying to figure out what mechanism request stop sends to the guest to actually request a stop. It doesn't appear that Virtualization.framework implements any ACPI bits relating to power buttons, so unclear how a linux VM would detect that a request has been stopped. I don't see any documentation around what devices are implemented by Virtualization.framework either, in terms of things like realtime clock, etc. Thanks for any help!
Posted
by
Post not yet marked as solved
1 Replies
230 Views
Given that the new iPads have M1 chips, would it be possible to use the virtualization framework on the on an iPad/iPhone? Though it is not currently listed as a possibility in the documentation, is it possible to modify any configuration settings to make it work in a mobile environment? I would like to run a virtual machine on an iPad/iOS to run python applications.
Posted
by
Post not yet marked as solved
1 Replies
245 Views
Hi, I am trying to create a virtual-machine using Virtualization.Framework (Reference) and trying to use VZFileHandleNetworkDeviceAttachment (Referece) as network device. The creation and starting of VM are successful but am not receiving any raw packets via the created datagram socket. Is there any working example for using VZFileHandleNetworkDeviceAttachment. Thanks in advance.
Posted
by
Post not yet marked as solved
3 Replies
350 Views
We need the ability to customize the IP ranges used by the virtualization networking on macOS 12.x I see that the ranges are specified in /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist Editing this file and rebooting resulted in the file reverting to its previous state. How can we change the network ranges and have them persist? What service do I need to restart to pickup the changes? -Blake
Posted
by
Post marked as solved
1 Replies
335 Views
Hello, I am very new to Xcode and trying to build and run a simple project that installs and runs a VM. The sample code is provided by apple at https://developer.apple.com/documentation/virtualization/running_macos_in_a_virtual_machine_on_apple_silicon_macs The code has two apps. One that installs the bundle and another that runs it. I am able to create the bundle but don't know how to run the app macOSVirtualMachineSampleApp. Every time I start run I get the following. create VM.bundle: the base directory already exists. Which means I am running InstallationTool app every time. How do I run the macOSVirtualMachineSampleApp? I can see that in products folder both apps have been created but I only see Installationtool command line tool when I go to that location.
Posted
by
Post not yet marked as solved
2 Replies
208 Views
I'm trying to control a virtual machine that has been created from two different processes, but fail to create a VZVirtualMachine object that refers to the same VM. For example, the first process creates and starts the virtual machine: let vmConfiguration = getFixedVMConfiguration() let vm = VZVirtualMachine(vmConfiguration: vmConfiguration) vm.start { // completion handler code ... } and another process tries to stop the virtual machine: let vmConfiguration = getFixedVMConfiguration() let vm = VZVirtualMachine(vmConfiguration: vmConfiguration) vm.stop { // completion handler code ... } The vm in the second thread will refer to a separte VM even when both have been created with the same configuration. Stopping it here will not change the state of the vm in the other process. Is there a way to access created VMs and use them from other processes? A workaround would be to handle VMs in a daemon, but I failed to pass a VZVirtualMachine object through XPC to another process, because it does not implement NSSecureCoding. How could that be achieved?
Posted
by
Post not yet marked as solved
1 Replies
233 Views
What is the policy regarding macOS apps which only support Apple Silicon? I am looking at building something around the Virtualization framework but it appears to only support the features I want on Apple Silicon macOS devices. Can I still publish this on Mac App Store? Is there a workaround for this if not?
Posted
by
Post not yet marked as solved
2 Replies
177 Views
Just wondering if anyone has any thoughts on running a real time OS inside Hypervisor. What level of time determinism could be expected? Could the VM process be given real time scheduling priority? Can the VM process be assigned an exclusive core(s)? Whilst probably not suitable for safety critical systems, this could be a nice approach for certain low to medium performance requirements. Any thoughts or info would be greatly appreciated.
Posted
by
Post not yet marked as solved
1 Replies
136 Views
Most of the time I find myself asking the question why something doesn't work when I had reasonable expectation that it would. In this case I find my self asking why something worked when I had NO expectation that it would! It is well known that Apple's virtual machine sample code does not support authentication with Apple services: iCloud, iTunes, Developer, etc. So it was a great surprise when I attempted to update Ventura beta 1 to beta 2...IT WORKED! System Update was able to authenticate with the Developer Beta Seed program and determine that my VM was enrolled and the update was applied without any issue. Can anyone tell me why this worked while other attempts to authenticate fail?
Posted
by