Chinaunix首页 | 论坛 | 博客
  • 博客访问: 231417
  • 博文数量: 33
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 480
  • 用 户 组: 普通用户
  • 注册时间: 2019-01-22 08:36

专注虚拟化性能优化,硬件显卡网卡虚拟加速,面向容器的轻量虚拟化开发 永远的Linux Geeker!



分类: 虚拟化

2019-01-27 06:07:45


2.1 Install essential software
    sudo apt-get install open-iscsi    

2.2 Modify configuration file
    vim /etc/iscsi/iscsid.conf

and change it to:

    node.session.auth.authmethod = CHAP
    # make sure user and password is same with iscsi-target
    node.session.auth.username =   
    node.session.auth.password =  

2.3 Attach iscsi-target volume
    sudo iscsiadm -m discovery -t sendtargets -p
    sudo iscsiadm -m node --login

other useful command:
    sudo iscsiadm -m node -o show
    sudo iscsiadm -m session -o show

Then, you could find the new patiition:

$ more /proc/partitions    

You could use it as a normal partition, create file system and formation, or provide it to QEMU or Libvirt.

2.4 Logout iscsi partition
    sudo iscsiadm -m node --logout  

阅读(5225) | 评论(0) | 转发(0) |