Kvm And 6.5

Home » CentOS » Kvm And 6.5
CentOS 5 Comments

I’m trying to create a 6.5 VM on a 6.5 system using virt-install…

# virt-install —network bridge:br0 –name kfat –ram 48 –vcpus=2
–disk path=/var/lib/libvirt/images/kfat.img,size16 –cdrom=/home/downloads/CentOS-6.5-x86_64-minimal.iso

I get through the first part of the installation, asks for disk layout
(I leave default, tell it to take the whole vdisk), networking (I setup a static IP), then bombs with an error that it can’t mount /

not sure what to do next.

5 thoughts on - Kvm And 6.5

  • to be more specific. it gets all the way through the formatting the disk thing like a normal install, then I get a popup…

    ————————————————————————————————-

  • and /var/log/libvirt/qemu/kfat.log says…

    2014-05-27 04:32:40.112+0000: starting up LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none
    /usr/libexec/qemu-kvm -name kfat -S -M rhel6.5.0 -enable-kvm -m 2048
    -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid
    1a68159c-d3d4-b45a-57c3-43b9a657f736 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/kfat.monitor,server,nowait
    -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc
    -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/kfat.img,if=none,id=drive-ide0-0-0,format=raw,cache=none
    -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
    -drive if=none,media

  • Permissions on /var/lib/libvirt/images/kfat.img? selinux?

    I had this exact problem a while back and I am racking my brains as to what I did to fix it.

  • in my case,

    # virt-install –network bridge:br0 –name kfat –ram 48 –vcpus=2 \
    –disk path=/var/lib/libvirt/images/kfat.img,size,cache=writeback \
    –cdrom=/home/downloads/CentOS-6.5-x86_64-minimal.iso

    worked.

    the ‘cache=writeback’ fixed it, the fundamental problem was,
    /var/lib/libvirt/images is XFS on a SSD so is using 4096 byte sectors, and kvm has an impedance mismatch with that.