Open afaonline opened 8 months ago
vagrant/embedded/gems/gems/vagrant-2.4.0/plugins/kernel_v2/config/disk.rb に間違いがある There is a mistake in
--- /opt/vagrant/embedded/gems/gems/vagrant-2.4.0/plugins/kernel_v2/config/disk.rb 2023-10-17 01:58:26
+++ patch/disk.rb 2024-01-16 10:11:46
@@ -104,7 +104,7 @@
current = @provider_config.merge(current) if !@provider_config.empty?
if current
- @provider_config = current
+ @provider_config = current[:provider_config]
else
@provider_config = {}
end
@yshingai thanks for your tip, also i was able to create hyperv vm with provider_config options after fixing args here: should be **
machine.provider.driver.create_disk(disk_file, disk_config.size, **disk_provider_config)
.....
machine.provider.driver.attach_disk(disk_file, **disk_provider_config)
Console output
Expected behavior
I expect a Fixed primary disk to be created
Actual behavior
I tried to set "provider_config" for Hyper-V to make primary disk fixed, but it seems that Vagrant ignores the setting. Looks like it cannot extract the name of provider from disk configuration. I tried both ways to define the config:
and
In both cases I see "These provider config options will be ignored" in log, and disk is still Dynamic.
Vagrant version
Vagrant 2.4.0
Host operating system
Microsoft Hyper-V Server
Guest operating system
Windows 10
Vagrantfile