[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] Improve heuristic for default guest architecture
- From: "Daniel P. Berrange" <berrange redhat com>
- To: Libvirt <libvir-list redhat com>
- Subject: Re: [libvirt] Improve heuristic for default guest architecture
- Date: Tue, 24 Mar 2009 11:16:38 +0000
On Fri, Mar 20, 2009 at 03:34:44PM +0100, Soren Hansen wrote:
> In libvirt 0.6.1, if you create a domain description of type 'kvm'
> without an arch set on an x86-64 host, you would get an i686 qemu guest
> rather than the expected x86-64 kvm guest.
>
> This is because virCapabilitiesDefaultGuestArch doesn't take the domain
> type into consideration, so it just returned the first hvm architecutre
> that has been registered, which is i686.
>
> After applying Dan P's patch,
>
> http://www.redhat.com/archives/libvir-list/2009-March/msg00281.html,
>
> I now get a i686 kvm guest, since kvm now can do i686 guests from
> libvirt. This is certainly an improvement, but I think a more reasonable
> default is to attempt to match the host's architecture.
>
> This patch makes virCapabilitiesDefaultGuestArch also check the domain
> type, and also gives preference to a guest architecture that matches the
> host's architecture.
I've committed this patch now
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]