Let me explain my scenario in detail below are commands and script I have used to create a centos-7 image using yumbootstrap .Here is procedure how I bootstrap centos-7 on an ubuntu 14.04 and create a qcow2 image to run in kvm .
sudo mkdir -p /tmp/centos
/usr/sbin/yumbootstrap --verbose centos-7 /tmp/centos
sudo mount proc /tmp/centos/proc -t proc
sudo mount sysfs /tmp/centos/sys -t sysfs
Installation scripts installing yum packages , configurations etc
create-users
sudo bash -c 'tar cf - . | sudo pigz > /tmp/centos.tar.gz'
cp ~/centos.dcso.tar.gz /tmp
./define-domain.sh centos 1024 1 # it is a script which will create centos.xml file for domain defination
sudo qemu-img create -f raw /tmp/centos 30G
sudo mkfs.ext3 -F /tmp/centos
sudo mount -o loop /tmp/centos /mnt
sudo tar -C /mnt -zxf /tmp/centos.dcso.tar.gz
sudo umount /mnt
sudo qemu-img convert -O qcow2 /tmp/centos /var/lib/libvirt/images/centos.qcow2
virsh start centos
FYI I am not installing grub in the image and trying direct kernel boot method to run kvm instance as
It doesn't seem like it's a problem with yumbootstrap at all. Your initramdisk cannot mount your root filesystem, which doesn't even hit the OS yumbootstrap installed for you.
Let me explain my scenario in detail below are commands and script I have used to create a centos-7 image using yumbootstrap .Here is procedure how I bootstrap centos-7 on an ubuntu 14.04 and create a qcow2 image to run in kvm .
FYI I am not installing grub in the image and trying direct kernel boot method to run kvm instance as
After all this when I have started vm I am getting this issue which is strange to me