KVM/ Qemu

How to assign scsi disk to KVM guest using virt-manager



Guys,

In this blog I will discuss how to assign a scsi disk to a KVM guest .. In past it was not supported , but this feature is available now. I am using Fedora 14 in my system.

I will guide you through step by step process with the help of screen-shots.

1) Once you made sure that “kvm” modules are loaded in the system, open virt-manager .

2) Then “select” the VM where you want to add the disk

3) After highlighting that VM in virt-manager window, click on “EDIT” tab at the top and then click on “Virtualmachine Details”

4) Now click on “ADD HARDWARE” in Virtual Machine details, then select “Storage” , follow as shown in screen-shot.

5) As you can see in the last screen-shot, the disk has been identified in guest as scsi disk “sda”

Thats it .. 🙂

6 thoughts on “How to assign scsi disk to KVM guest using virt-manager”

  1. Hi Chirammal :

    Nice to meet you, I met a problem on the KVM, after Google query to your articles.

    I use the KVM version 0.10.2 # with virsh — version

    I install a cut in the centos. Iso, this iso file format need to select sda device during installation.

    But if KVM when choosing virtual disk type for the hda, after I saw your post in the use of virt – manager view, also did not see the option, could you tell me is my version, or a KVM for SCSI disk type support is not good.

    Looking forward to your answer. thank you.

  2. Hi Chirammal :

    Nice to meet you, I met a problem on the KVM, after Google query to your articles.

    I use the KVM version 0.10.2 # with virsh — version

    I install a cut in the centos. Iso, this iso file format need to select sda device during installation.

    But if KVM when choosing virtual disk type for the hda, after I saw your post in the use of virt – manager view, also did not see the option, could you tell me is my version, or a KVM for SCSI disk type support is not good.

    Looking forward to your answer. thank you.

      1. Hi.

        Thanks I’m using version is 0.9.0 for virt-manager.

        I try to upgrade libvirt version and qemu version.

        but problems are still there.

        info : physics host system vervsion centos6.4-x86-64
        virt-manager for yum install
        kvm and libvirt package because I have installed the cloudstack(cloud virtualization management software )

        I trying to update system iscsi driver.

        1. Hi Edwin,

          virt-manager shipped with centos version mentioned above does not seems to include this (scsi disk) support with it.

          How-ever you can achieve this functionality by editing guest configuration file..

          You need something like below in your guest configuration file :

          Once you exposed scsi controller , you should be able to see/use scsi disk in guest.

  3. Hi.

    Thanks for your reply, I’m using version is 0.9.0 for virt-manager.

    I try to upgrade libvirt version and qemu version.

    but problems are still there.

    info : physics host system version centos6.4-x86-64

    virt-manager for yum install

    kvm and qemu package because I have installed cloudstack (cloud virtualication management software)

    I trying update system iscsi driver.

Leave a Reply

Your email address will not be published. Required fields are marked *