OpenVZ Forum


Home » General » Support » How do I access a serial usb device from a VE? (How do I access a serial usb device from a VE?)
Re: How do I access a serial usb device from a VE? [message #37744 is a reply to message #37743] Thu, 15 October 2009 21:41 Go to previous messageGo to previous message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
On a 1U HP sever which only has one on-board serial port I added DEVNODES="ttyS0:rw " to the configuration. It's one year ago so I can't remember if I used vzctl:

from vzctl(8):

Device access management

--devnodes device:r|w|rw|none
Give the container an access (r - read only, w - write only,
rw - read/write, none - no access) to a device designated by
the special file /dev/device. Device file is created in a
container by vzctl.

--devices b|c:major:minor|all:[r|w|rw|none]
Give the container an access to a block or character device
designated by its major and minor numbers. Device file have
to be created manually.

You can also read OpenVZ-Users-Guide.pdf: pg 66 Advanced tasks, Accessing Devices from Inside Virtual Private Server.

You will probably need to add DEVNODES="ttyUSB0:rw" but maybe udev on HN will make it more complicated. I can test it tomorrow at work if above doesn't work for you.
 
Read Message
Read Message
Read Message
Previous Topic: fork: Cannot allocate memory
Next Topic: tap device support
Goto Forum:
  


Current Time: Sun Sep 01 16:18:03 GMT 2024

Total time taken to generate the page: 0.10011 seconds