On Thu, September 6, 2012 14:58, Leonard den Ottolander wrote:
Hi,
I am trying to install a C6 VM on C6 using the text installer using:
# virt-install -n C6_1 -r 3072 --os-variant=rhel6 -l \ ftp://ftp.nluug.nl/site/centos.org/CentOS/6.3/os/x86_64/ --disk \ path=/dev/VG1/vm_c6_1 -w network:default --nographics \ -x "console=ttyS0" --autostart
/dev/VG1/vm_c6_1 has been successfully created. The installation starts but once I get to the disk partitioning no disk is listed and I cannot continue the installation.
Even worse, if I press space on the empty list CPU usage goes up to 100% for the qemu-kvm process.
WAG? Is there a partition on the lv that the installer can find? I run into this all the time when using an lv storage pool and an lv based virtio drive. I first have to fdisk the newly allocated drive and do a partprobe before the vm guest will recognize that it has the space.
Hello James,
On Fri, 2012-09-07 at 14:30 -0400, James B. Byrne wrote:
WAG? Is there a partition on the lv that the installer can find? I run into this all the time when using an lv storage pool and an lv based virtio drive. I first have to fdisk the newly allocated drive and do a partprobe before the vm guest will recognize that it has the space.
The volume actually did contain a partition table, but I added it after accidentally formatting it as ext4. This confused the installer.
Zeroing out the first 5k bytes and recreating the partition table with fdisk fixes the issue.
I can reproduce this. When adding a partition table with fdisk after having formatted the volume (as ext4) the installer does not pick up the volume. Zeroing out of a few sectors (5k works, less might work too) and recreating the partition table and the installer sees the volume.
Thank you for pointing me in the right direction.
Regards, Leonard.