Class: VagrantPlugins::QEMU::Network::Base
- Inherits:
-
Object
- Object
- VagrantPlugins::QEMU::Network::Base
- Defined in:
- lib/vagrant-qemu/network/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#build_netdev_args(id, options) ⇒ Array<String>
Build -netdev arguments for the advanced network NIC.
-
#launch_prefix(options) ⇒ Array<String>
Tokens to prepend to the QEMU launch command (a wrapper program).
-
#preflight!(options, qemu_binary) ⇒ Object
Validate preconditions and resolve any backend-specific options before the command is built.
-
#requires_sudo? ⇒ Boolean
Whether this backend requires sudo to run QEMU.
Instance Method Details
#build_netdev_args(id, options) ⇒ Array<String>
Build -netdev arguments for the advanced network NIC
9 10 11 |
# File 'lib/vagrant-qemu/network/base.rb', line 9 def build_netdev_args(id, ) raise NotImplementedError end |
#launch_prefix(options) ⇒ Array<String>
Tokens to prepend to the QEMU launch command (a wrapper program). Empty by default; only socket_vmnet's wrapper route is non-empty. The driver applies this under the same gate as build_netdev_args.
24 25 26 |
# File 'lib/vagrant-qemu/network/base.rb', line 24 def launch_prefix() [] end |
#preflight!(options, qemu_binary) ⇒ Object
Validate preconditions and resolve any backend-specific options before the command is built. No-op by default; the driver calls it under the same gate as build_netdev_args.
33 34 |
# File 'lib/vagrant-qemu/network/base.rb', line 33 def preflight!(, qemu_binary) end |
#requires_sudo? ⇒ Boolean
Whether this backend requires sudo to run QEMU
15 16 17 |
# File 'lib/vagrant-qemu/network/base.rb', line 15 def requires_sudo? false end |