diff --git a/CHANGELOG.md b/CHANGELOG.md index 09ed934..a7d7a92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,5 +11,8 @@ * Support vm without box. # 0.1.3 (2022-01-25) +# 0.1.4 (2022-01-25) +# 0.1.5 (2022-01-25) +# 0.1.6 (2022-01-25) * Add config 'net_device'. diff --git a/lib/vagrant-qemu/action/start_instance.rb b/lib/vagrant-qemu/action/start_instance.rb index 6766775..2219519 100644 --- a/lib/vagrant-qemu/action/start_instance.rb +++ b/lib/vagrant-qemu/action/start_instance.rb @@ -18,6 +18,7 @@ def call(env) :cpu => env[:machine].provider_config.cpu, :smp => env[:machine].provider_config.smp, :memory => env[:machine].provider_config.memory, + :net_device => env[:machine].provider_config.net_device, } env[:ui].output(I18n.t("vagrant_qemu.starting")) diff --git a/lib/vagrant-qemu/driver.rb b/lib/vagrant-qemu/driver.rb index 93e000b..c4fe4b6 100644 --- a/lib/vagrant-qemu/driver.rb +++ b/lib/vagrant-qemu/driver.rb @@ -50,7 +50,7 @@ def start(options) cmd += %W(-cpu #{options[:cpu]}) cmd += %W(-smp #{options[:smp]}) cmd += %W(-m #{options[:memory]}) - cmd += %W(-device #{options[:net_device],netdev=net0) + cmd += %W(-device #{options[:net_device]},netdev=net0) cmd += %W(-netdev user,id=net0,hostfwd=tcp::#{options[:ssh_port]}-:22) # drive diff --git a/lib/vagrant-qemu/version.rb b/lib/vagrant-qemu/version.rb index e3700a8..f0cee8d 100644 --- a/lib/vagrant-qemu/version.rb +++ b/lib/vagrant-qemu/version.rb @@ -1,5 +1,5 @@ module VagrantPlugins module QEMU - VERSION = '0.1.3' + VERSION = '0.1.6' end end