hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.28k stars 4.43k forks source link

[Reqest] Mount ISO file for hyper-v #8387

Open MariuszHxGNMIN opened 7 years ago

MariuszHxGNMIN commented 7 years ago

Vagrant version

1.9.2

Host operating system

Windows 10

Guest operating

All running hyper-v

Expected behavior

New config option for hyper-v provider e.g. iso = "path_to_iso_file"

Actual behavior

Hyper-V doesn't allow to add iso based drives when guest vm is running. But before starting or when vm is shutdown adding an new dvd based on iso is very simple (via powershell Add-VMDvDDrive https://technet.microsoft.com/en-us/itpro/powershell/windows/hyper-v/add-vmdvddrive it only reauiers vm name and path to image parameters to run.)

In VirtualBox you can do this VboxManage as hyper v doesn't provide such funtionality it would be grate to add this simple thing. It will allow to add iso to any hyper-v guest and re-use them during provisioning e.g. instalation of any software that comes in form of iso

Thanks

fsdrw08 commented 2 months ago

any updates? it's an important feature for hyperv vm with cloud-init