From 18d4a1b0bc38d3f4a7d2fd1a818579e47caeac76 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 3 May 2011 13:24:11 +0000 Subject: [PATCH] ensure that video is never wide open git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index b9838555e..51b52a80b 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -1008,6 +1008,9 @@ sub makedom { } elsif (not $xml) { $xml = build_xmldesc($node,cd=>$cdloc); } + my $parseddom = $parser->parse_string($xml); + my ($graphics) = $parseddom->findnodes("//graphics"); + $graphics->setAttribute("passwd",genpassword(20)); my $errstr; eval { $dom=$hypconn->create_domain($xml); }; if ($@) { $errstr = $@; }