kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can disk geometry be specified in libvirt?
@ 2009-03-30 11:06 Bike & Snow
  0 siblings, 0 replies; only message in thread
From: Bike & Snow @ 2009-03-30 11:06 UTC (permalink / raw)
  To: kvm

Hello

I'm trying to pass a fibre channel virtual disk to a KVM host via libvirt.

On the host, disk is:

Disk /dev/sdb: 53.6 GB, 53631516672 bytes
64 heads, 32 sectors/track, 6393 cylinders
Units = cylinders of 2048 * 4096 = 8388608 bytes
Disk identifier: 0x5e9ca6c0

As you can see, the sector size is 4096 and not the usual 512 bytes.

If I pass this to a KVM guest, I get this in the guest:

Disk /dev/vdc: 53.6 GB, 53631516672 bytes
64 heads, 32 sectors/track, 51147 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x5e9ca6c0

As you can see, it's sector size has not been recognised correctly.
It's recognised as 512 bytes. Because of this, the disk cannot be
used.

Is there any way to pass the sector size to the guest?

Thanks

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-30 11:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30 11:06 Can disk geometry be specified in libvirt? Bike & Snow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).