Open LuisBL opened 1 year ago
name
is a VirtualBox provider option, don't know if it exists on any other provider. Vagrant does provide a standard way to set a guest name though, which is supported config.vm.define "deb11_main"
, combined with a provider option to set the prefix to an empty value using libvirt.default_prefix = ""
will get you what you want.
Combining those into the example snippet you shared:
Vagrant.configure("2") do |config|
config.vm.box = "debian/bullseye64"
config.vm.define "deb11_main"
config.vm.provider :libvirt do |libvirt|
libvirt.default_prefix = ""
libvirt.channel :type => 'unix', :target_name => 'org.qemu.guest_agent.0', :target_type => 'virtio'
libvirt.memory = 2048
libvirt.cpus = 2
end
end
Is your feature request related to a problem? Please describe.
I have the following Vagrantfile
With the bellow versions:
Describe the solution you'd like I would like to be able to name to name the libvirt VM e.g.
# libvirt.name = "deb11_main"
so I would be able to see with:Additional context I thought this was available but when i try it I get: