def generate_scsi_chs
      disk_size = File.stat(@previous_deliverables.disk).size

      if disk_size < 1073741824
        h = 64
        s = 32
      else
        if disk_size < 2147483648
          h = 128
          s = 32
        else
          h = 255
          s = 63
        end
      end

      c = disk_size / (h*s*512)
      total_sectors = disk_size / 512

      [c.to_i, h.to_i, s.to_i, total_sectors.to_i]
    end
def generate_scsi_chs
      disk_size = File.stat(@previous_deliverables.disk).size

      if disk_size < 1073741824
        h = 64
        s = 32
      else
        if disk_size < 2147483648
          h = 128
          s = 32
        else
          h = 255
          s = 63
        end
      end

      c = disk_size / (h*s*512)
      total_sectors = disk_size / 512

      [c.to_i, h.to_i, s.to_i, total_sectors.to_i]
    end
returns value of cylinders, heads and sector for selected disk size (in GB)
 http://kb.vmware.com/kb/1026254