Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

KVM : problem with LVM storage pool

$
0
0
Hello,

I've created a disk pool for KVM, on a LVM Volume Group. Then I try to launch a new VM with
Code:

# virt-install --name=MyVM\
--ram=6112 \
--cdrom=/var/lib/libvirt/images/ubuntu.iso \
--os-type=linux \
--disk pool=vg1,size=50,cache=none \
--graphics vnc \
--noautoconsole \
--hvm

It creates the Logical Volume in the VG and launches the VM install process. The virtual machine detect the correct size of the disk (50G), but fails to write when creating the partition (input/ouput error).
I look at the LV's size on the host, it's 4M. It looks like it won't increase size.

If I launch the VM with the option sparse=false to the disk then the LV size on the host is 50G and the VM install just fine.

Any idea how I can get dynamic size for the Logical Volume working ?

Cheers,

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>