[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] Error creating a new vm



On 20 Dec 2010, at 12:57, Jiri Denemark wrote:

>> Here are the version numbers:
>> 
>> virsh # version
>> Compiled against library: libvir 0.6.3
>> Using library: libvir 0.6.3
>> Using API: QEMU 0.6.3
>> Running hypervisor: QEMU 0.9.0
>> 
>> Also here are the logs:
>> 
>> # cat /var/log/libvirt/qemu/test01.log LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin HOME=/ /usr/bin/qemu-system-x86_64 -S -M rhel5.4.0 -no-kqemu -m 512 -smp 1 -nographic -monitor pty -pidfile /var/run/libvirt/qemu//test01.pid -no-reboot -boot c -kernel /var/lib/libvirt/boot/virtinst-vmlinuz.wmv9KP -initrd /var/lib/libvirt/boot/virtinst-initrd.img.PBIGHX -append method=http://10.0.0.100/iso/centos-5.5/ console=ttyS0 ks=http://10.0.0.100/ks/ks-vm.cfg -hda /dev/vg_storage/test01 -net nic,macaddr=54:52:00:6f:8e:05,vlan=0 -net tap,fd=16,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb 
>> Supported machines are:
>> pc         Standard PC (default)
>> isapc      ISA-only PC
> 
> Ah, that is the problem. Your /usr/bin/qemu-system-x86_64 binary only supports
> the above machine types but domain XML wants rhel5.4.0 machine type. Did you
> install qemu from an unofficial package or something like that? Since normally
> it supports rhel5.4.0 and the binary is called /usr/libexec/qemu-kvm. If you
> really want to use the /usr/bin/qemu-system-x86_64 binary, you need to make
> virt-install use "pc" machine type since by default it doesn't use any and
> libvirt 0.6.3 selects rhel5.4.0 as a default (newer libvirt versions are more
> clever in this). However, virt-install doesn't seem to have an option which
> could be used for overriding machine type :-/ You would need to change the
> type element in domain XML from
>    <type arch='x86_64'>hvm</type>
> to
>    <type arch='x86_64' machine='pc'>hvm</type>
> 
> The easiest fix is to use the /usr/libexec/qemu-kvm binary, which is provided
> by kvm package.
> 
> Jirka

Hi Jirka,

Thanks for your reply :)

Well iv installed the default RPMS via Centos (5.5)

How do I get around this? Isnt that kind of weird that you an install a rhel machine on what is essentially a rhel machine?

Kind Regards

Tony


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]