需要在vm中增加一个光驱:
vm中在scsi 0:1上添加一个新的光驱,应该只有scsi光驱才能动态添加吧
以root执行下面的命令
echo "scsi add-single-device 0 0 1 0" > /proc/scsi/scsi
控制台显示:
scsi 0:0:1:0: Attached scsi generic sg1 type 5
sr0: scsi3-mmc drive: 1x/1x writer dvd-ram cd/rw xa/form2 cdda tray
ls -l /dev |grep cdrom
lrwxrwxrwx 1 root root 4 Mar 13 04:49 cdrom -> scd0
lrwxrwxrwx 1 root root 3 Mar 13 01:57 cdrom-hdc -> hdc
lrwxrwxrwx 1 root root 4 Mar 13 04:49 cdrom-sr0 -> scd0
scd0和cdrom-sr0应该就是新的scsi光驱
mkdir os
mount /dev/scd0 /os
df -h /os
Filesystem Size Used Avail Use% Mounted on
/dev/scd0 3.4G 3.4G 0 100% /os
阅读(1301) | 评论(0) | 转发(0) |