Integrated webcam not connecting to Vmware - virtual-machine

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::---

Related

How to modify the default ip address of huawei usb modem e3531i-2

want to change the default lan ip address from "192.168.8.1" to something else of device huawei usb modem e3531i-2 (HiLink), cause if i plug two of the modems there will be ip conflict and the latter will block the first modem, thanks.
"usb stick model" -
"hilink web app"
i want to plug multiple huawei modems e3531i-2 in a single pc without getting ip conflict.
Found the solution !
my os is ubuntu 22.04 LTS, modem huawei e3531i-2, but i hope it can works for other modems.
first list your connected usb using command lsusb | grep Huawei it should look like this: Bus 001 Device 002: ID 12d1:1f01 Huawei Technologies Co., Ltd.
The 12d1:1f01 indicates that the modem is in storage mode and we need to switch it to serial mode. type sudo nano /etc/usb_modeswitch.d/12d1:1f01
Once the file is created now copy paste the text below inside and save :
# Huawei E3531
DisableSwitching=1
TargetVendor=0x12d1
TargetProduct=0x1001
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NoDriverLoading=1
re-plug your modem again and now if you type lsusb | grep Huawei it should look like this : Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co.,, If the modem doesn’t switch into 12d1:1001 mode, try rerunning the above command with -I.
now you're able to run AT commands using screen /dev/ttyUSB0 or controlling it using modemmanager "i would recommend not using the GUI but instead use mmcli"

How to change the vendor id of any Pnp (Plug and Play) device inside Virtualbox?

I want to change the default vendor id prefix VID_80EE Give by Virtual Box.
VID_80EE
I am doing malware analysis and malware use this id to detect whether it is running in a Virtual BOX or not.
It is a virtual usb device, which runs inside the VM. Normal usb drivers talk to usb devices on the usb bus. This virtual device is still on the virtual usb bus, but it is not a hardware, instead it is talking to the virtualbox process on the host. The virtualbox has some kernel drivers, they provide the virtual usb devices which bind the virtual usb bus of the guest with the virtualbox process of the host.
To change their USB vendor/product ID, I see no way than change their source code and recompiling them. They are Linux kernel drivers, part of the upstream virtualbox sources.
The vendor/product id of the virtual USB keyboard is here, and of the mouse is here.
You can do the recompilation following the virtualbox build instructions.
I did already some vbox recompilation, and it is not trivial, but it can be done without major problems. And you only need the guest kernel drivers.

The virtual machine os does not support mouse pointer integration

I was trying to set up a VM via Oracle Virtual Box in my MacBook.
Host OS: Mac
Application: Oracle Virtual
VM OS: CentOS 7
While I'm trying to start the OS installation I found that mouse capturing of the VM is not working correctly.
Observation: Once the mouse pointer captured in the VM, It's not
visible as expected
And also I got a pop-up message related to this;
Pop-up message: The virtual machine reports that the guest os does
not support mouse pointer integration in the current video mode
Shut-Down the VM
Select a particular VM and go to settings
Go to System section
In the Motherboard tab, change the Pointing Device as below;
From: PS/2 mouse
To: USB Tablet OR USB Multi-touch Tablet
Save settings and Start the VM
I had this message when I tried copying to/from Terminal to outside text and vice versa.
I could enable it from the VBox interface once the Guest OS has started!
Devices --> Shared Clipboard --> to Bidirectional
The menus are File | Machine | View | Input | Devices | Help

connect camera to virtual machine VMware Workstation 14

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

Is it possible to emulate windows 10 machine as a usb slave through type-c connector?

I am wondering if it is possible to emulate a windows 10 pc as a usb slave (client device) through a type-c connector when connecting to another PC/MAC(or even a cell phone), to be a usb storage device or HID etc.
You would have to have:
PC that has USB device mode controller
Windows 10 device mode driver - this resource, should be good starting point for looking into this further.