Installing a CentOS guest under KVM


#1

I am working with KVM for the first time and trying to accomplish a specific task. I first installed CentOS 6.2 minimal on my server onto a USB stick, then augmented that OS with the packages needed for working with KVM based VMs. The goal I am trying to achieve is to install two CentOS VMs, one for each of the two drives I have on my server. My latest command looks like this:

virt-install --connect qemu:///system --disk path=/dev/sda --name vm-sda --ram 512 --vcpus=1 -c /tmp/CentOS-6.2-x86_64-minimal.iso --os-type linux --accelerate --hvm

This appears to run properly and I am attached to the VM’s console where the standard CentOS boot menu is displayed. From there I hit [TAB] and append “text” to the end of the default OS install option, since I want to do everything in plain text. This proceeds to load the VM’s BIOS, but then I get the message

kvm: 9480: cpu0 unimplemented perfctr wrmsr

From what I’ve read this is strictly a warning and nothing to be alarmed about. However, after this warning, nothing further appears on the screen. If I run the command

virsh -c qemu:///system list

it shows that my vm is running but the command

virsh -c qemu:///system console-sda

hangs. So I cannot tell what state my VM is in. How can I proceed from here. I think my VM is up and running but I cannot connect to its console. What am I doing wrong?