: Enable the Use of a SCSI Controller
Focus
Focus

Enable the Use of a SCSI Controller

Table of Contents

Enable the Use of a SCSI Controller

If you want the VM-Series firewall to use the disk bus type SCSI to access the virtual disk, use the following instructions to attach the virtio scsi controller to the firewall and then enable the use of the virtio-scsi controller.
KVM on Ubuntu 12.04 does not support the virtio-scsi controller; the virtio-scsi controller can only be enabled on the VM-Series firewall running on RHEL or CentOS.
This process requires virsh because Virt manager does not support the virtio-scsi controller.
  1. Create an XML file for the SCSI controller. In this example, it is called virt-scsi.xml.
    [root@localhost~]# cat /root/virt-scsi.xml 
    <controller type='scsi' index='0' model='virtio-scsi'> 
    <address type='pci' domain='0x0000' bus='0x00' slot='0x0b'function='0x0'/> 
    </controller> 
    Make sure that the slot used for the virtio-scsi controller does not conflict with another device.
  2. Associate this controller with the XML template of the VM-Series firewall.
    [root@localhost~]# virsh attach-device --config <VM-Series_name> /root/virt-scsi.xml 
    Device attached successfully 
  3. Enable the firewall to use the SCSI controller.
    [root@localhost~]# virsh attach-disk <VM-Series_name>/var/lib/libvirt/images/PA-VM-6.1.0-c73.qcow2
    sda --cache none --persistent 
    Disk attached successfully 
  4. Edit the XML template of the VM-Series firewall. In the XML template, you must change the target disk and the disk bus, used by the firewall.
    By default, the XML template is stored at etc/libvirt/qemu.
    <disk type='file' device='disk'> 
          <driver name='qemu' type='qcow2' cache='writeback'/> 
          <source file='/var/lib/libvirt/images/PA-VM-7.0.0-c73.qcow2'/> 
          <target dev='sda' bus='scsi'/> 
          <address type='drive' controller='0' bus='0' target='0' unit='0'/> 
    </disk>