[Users] info on virtio-scsi
Gianluca Cecchi
gianluca.cecchi at gmail.com
Fri Nov 22 23:16:39 UTC 2013
On Fri, Nov 22, 2013 at 11:51 PM, Gianluca Cecchi wrote:
> On Fri, Nov 22, 2013 at 10:49 PM, Itamar Heim wrote:
>
>>
>> oh, that's strange.
>> derez/roy - no virtio-iscsi definition for .el6 VM?
>
> Actually I don't think so.
> I have tried creating a new rh el 6.x x86_64 vm and at disk creation I
> do see virtio-scsi as an option.
> But for this preexisting VM I don't see it when I try to add. Tried
> both in powered on state and in powered off.
> See here difference between c6 and c5 dynamic xml in /var/run/libvirt/qemu
> https://drive.google.com/file/d/0BwoPbcrMv8mvemtSalRkTTZlV1k/edit?usp=sharing
>
> And here for qemu command line generated:
> https://drive.google.com/file/d/0BwoPbcrMv8mvOHZrTHduN1ZCUFU/edit?usp=sharing
>
> Gianluca
I found it!
By default now when I create a VM, I can see that in
advanced parameters --> Resource Allocation
I have virtio-scsi enabled.
Instead for pre-existing VM it wasn't.
I tested editing the VM while powered on and then I was able to add
and activate a virtio-scsi disk.
In guests's messages:
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: BAR 2: assigned [mem
0x80000000-0x80001fff]
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: BAR 2: set to [mem
0x80000000-0x80001fff] (PCI address [0x80000000-0x80001fff]
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: BAR 1: assigned [mem
0x80002000-0x800023ff]
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: BAR 1: set to [mem
0x80002000-0x800023ff] (PCI address [0x80002000-0x800023ff]
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: BAR 0: assigned [io
0x1000-0x10ff]
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: BAR 0: set to [io
0x1000-0x10ff] (PCI address [0x1000-0x10ff]
Nov 22 22:15:51 c6s kernel: pci 0000:00:00.0: no hotplug settings from platform
Nov 22 22:15:51 c6s kernel: pci 0000:00:00.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: pci 0000:00:01.0: no hotplug settings from platform
Nov 22 22:15:51 c6s kernel: pci 0000:00:01.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: ata_piix 0000:00:01.1: no hotplug settings
from platform
Nov 22 22:15:51 c6s kernel: ata_piix 0000:00:01.1: using default PCI settings
Nov 22 22:15:51 c6s kernel: uhci_hcd 0000:00:01.2: no hotplug settings
from platform
Nov 22 22:15:51 c6s kernel: uhci_hcd 0000:00:01.2: using default PCI settings
Nov 22 22:15:51 c6s kernel: piix4_smbus 0000:00:01.3: no hotplug
settings from platform
Nov 22 22:15:51 c6s kernel: piix4_smbus 0000:00:01.3: using default PCI settings
Nov 22 22:15:51 c6s kernel: pci 0000:00:02.0: no hotplug settings from platform
Nov 22 22:15:51 c6s kernel: pci 0000:00:02.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:03.0: no hotplug
settings from platform
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:03.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:04.0: no hotplug
settings from platform
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:04.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:05.0: no hotplug
settings from platform
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:05.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:06.0: no hotplug
settings from platform
Nov 22 22:15:51 c6s kernel: virtio-pci 0000:00:06.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: no hotplug settings from platform
Nov 22 22:15:51 c6s kernel: pci 0000:00:07.0: using default PCI settings
Nov 22 22:15:51 c6s kernel: sym53c8xx 0000:00:07.0: enabling device
(0000 -> 0003)
Nov 22 22:15:51 c6s kernel: sym53c8xx 0000:00:07.0: PCI INT A ->
Link[LNKC] -> GSI 10 (level, high) -> IRQ 10
Nov 22 22:15:51 c6s kernel: sym0: <895a> rev 0x0 at pci 0000:00:07.0 irq 10
Nov 22 22:15:51 c6s kernel: sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
Nov 22 22:15:51 c6s kernel: sym0: SCSI BUS has been reset.
Nov 22 22:15:51 c6s kernel: scsi2 : sym-2.2.3
Nov 22 22:15:54 c6s kernel: sym0: unknown interrupt(s) ignored,
ISTAT=0x5 DSTAT=0x80 SIST=0x0
Nov 22 22:15:54 c6s kernel: scsi 2:0:0:0: Direct-Access QEMU
QEMU HARDDISK 1.0 PQ: 0 ANSI: 5
Nov 22 22:15:54 c6s kernel: scsi target2:0:0: tagged command queuing
enabled, command queue depth 16.
Nov 22 22:15:54 c6s kernel: scsi target2:0:0: Beginning Domain Validation
Nov 22 22:15:54 c6s kernel: scsi target2:0:0: Domain Validation
skipping write tests
Nov 22 22:15:54 c6s kernel: scsi target2:0:0: Ending Domain Validation
Nov 22 22:15:54 c6s kernel: scsi 2:0:0:0: Attached scsi generic sg1 type 0
Nov 22 22:15:54 c6s kernel: sd 2:0:0:0: [sda] 2097152 512-byte logical
blocks: (1.07 GB/1.00 GiB)
Nov 22 22:15:54 c6s kernel: sd 2:0:0:0: [sda] Write Protect is off
Nov 22 22:15:54 c6s kernel: sd 2:0:0:0: [sda] Write cache: enabled,
read cache: enabled, doesn't support DPO or FUA
Nov 22 22:15:54 c6s kernel: sda: unknown partition table
Nov 22 22:15:54 c6s kernel: sd 2:0:0:0: [sda] Attached SCSI disk
I was also able to extend online the disk, and if I create a PV on the
whole disk I'm also able to online resize PV, LV and filesystem
Very good!
Gianluca
More information about the Users
mailing list