Qemu USB Passthrough iPhone disconnects repeatedly - libvirt

I've a MacOS Catalina in virtual machine (libvirt/qemu), host machine is Fedora 31. I want to passthrough an iPhone SE for iOS development. When I connect the iPhone I see it in dmesg
[11680.439777] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[11680.457108] usb 3-1: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice= 8.04
[11680.457116] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[11680.457120] usb 3-1: Product: iPhone
[11680.457124] usb 3-1: Manufacturer: Apple Inc.
[11680.457128] usb 3-1: SerialNumber: XXXXX
Then I share it to MacOS VM, it disconnects and its Linux USB connection changes from usb 3-1 to usb 3-2. The connection ID increments with each try to share.
I have followed all recomendations to disable iPhone in udev rules and `gvfs-gphoto2 so Fedora doesn't care of the iPhone when connected.
There is similar question How do I get Qemu USB Passthrough to work for iPad / iPhone? but there is no answer.
I have more observations. When I share the iPhone to Windows 10 (running in libvirt VM as well), it works, the USB connection doesn't change. When I share iPod 5 to MacOS, it works.
So the problem is only with the iPhone shared to the MacOS. Has anyone been able to share iPhone to virtualized MacOS?

Finally solved this with
-device usb-host,vendorid=0x05ac,productid=0x12ab,guest-reset=false \

Related

Run an Windows 8.1 Simulator on a Windows 10 PC

Can I run the Windows 8.1 simulator on a Windows 10 machine? I need to test on Windows 8.1, but I'm no longer able to do it, since I upgraded to Windows 10 and installed the Windows 10 SDK and simulator.
No. The simulator isn't an emulator: It simulates resolution and input through a terminal server session connected back to the local host running the local OS.
The Windows Phone emulators are different. They are hyper-v images of the target mobile OS and so don't need to match the host OS.

Unable to register my Lumia 1020 as a testing phone for windows phone apps

I have a Nokia Lumia 1020 that I need to register as a testing device for my Windows Phone Apps. It is running Lumia Cyan thus Windows 8.1. I have Windows Phone SDK 8.1 and 8.0 installed on my machine and when I try to use the Windows Phone Developer Registration (8.1) interface or the normal one (Windows Phone Developer Registration unde Windows Phone SDK 8.0 i keep getting the same error. Unable to connect to a Phone. Make sure that the Windows Phone IP over USB Transport Service is running. I try to restart the service, switch ports, switch from Wi-Fi to 3G network on my phone. Nothing works. I have ensured that the Phone is showing as a device under File Explorer and when I connect the phone to my computer it does launch the Windows Phone app for desktop well. I am not sure what to do at this point and it's getting frustrating. I have tried to reinstall the SDKs and still nothing. I do have a developer account and developer account details intact. Please help... someone.... anyone :(
I finally figured it out. I went to device manager and found under Universal Serial Bus Devices and found device drivers of my phone on all the ports where I had connected the USB cable. I then right-clicked on one that showed that needed an update. I clicked on update device driver software where it scanned for updates and found out that the driver was up to date then I realized that it was not enabled. I enabled it and it was able to recognize the phone. However I had to keep restarting the service since the software kept going offline as well as switching from 3G to Wi-Fi. And it finally worked :)

Windows Phone Emulator - Virtualization Error

I have installed Win 8.1 Pro 64 Bit in virtual box as Guest OS with Win 7 Ultimate 64 bit as Host OS. My device supports Virtualization, config is as follows:
Intel Core i7 3610QM (III Gen)
8 GB RAM
Though Coreinfo shows that virtualization is supported by my Host OS & also in Virtual Box but in Guest OS(Win 8.1) error is being shown that Virtualization is not supported.
Kindly refer to image :
Image Link
Kindly provide me a solution to overcome this issue or any other way to run emulator. Are there any emulator like Genymotion or Bluestacks for Windows Phone.
The problem was solved by using VMWare instead of Virtual Box. It is not possible to do using Virtual Box as suggested by #FoggyDay https://forums.virtualbox.org/viewtopic.php?f=6&t=55070

WP8 emulator on Vmware player not running

I have created a vmware of windows 8.1 in order to develop a wp8 app.
My pc specs :
i7 2670 (2.2)
8 gb ram
win 7 64
My VMware Player spec:
60 gb hdd
4 gb ram
I have installed in the VMware Player visual studio 2012 update 4, and all the wp stuff.
When i am trying to build my project i am getting this error:
emulator Cannot assign the specified number
of processor for virtual machine is out of range
I have searched on the internet but all links i have found refereed to parallels. Nothing helpful for VMware .
I have read this article. I have enabled hyper-v, but i am not sure if VMware can support hardware virtualization, which i think is needed.
My question are 2:
Is these any possible solution to this problem?
If i got a device and try to debug on device i suppose that i will not have any problem. Am i suppose well?
I will appreciate any help.
Thx for your time.
VMWare Player v6. You need to tick Virtualize Intel VT-x/EPT or AMD-V/RIV in virtual machine configuration for WP emulator running.
As per the comments on your question, I'll explain:
You can perform Windows Phone 8.x development on Windows 7 or later provided you have a physical device, however if you want to use the Windows Phone 8.x emulators then you need to have Hyper-V available, this is because the WP8 emulators run as Hyper-V virtual-machines, side-by-side with your main operating system.
Therefore, to use the WP8 emulators you must be running Windows 8 Pro, Windows 8 Enterprise or Windows Server 2012 (or later, e.g. Windows 8.1 Pro). The standard "Home edition" of Windows 8 does not include Hyper-V. Read up about Client Hyper-V on TechNet.
Hyper-V requires hardware virtualisation and, as an accelerated platform with hardware requirements, will not run within another virtualiser (this is in contrast to how you can run VirtualBox or VirtualPC under Hyper-V). You must be running Windows 8 Pro as your "root" operating system.
You actually also need to edit the .vmx file in VMWare Player in order for Hyper-V to be available to the Windows Phone emulator.
Give your VM >= 4GB RAM, 2+ processors, then open the .vmx file for the VM and add:
hypervisor.cpuid.v0 = “FALSE”
Then save, start the VM, and install Windows.
I'll also point out that this works flawlessly on my MacBook Pro Retina running a Hyper-V capable Windows distribution inside of Parallels and Visual Studio 2013 CE.

How can I start phone emulator on HyperV or share phone through RDP?

I want to see how far I can take my Surface 2 for developing in Visual Studio 2013. Please note that this is a Surface 2 running WinRT - not full version.
Here is my setup
Surface 2 on desktop mode with RDP.
Windows 2012 running HyperV with a Windows 8.1 VM.
On the Windows 8.1 VM I have installed VS 2013. Naturally, HyperV gets installed as well.
My problems
My first thought was that I could use the Emulator but it complains that it failed to start because some of the Hyper-V components are not running. After some research this seems to be the result of Hyper-V in Hyper-V.
Then I tried to use an alternate approach. To share my Windows Phone through USB. I inserted my "Nokia Lumia 1020" in USB port of Surface 2. I could then see it in my desktop. Also, when I started RDP application I could see "Nokia Lumia 1020" under Local resources->Other supported Plug and Play devices. I checked it for sharing. I connected again but the phone was not visible on the guest operating system.
Anyone else done this? Either know how to circumvent the Hyper-V in Hyper-V or share the phone for development (through RDP).
You can't use hyper-v without windows 8 pro, I'm sorry... Try nokia's device rdp (http://developer.nokia.com/resources/remote-device-access) ...