Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 183620

Re: Network configuration of VM after deploy from template

$
0
0

You may want to look into this code and get some input how to define a desk size

 

sub get_disksize {

   my $disksize = -1;

   my $parser = XML::LibXML->new();

 

   eval {

      my $tree = $parser->parse_file(Opts::get_option('filename'));

      my $root = $tree->getDocumentElement;

     my @cspec = $root->findnodes('Virtual-Machine-Spec');

 

      foreach (@cspec) {

         $disksize = $_->findvalue('Disksize');

      }

   };

   return $disksize;

}


Viewing all articles
Browse latest Browse all 183620

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>