Windows環境でvagrant-awsプラグインをインストールできない

以下のようなエラーが出てインストールできない。

症状

PS C:\Users\xxx\Desktop\vagrant-aws> vagrant plugin install vagrant-aws   
Installing the 'vagrant-aws' plugin. This can take a few minutes... 
Fetching iniparse-1.5.0.gem 
Fetching xmlrpc-0.3.1.gem   
Fetching formatador-0.2.5.gem   
Fetching excon-0.78.1.gem   
Fetching fog-core-1.45.0.gem    
Fetching racc-1.5.2.gem 
Building native extensions. This could take a while...  
Fetching nokogiri-1.11.1-x64-mingw32.gem    
Fetching fog-xml-0.1.3.gem  
Fetching fog-xenserver-1.0.0.gem    
Fetching optimist-3.0.1.gem 
Fetching rbvmomi-2.4.1.gem  
Fetching fog-vsphere-3.5.0.gem  
Fetching fog-voxel-0.1.0.gem    
Fetching CFPropertyList-2.3.6.gem   
Fetching fission-0.5.0.gem  
Fetching fog-vmfusion-0.1.0.gem 
Fetching fog-terremark-0.1.0.gem    
Fetching fog-json-1.2.0.gem 
Fetching fog-storm_on_demand-0.1.1.gem  
Fetching fog-softlayer-1.1.4.gem    
Fetching fog-serverlove-0.1.2.gem   
Fetching fog-sakuracloud-1.7.5.gem  
Fetching fog-riakcs-0.1.0.gem   
Fetching fog-radosgw-0.0.5.gem  
Fetching ipaddress-0.8.3.gem    
Fetching fog-rackspace-0.1.6.gem    
Fetching fog-profitbricks-4.1.1.gem 
Fetching fog-powerdns-0.2.0.gem 
Fetching tzinfo-2.0.4.gem   
Fetching zeitwerk-2.4.2.gem 
Fetching minitest-5.14.3.gem    
Fetching activesupport-6.1.1.gem    
Fetching ovirt-engine-sdk-4.4.0.gem 
Building native extensions. This could take a while...  
Vagrant failed to properly resolve required dependencies. These 
errors can commonly be caused by misconfigured plugin installations 
or transient network issues. The reported error is: 
    
ERROR: Failed to build gem native extension.    
    
    current directory: C:/Users/xxx/.vagrant.d/gems/2.6.6/gems/ovirt-engine-sdk-4.4.0/ext/ovirtsdk4c    
C:/HashiCorp/Vagrant/embedded/mingw64/bin/ruby.exe -I C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.6.0 -r ./siteconf20210125-3652-1ss2kbp.rb extconf.rb 
checking for xml2-config... no  
*** extconf.rb failed ***   
Could not create Makefile due to some reason, probably lack of necessary    
libraries and/or headers.  Check the mkmf.log file for more details.  You may   
need configuration options. 
    
Provided configuration options: 
        --with-opt-dir  
        --without-opt-dir   
        --with-opt-include  
        --without-opt-include=${opt-dir}/include    
        --with-opt-lib  
        --without-opt-lib=${opt-dir}/lib    
        --with-make-prog    
        --without-make-prog 
        --srcdir=.  
        --curdir    
        --ruby=C:/HashiCorp/Vagrant/embedded/mingw64/bin/$(RUBY_BASE_NAME)  
        --with-libxml2-config   
        --without-libxml2-config    
        --with-pkg-config   
        --without-pkg-config    
extconf.rb:29:in `<main>': The "libxml2" package isn't available. (RuntimeError)  
    
To see why this extension failed to compile, please check the mkmf.log which can be found here: 
    
  C:/Users/xxx/.vagrant.d/gems/2.6.6/extensions/x64-mingw32/2.6.0/ovirt-engine-sdk-4.4.0/mkmf.log   
    
extconf failed, exit code 1 
    
Gem files will remain installed in C:/Users/xxx/.vagrant.d/gems/2.6.6/gems/ovirt-engine-sdk-4.4.0 for inspection.   
Results logged to C:/Users/xxx/.vagrant.d/gems/2.6.6/extensions/x64-mingw32/2.6.0/ovirt-engine-sdk-4.4.0/gem_make.out   

対応

修正プログラムのgemをダウンロード。
(この事例では C:\Users\xxx\Desktop\ に保存)

https://github.com/bdwyertech/vagrant-aws/releases/tag/v0.8.0-bdwyertech

vagrant-awsインストール。
("vagrant plugin install vagrant-aws"の代わりに実行)

vagrant plugin install C:\Users\xxx\Desktop\vagrant-aws-0.8.0.gem

参考

www.javaer101.com