Rookie question: adding disk to centos KVM host
Pete.S last edited by Pete.S
I've added an U.2 SSD disk to my KVM test system. It shows up as /dev/nvme0n1 and it's working. So far, so fine.
I'm using virt-manager and latest centos. What do I need to do with the disk so I can put some VMs on it?
I want thick provisioning or whatever the highest performing is where I can put multiple VMs on the disk.
PS. I'm used to xen where you would run
xe sr-createon the device and it would create a storage repository with LVM for you and that would be it. I find a gazillion guides on the web how to add a disk to the KVM guest but that's not what I'm looking for.
Romo last edited by
Depending on the type of storage pool you want, you could partition your block device device or create LVM volumes to be used as storage pool. This is more of a how to add storage to a Linux host.
Here's more info https://docs.fedoraproject.org/en-US/Fedora/18/html/Virtualization_Administration_Guide/chap-Virtualization_Administration_Guide-Storage_Pools-Storage_Pools.html#sect-part-based-storage-pool-cli
Emad R last edited by
Use Virt Manager and create new storage pool this is the easy way, you make it directory type. there are many other types like LVM.
Pete.S last edited by
Thanks to you guys I got it sorted out now!