sap-nw-abap-vagrant icon indicating copy to clipboard operation
sap-nw-abap-vagrant copied to clipboard

Hyper-v?

Open pvaczi opened this issue 4 years ago • 1 comments

Hi,

I'm new to this. It is maybe trivial. Can I use this on Hyper-v too? If not, is it enough to replace virtualbox in the Vagrantfile with hyperv and replace ubuntu/xenial64 with hashicorp/bionic64 (as I can see, there is no ubuntu/xenial for hyperv)?

Thanks, Pál Váczi

pvaczi avatar May 20 '20 14:05 pvaczi

I didn't try it. But yes, it should not be difficult to switch to hyper-v. Though maybe not trivial:

  • hashicorp/bionic64 should work
  • one spot of attention in the Vagrantfile is this (virtualbox specific) - should be easy to fix (have a look)
  # Virtualbox settings
  config.vm.provider "virtualbox" do |vb|
    vb.name   = argMachineName
    vb.memory = "6144" # 6 GB
    # vb.memory = "4096" # 4 GB + enable add_swap.sh below !!!
  end
  • the other one will be more tricky - class VagrantPlugins::ProviderVirtualBox::Action::SetName - the part which allocates additional disk. This should be either completely reworked. Or probably it is possible to extend size of the the main disk (instead of adding additional) and skip scripts/provision/add_disk.sh

sbcgua avatar May 20 '20 15:05 sbcgua