From 4c509f03ad39b06136a5c519bfd866c5c54d5d6b Mon Sep 17 00:00:00 2001 From: penguhyang Date: Mon, 29 Feb 2016 00:45:03 -0500 Subject: [PATCH] add sound device into vm xml --- xCAT-server/lib/xcat/plugins/kvm.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 73df46463..03a12b18b 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -888,6 +888,8 @@ sub build_xmldesc { } if (defined($hypcpumodel) and $hypcpumodel eq 'ppc64') { $xtree{devices}->{emulator}->{content} = "/usr/bin/qemu-system-ppc64"; + } else { + $xtree{devices}->{sound}->{model}='ac97'; } $xtree{devices}->{console}->{type} = 'pty';