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=2048 --vcpus=2 --disk path=/var/lib/libvirt/images/kfat.img,size= 16 --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.
On 5/26/2014 9:03 PM, John R Pierce wrote:
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=2048 --vcpus=2 --disk path=/var/lib/libvirt/images/kfat.img,size= 16 --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 /
to be more specific. it gets all the way through the formatting the disk thing like a normal install, then I get a popup...
--------------------------------------------------------------------------------------------------- [ Unable to mount filesystem ] ============================================================== (lightbulb) An error occurred mounting device /dev/mapper/vg_new-lv_root as /: mount failed: (9, None). This is a fatal error and the install cannot continue.
Press <Enter> to exit the installer.
[OK]
----------------------------------------------------------------------------------------------------
On 5/26/2014 9:28 PM, John R Pierce wrote:
[ Unable to mount filesystem ]
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=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=23,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:71:a3:06,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 char device redirected to /dev/pts/1 block I/O error in device 'drive-ide0-0-0': Invalid argument (22) qemu: terminating on signal 15 from pid 2628 2014-05-27 04:33:11.129+0000: shutting down
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.
On 27 May 2014 05:38, John R Pierce pierce@hogranch.com wrote:
On 5/26/2014 9:28 PM, John R Pierce wrote:
[ Unable to mount filesystem ]
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=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=23,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:71:a3:06,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 char device redirected to /dev/pts/1 block I/O error in device 'drive-ide0-0-0': Invalid argument (22) qemu: terminating on signal 15 from pid 2628 2014-05-27 04:33:11.129+0000: shutting down
-- john r pierce 37N 122W somewhere on the middle of the left coast
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 5/26/2014 11:58 PM, Andrew Holway wrote:
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=2048 --vcpus=2 \ --disk path=/var/lib/libvirt/images/kfat.img,size=16,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.
On 5/26/2014 9:38 PM, John R Pierce wrote:
block I/O error in device 'drive-ide0-0-0': Invalid argument (22)
the backing store is a Crucial M550 SSD, formatted XFS. does that have somethign to do with this?
and... ok, found something suggesting cache=writeback, but it didn't quite explain, https://bugzilla.redhat.com/show_bug.cgi?id=997839
after thinking about it, looking at the options, I added that to the --disk option of virt-install, and now installing packages,