Skip to content

Commit

Permalink
Fix minor bug and bump to 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gaozengqi committed Jan 25, 2022
1 parent bcc73b2 commit 860744b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
1 change: 1 addition & 0 deletions lib/vagrant-qemu/action/start_instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-qemu/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-qemu/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module VagrantPlugins
module QEMU
VERSION = '0.1.3'
VERSION = '0.1.6'
end
end

0 comments on commit 860744b

Please sign in to comment.