View unanswered posts | View active topics It is currently Thu Jul 18, 2019 5:54 am



Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
 How to add external USB CD burner to guest? 
Author Message

Joined: Wed Aug 10, 2011 6:32 am
Posts: 23
Reply with quote
Post How to add external USB CD burner to guest?
Hello,

I have a question re. an external USB CD burner which I cannot (do not know how to) connect to my guest OS (Windows XP Home 32-bit). The USB CD burner is physically attached and also connected to the host (ESXi), and I have also added the USB controller to the host via the vSphere client.
How do I add this device to the guest? As CD/ DVD device or as USB device?
Do I need to pass through the USB CD burner (attached to the host) to the guest?
I understood that adding ISO images of CDs/ DVDs is working better, but I do not want to create ISO images of any CD that I need on the guest OS.
Does this really only work with ISOs correctly, or is there a way to get the real burner attached to the guest?

Thanks for your help!

_________________
Kind regards,
vmuser


MoBo: Intel DQ45CB (BIOS v129, VT-d enabled)
CPU: Intel Core 2 Duo E8400 FC-LGA4 "Wolfdale" (has VT-d) @ 3.00 GHz
RAM: 4 GB
HDD: 2x 1 TB Samsung Spinpoint F3 (in AHCI mode)

Virtu.: free vSphere Hypervisor (ESXi 4.1 U1)


Fri Aug 19, 2011 11:26 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: How to add external USB CD burner to guest?
I would add the CD burner as a USB device.

I've never tried with a USB based CD device so I'm not sure it would be available as a host CD-ROM device. Plus as far as I know it's still the case that host CD devices passthrough to a guest are read only.

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Fri Aug 19, 2011 11:31 am
Profile

Joined: Wed Aug 10, 2011 6:32 am
Posts: 23
Reply with quote
Post Re: How to add external USB CD burner to guest?
I have added the "USB-Controller" to the guest.

When I try to add the CD burner as USB device, I only get the following device:
Quote:
Alcor Micro Mass Storage Device
This must be the USB ports of the host, or what?

Note:
In another post re. a USB HDD I first mistakenly had attached the USB HDD to a laptop which runs the vSphere client, which also had this Alcor... device. I just want to let everybody know that now the USB CD burner is really attached to the host system. ;)

The Alcor... device is then shown in the vSphere client with the USB-ID:
Quote:
Host: localhost path:1/4/3
Whatever the numbers mean, I do not know.

Anyway, I do not need some not some Alcor... device, but the USB CD burner, which is attached to the host USB port and also switched on (a CD is inserted), but it does not show up in the vSphere client.

Alternatively, I tried to add a CD/ DVD device, but it clearly only offers IDE, i.e. no USB via this way, which I had anticipated already.

Any ideas?

PS: A read-only CD would be better than nothing on the guest. But I do not want ISOs.

_________________
Kind regards,
vmuser


MoBo: Intel DQ45CB (BIOS v129, VT-d enabled)
CPU: Intel Core 2 Duo E8400 FC-LGA4 "Wolfdale" (has VT-d) @ 3.00 GHz
RAM: 4 GB
HDD: 2x 1 TB Samsung Spinpoint F3 (in AHCI mode)

Virtu.: free vSphere Hypervisor (ESXi 4.1 U1)


Fri Aug 19, 2011 11:48 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: How to add external USB CD burner to guest?
Access the console (or SSH) and run lsusb. Then plug in the CD device and run the command again. That'll help identify the device for you.

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Fri Aug 19, 2011 12:39 pm
Profile

Joined: Wed Aug 10, 2011 6:32 am
Posts: 23
Reply with quote
Post Re: How to add external USB CD burner to guest?
Regardless of having the attached USB CD burner (CD inserted, tray closed) power-on or off, I always get the following;
Code:
root@debian:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

What exactly do you mean with "plug in the CD device"? Do you refer to attaching the USB cable to the host or powering the device on (it has a power switch) or plugging-in in the vSphere client?
The latter is not possible in a sense that the vSphere client always only shows the above mentioned Alcor device, regardless if the USB CD burner is attached or not, or whether it is powered-on or not, i.e. I cannot check any differences with lsusb.
Hm, I wonder what else I could do.

Ah, do you mean ssh'ing and lsusb'ing on the guest or host? Sorry, this just crossed my mind. It would make more sense on the host maybe...

But how do I ssh to the host? Ssh only works to the Debian guest, but not to the host:
Code:
mb:~ user$ ssh root@host
ssh: connect to host host port 22: Connection refused

_________________
Kind regards,
vmuser


MoBo: Intel DQ45CB (BIOS v129, VT-d enabled)
CPU: Intel Core 2 Duo E8400 FC-LGA4 "Wolfdale" (has VT-d) @ 3.00 GHz
RAM: 4 GB
HDD: 2x 1 TB Samsung Spinpoint F3 (in AHCI mode)

Virtu.: free vSphere Hypervisor (ESXi 4.1 U1)


Fri Aug 19, 2011 1:14 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: How to add external USB CD burner to guest?
I meant for this to be run on the host. In the vSphere client go to the Configuration tab for the host and select Security Profile. Then click properties, select the Remote Tech Support (SSH) service and start it up.



As an aside, vSphere 5 supports passthrough of USB devices from the vSphere client to VMs.

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Fri Aug 19, 2011 1:24 pm
Profile

Joined: Wed Aug 10, 2011 6:32 am
Posts: 23
Reply with quote
Post Re: How to add external USB CD burner to guest?
Dave.Mishchenko wrote:
As an aside, vSphere 5 supports passthrough of USB devices from the vSphere client to VMs.
Is there a free version available?
The free vSphere Hypervisor is an ESXi 4 (not 5), as far as I have seen.

Thanks also for that hint re. ssh on the host - I learned something new again. :)
So here we go...

USB CD burner @host and also powered on (first one seems to be the USB CD burner):
Code:
~ # lsusb
Bus 02 Device 09: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to ATA/ATAPI
Bus 02 Device 03: ID 05ac:0221 Apple, Inc. Keyboard (Aluminium) (ISO)
Bus 02 Device 02: ID 05ac:1006 Apple, Inc. Hub in Aluminum Keyboard
Bus 02 Device 01: ID 0000:0000 
Bus 01 Device 25: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 01 Device 24: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 01 Device 1a: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 01 Device 01: ID 0000:0000 
Bus 08 Device 01: ID 0000:0000 
Bus 07 Device 01: ID 0000:0000 
Bus 06 Device 01: ID 0000:0000 
Bus 05 Device 01: ID 0000:0000 
Bus 04 Device 01: ID 0000:0000 
Bus 03 Device 01: ID 0000:0000

USB CD burner @host, but powered off:
Code:
~ # lsusb
Bus 01 Device 25: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 01 Device 24: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 01 Device 1a: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
Bus 01 Device 01: ID 0000:0000 
Bus 02 Device 03: ID 05ac:0221 Apple, Inc. Keyboard (Aluminium) (ISO)
Bus 02 Device 02: ID 05ac:1006 Apple, Inc. Hub in Aluminum Keyboard
Bus 02 Device 01: ID 0000:0000 
Bus 08 Device 01: ID 0000:0000 
Bus 07 Device 01: ID 0000:0000 
Bus 06 Device 01: ID 0000:0000 
Bus 05 Device 01: ID 0000:0000 
Bus 04 Device 01: ID 0000:0000 
Bus 03 Device 01: ID 0000:0000

When I power it on again, the host again shows this, so the USB CD burner is indeed this device:
Code:
Bus 02 Device 09: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to ATA/ATAPI

_________________
Kind regards,
vmuser


MoBo: Intel DQ45CB (BIOS v129, VT-d enabled)
CPU: Intel Core 2 Duo E8400 FC-LGA4 "Wolfdale" (has VT-d) @ 3.00 GHz
RAM: 4 GB
HDD: 2x 1 TB Samsung Spinpoint F3 (in AHCI mode)

Virtu.: free vSphere Hypervisor (ESXi 4.1 U1)


Last edited by vmuser on Fri Aug 19, 2011 8:43 pm, edited 5 times in total.



Fri Aug 19, 2011 8:24 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: How to add external USB CD burner to guest?
vSphere 5 (and the related free version) is probably going to be released next week (but the actual release date is a VMware secret that I'm not privy to :) ).

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Fri Aug 19, 2011 8:28 pm
Profile

Joined: Wed Aug 10, 2011 6:32 am
Posts: 23
Reply with quote
Post Re: How to add external USB CD burner to guest?
Hello and thanks for the hint re. version 5 - this is really nice!

Have you seen my edit above? I have identified the device:
Code:
~ # lsusb -v | grep -E '\<(Bus|iProduct|bDeviceClass|bDeviceProtocol)' 2>/dev/null
Bus 02 Device 0a: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to ATA/ATAPI
  bDeviceClass            0 (Defined at Interface level)
  bDeviceProtocol         0
  iProduct               78 USB2.0 Storage Device
  bDeviceClass            0 (Defined at Interface level)
  bDeviceProtocol         0
[...]

Interestingly, no usb can be found under /proc/bus/:
Code:
~ # cd /proc/bus
/proc/bus # ls -al
drwxr-xr-x    1 root     root             131072 Aug 20 04:54 .
drwxr-xr-x    1 root     root             131072 Aug 20 04:54 ..
drwxr-xr-x    1 root     root             131072 Aug 20 04:54 pci

But lsusb does show it. Is this normal?

Can you please give me some further hints what to try next?
I tried to follow this KB article, but it sows some error message:
Code:
/etc/init.d # hostd restart
[2011-08-20 05:05:40.030 FFC16E80 info 'App'] Current working directory: /etc/init.d
[2011-08-20 05:05:40.031 FFC16E80 panic 'App'] error: Could not find any plugins in config file
[2011-08-20 05:05:40.031 FFC16E80 panic 'App'] backtrace:

[00] rip 146a1c33 
[01] rip 1453403e 
[02] rip 144d37a2 
[03] rip 144ee439 
[04] rip 144f5ba9 
[05] rip 144ec763 
[06] rip 06784992 
[07] rip 0677a873 
[08] rip 067891d5 
[09] rip 15ac7f0c 
[10] rip 05c8f681

And when I then go back to the vSphere client > guest > preferences > add device, the entry "SCSI device" is greyed out ("not available").
I appreciate our support really very much.

PS:
I found this article, where the author states that while USB devices are supported, USB CD devices are not (see also wiki). At the bottom it reads:
Quote:
NOTE for Fake CD/mode switch devices

Passthrough is not possible as the ESXi host claims the devices. By unloading the usb-storage module, these devices can be passed through to a VM.

WARNING: This procedure is NOT supported by VMWare and may crash your ESXi host. You should know what you are doing. You have been warned.

Procedure:
1. disconnect all usb devices
2. log in tech support (enable tech support)
3. remove usb-storage module: esxcfg-module -u usb-storage (esxi modules and additional options)
4. plug in the usb device(s)
5. configure the VM to use the passthrough device(s)

Does this apply for my situation? Shall I try it?
Which measures could I take before in order to avoid crashing my host?

PS2:
I searched a little bit more on the host and found this in /proc/scsi:
Code:
/proc/scsi # ls -al
drwxr-xr-x    1 root     root             131072 Aug 20 05:27 .
drwxr-xr-x    1 root     root             131072 Aug 20 05:27 ..
drwxr-xr-x    1 root     root             131072 Aug 20 05:27 usb-storage
/proc/scsi # cd usb-storage/
/proc/scsi/usb-storage # ls -al
drwxr-xr-x    1 root     root             131072 Aug 20 05:27 .
drwxr-xr-x    1 root     root             131072 Aug 20 05:27 ..
-rw-r--r--    1 root     root             131072 Aug 20 05:27 20
/proc/scsi/usb-storage # cat 20
   Host scsi20: usb-storage
       Vendor: Cypress Semiconductor
      Product: USB2.0 Storage Device
Serial Number: DEF10958A13E
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:

So it seams that the USB CD device is recognized as SCSI device. This is also mentioned in this very short plog post. However, I do not understand how I could make use of this knowledge now:
If I want to add an HDD (instead of a USB device - as mentioned in that blog), I need to either select a new HDD (but after setting its size, I can only select IDE, because SCSI is greyed out) or select an already existing HDD, for which I have to provide a path (which of course does not make sense here).
Any further suggestions? Thanks a lot!

_________________
Kind regards,
vmuser


MoBo: Intel DQ45CB (BIOS v129, VT-d enabled)
CPU: Intel Core 2 Duo E8400 FC-LGA4 "Wolfdale" (has VT-d) @ 3.00 GHz
RAM: 4 GB
HDD: 2x 1 TB Samsung Spinpoint F3 (in AHCI mode)

Virtu.: free vSphere Hypervisor (ESXi 4.1 U1)


Fri Aug 19, 2011 8:45 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: How to add external USB CD burner to guest?
And that's when you run lsusb?

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Fri Aug 19, 2011 10:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.