ESXi下Centos 挂载Usb设备

环境说明:


客户端:VMware vSphere Client 4.1.0


服务端:VMware ESXi 4.11


虚拟机系统:Windows server 2003 shell

                :CentOS6.3 spa



VMware ESXi4.1中支持USB设备,但须要手动添加设备,配置步骤比较简单,简要概括以下:


1.把USB设备插入ESXi Server的USB接口 code

2.在客户端编辑虚拟机配置,先添加"USB控制器” server

3.USB控制器添加完毕后,再添加“USB设备” 接口

添加过程会显示已链接到ESX Server上的可用USB设备,并可选择勾选“已链接设备支持vMotion” 虚拟机

4. 进入虚拟机,查看到U盘已成功加载。 it


Centos 

没有图形界面的状况下,先新建一个文件夹: io

mkdir /mnt/usb
查看是否已经挂载USB,查找正确的设备名和路径
fdisk -l
显示的资讯以下:
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        2610    20860402+  8e  Linux LVM

Disk /dev/sdb: 4021 MB, 4021288960 bytes
124 heads, 59 sectors/track, 1073 cylinders
Units = cylinders of 7316 * 512 = 3745792 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1074     3927036    b  W95 FAT32
输入mount命令进行usb挂载
mount /dev/sdb1 /mnt/usb
进入已经挂载的usb
cd /mnt/usb