* how to assign partition as partition for KVM? @ 2009-01-15 3:53 Толя 2009-01-15 8:05 ` paolo pedaletti 0 siblings, 1 reply; 3+ messages in thread From: Толя @ 2009-01-15 3:53 UTC (permalink / raw) To: kvm Hello! Is there any way to assign single partition to KVM virtual machine (for example, i need to assign /dev/sda1 on my host as /dev/hda1 on VM) In XEN this assignment looks like disk=[ 'phy:/dev/lvm_dg-vol1,xvda1,w',]. I only have found a way of such representation through creation of linear RAID. Is there some less tricky method? Thanks in advance and sorry if i picked up wrong e-mail address for this type of question. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to assign partition as partition for KVM? 2009-01-15 3:53 how to assign partition as partition for KVM? Толя @ 2009-01-15 8:05 ` paolo pedaletti 2009-01-15 17:56 ` Javier Guerra 0 siblings, 1 reply; 3+ messages in thread From: paolo pedaletti @ 2009-01-15 8:05 UTC (permalink / raw) To: Толя; +Cc: kvm Ciao Толя, > Is there any way to assign single partition to KVM virtual machine (for example, i need to assign /dev/sda1 on my host as /dev/hda1 on VM) > In XEN this assignment looks like disk=[ 'phy:/dev/lvm_dg-vol1,xvda1,w',]. with LVM, you can do that: kvm ..... -drive file=/dev/mapper/vm-root,if=scsi,index=0,boot=on ...... I think it should work even without LVM, for example: kvm ..... -drive file=/dev/sda1,if=scsi,index=0,boot=on ...... -- Paolo Pedaletti ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to assign partition as partition for KVM? 2009-01-15 8:05 ` paolo pedaletti @ 2009-01-15 17:56 ` Javier Guerra 0 siblings, 0 replies; 3+ messages in thread From: Javier Guerra @ 2009-01-15 17:56 UTC (permalink / raw) To: paolo pedaletti; +Cc: Толя, kvm On Thu, Jan 15, 2009 at 3:05 AM, paolo pedaletti <paolo.pedaletti@gmail.com> wrote: > Ciao Толя, > >> Is there any way to assign single partition to KVM virtual machine (for example, i need to assign /dev/sda1 on my host as /dev/hda1 on VM) >> In XEN this assignment looks like disk=[ 'phy:/dev/lvm_dg-vol1,xvda1,w',]. > > with LVM, you can do that: > > kvm ..... -drive file=/dev/mapper/vm-root,if=scsi,index=0,boot=on ...... > > I think it should work even without LVM, for example: > kvm ..... -drive file=/dev/sda1,if=scsi,index=0,boot=on ...... the difference is that in KVM, the guest see a whole disk, not a partition. no surprise, since Xen's HVM guests have the same limitation; only paravirtualized guests can be assigned individual partitions. remember that KVM is a 'fully virtualized' system, similar to HVM in Xen. -- Javier ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-15 17:56 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-01-15 3:53 how to assign partition as partition for KVM? Толя 2009-01-15 8:05 ` paolo pedaletti 2009-01-15 17:56 ` Javier Guerra
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox