From e83055a0a16f3af015b8bf13f56edc6b970ec204 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 5 Nov 2014 11:32:44 -0500 Subject: [PATCH] bug #4364 change default vmnicmodel to virtio --- xCAT-server/lib/xcat/plugins/kvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index ee2b58052..c40baa899 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -618,7 +618,7 @@ sub build_nicstruct { foreach (@macs) { my $rethash; my $nic = shift @nics; - my $type = 'e1000'; #better default fake nic than rtl8139, relevant to most + my $type = 'virtio'; #better default fake nic than rtl8139, relevant to most unless ($nic) { last; #Don't want to have multiple vnics tied to the same switch } @@ -2240,7 +2240,7 @@ sub fixup_clone_network { my $nic; my $deviceroot=$newnodexml->findnodes("/domain/devices")->[0]; foreach $nic (@nics) { #need more xml to throw at it.. - my $type = 'e1000'; #better default fake nic than rtl8139, relevant to most + my $type = 'virtio'; #better default fake nic than rtl8139, relevant to most $nic =~ s/.*://; #the detail of how the bridge was built is of no #interest to this segment of code if ($confdata->{vm}->{$node}->[0]->{nicmodel}) {