connect camera to virtual machine VMware Workstation 14 - virtual-machine

I have a paid version of VMware Workstation 14.
I mostly use a few VM's running simultaneously.
I tried to create a VM for editing, including some editing SW (like Adobe's SW). Everything went smooth, until I tried to connect the camera (DSLR) to the VM in order to control it via the PC. But, then the connected camera didn't appear on the VM. It appears only in the host computer.
Is it possible?
If not, does Hyper-V will be more suitable for this (I prefer to find a solution based on VMware, due to it supports well of Linux distro)?
Host PC: Win 10 PRO
VM: Windows 10 PRO

I have a VMWare Workstation 15 Pro on my Windows 10 (Host). I have attached an image showing the 2 easy steps:
VMWare Workstation(15 Pro): Connect Integrated Webcam To Running Guest OS
Power up your Guest OS in VMWare Workstation
Below the Guest OS screen, you will see a bar with hardware shortcuts for the Guest OS
On the bar's right there are icons for "Hard Disk", "Network Adapter", "Mouse"...
Find "Integrated Webcam" > "Connect (Disconnect from Host)"
This will disconnect the integrated cam of your device from your Host OS and connect it to the Guest OS. If you have multiple Guest OS running, you can simply follow the above steps to change the integrated-cam connection to any OS from previously connected Host or Guest OS.

Have you tried looking in the settings of the VM for the setting to connect/disconnect USB devices?
Example:
VM > Removable Devices > Device Name > Connect (Disconnect from host)
Additional information is available in the docs: https://docs.vmware.com/en/VMware-Workstation-Pro/14.0/com.vmware.ws.using.doc/GUID-E003456F-EB94-4B53-9082-293D9617CB5A.html

Related

Integrated webcam not connecting to Vmware

I am using Windows 10 on host machine and using VMware workstation
Version
VMware® Workstation 16 Pro
version 16.1.2 build-17966106
I am running windows 8.1 as Guest window on VMware. I have succesfully updated my Guest os(Win 8.1) and installed important updates as well as I installed the Vmware tools succesfully.
When I tries to connect the webcam to Vmware by choosing "Connect(disconnect from Host)", then sometimes it connects succesfully and I could able to use my webcam in VMware but sometimes It gives the error The connection for the USB device "Microdia integrated webcam" was unsuccesfull. Could anyone help me through this ?
My laptop specifications :
Dell vostro 15 3500
Ram 8gb
intel i3 11th gen
I found a type of hack solution for this problem.
When you start the guest machine on VM and a small window will automatically opens like this ->
You need to click ok and instantly try to open Camera app on your main or host machine, and you will see that the camera app is not able to detect camera as it is now connected to host machine in VM. This would magically works everytime for me now.Thanks
Try opening your windows camera, and then run VmWare, click on top left corner, there would be Player->Removable Devices->Select the camera listed, Now you can see the camera will be stopped in your Windows machine and in ubuntu, you can see its connected.
Type lsusb (list usb) and ensure that your camera device name is listed
sami#ubuntu:~/Desk$ lsusb
Bus 001 Device 005: ID 0bda:5539 Realtek Semiconductor Corp. VMware Virtual USB Hub
Bus 001 Device 004: ID 0e0f:0008 VMware, Inc. VMware Virtual USB Mouse
Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
sami#ubuntu:~/Desk$ getfacl /dev/video*
getfacl: Removing leading '/' from absolute path names
# file: dev/video0
# owner: root
# group: video
user::rw-
user:sami:rw-
group::rw-
mask::rw-
other::---
# file: dev/video1
# owner: root
# group: video
user::rw-
user:sami:rw-
group::rw-
mask::rw-
other::---

USB Device Causing VM's to Freeze

USB Device Causing VM's to Freeze - Cannot Kill vmware-vmx.exe
The problem was described here - https://communities.vmware.com/thread/612551
but anyone has no answer for it.
Generally, the problem is like so:
launch vm
connect usb stick or usb phone cable
vm freezes
it is not possible to terminate vmware-vmx.exe process (even as a SYSTEM user with highest privs).
The issue occurs on vmware workstation 14 & 15 on Windows 10 Pro Build 1903
Also tried disabling windows defender (maybe some strange scan policy) but no results.
Tried also to change almost every setting in workstation but no results...
please help
I was facing exactly the same issue and I have finally found the solution.
Update to VMWare Workstation version 15.5. Update the VM Tools in the Guest operating System, and it works!! Tried with Android Devices, in USB Tethering Mode also.

Not picking up 2nd vm

Hi good day cut a long story short I am trying to run two vms on two different pcs as my main pc can t handle them both running at the same time do my current setup is
Dell(main pc) running parrot os in vm
Crappy laptop running durp n stink in vm
Both on same Wi-Fi both share internet connection via shared connection under Wi-Fi options shared but the problem I am facing is when I do any scan on network e.g. Netdiscover nmap etc i can pick up everything else on the network
Phones xbox the laptop running Windows 7 but I can't actually pick up the Ubuntu os that's running in vm
I forgot to mention they are running virtual box latest version and both are setup to allow vm under network settings plus both set to bridged

Cannot access USB UART in VirtualBox Guest on macos Host

I've created a virtualbox via docker-machine:
$ docker-machine create --driver virtualbox default
Within the Guest-OS I'd like to access my USB-Serial device, which is a Nordic nRF52840 DevKit, which is listed in macos as /dev/tty.usbmodem144241.
However, this device is not listed as USB device by virtualbox. I've also tried adding the devices as a Serial Port with the Port Mode "Host-Device" as described in this link, but without any success:
If I add the Serial Port as .tty-usbmodem the virtualbox will hang in 'Starting', I have to kill all virtualbox processes or disconnect the serial cable in order to start again. If I use .cu-usbmodem the virtualbox starts up but immediately crashes.
I'm running out of ideas here. I'm stuck at this issues since docker for mac does not support the --devices mapping without virtual machine, and for the virtual machine I somehow can't manage to add the port.
Any ideas on what else I could try?
So as it turns out virtualbox is quite picky about when a device is actually connected and does not work as seamlessly as I'm used from using VMWare:
The device I was using really just shows up as SEGGER J-Link in the USB menu
It must be added as filter (filter is really confusing > first I thought it would ignore the device)
The device cannot be added to the virtualbox 'on the fly' (using the USB-icon in the 'Show' window, see screenshot), it must not be connected before the virtualbox starts up.
The serial-tab is irrelevant > it's all handled via the USB tab.
The important fact is that the device must not be connected wenn the virtualbox fires up. So the steps to add a device are the following:
Power down the virtualbox
Make sure the USB controller is enabled
Connect the USB/serial device to the computer (host)
Add it to the filter in the virtual box
Now every time you want to use the device with the virtualbox:
Make sure the virtualbox is down (e.g. docker-machine stop default)
Disconnect the USB/serial device from the computer
Start up the virtualbox (e.g., docker-machine start default)
Virtualbox should now be able to "intercept" the device and list it under /dev, e.g., as /dev/ttyACM0
Un-/Plugging a filtered device once the box is up also works (you don't have to power down the virtualbox again if you forgot to disconnect the device before starting it up. Just wait for the box to be up, unplug, plug in, should be good).

How to control removable usb devices with VMware vmrun

I have VMware workstation 9 and 10, and I am wanting to use that to run some integration tests.
Using the vmrun utility, I can copy scripts to and run them on the virtual machine guests. However, some of the integration tests will require interfacing with USB devices.
Is there any way using vmrun, or any of the vmware API's to programmatically control the "Removable Devices" to connect and disconnect USB devices to virtual machines?
I have tried looking at the readVariable and writeVariable commands, however I cannot find any useful information on that subject.
vmrun has no facility to passthrough USB devices from the host to the guest and vice versa (source, VMware employee). There are though 2 options to achieve this behavir
A) Use autoconnect: look here and here on how to modify the .VMX file to auto connect the USB device to the guest VM. Basically you need to add usb.autoConnect.device0 = "vid:XXXX pid:XXXX" to it.
B) Use askConnection: When you plugged in the device to the host, and the VM is powered on, you can select to connect the device to the VM and remember the choice. Then the next time when you pluggin the device again, the device will be automatically connected to the remembered VM. Also, you can configure in Edit > Preferences > USB for other choices. Currently, this feature only works when you plug in the device.