Module: VagrantPlugins::ProviderZone::QGA
- Defined in:
- lib/vagrant-zones/qga.rb,
lib/vagrant-zones/qga/client.rb,
lib/vagrant-zones/qga/dispatcher.rb,
lib/vagrant-zones/qga/client_exec.rb,
lib/vagrant-zones/qga/base_backend.rb,
lib/vagrant-zones/qga/freebsd_backend.rb,
lib/vagrant-zones/qga/illumos_backend.rb,
lib/vagrant-zones/qga/netplan_backend.rb,
lib/vagrant-zones/qga/pfsense_backend.rb,
lib/vagrant-zones/qga/windows_backend.rb,
lib/vagrant-zones/qga/ifupdown_backend.rb,
lib/vagrant-zones/qga/opnsense_backend.rb,
lib/vagrant-zones/qga/user_script_backend.rb,
lib/vagrant-zones/qga/network_manager_backend.rb,
lib/vagrant-zones/qga/systemd_networkd_backend.rb
Overview
QEMU Guest Agent subsystem: JSON-RPC client over virtio-console UNIX socket, dispatcher for guest-OS detection, and per-backend network writers.
Defined Under Namespace
Modules: ClientExec Classes: BaseBackend, Client, Dispatcher, FreebsdBackend, IfupdownBackend, IllumosBackend, NetplanBackend, NetworkManagerBackend, OpnsenseBackend, PfsenseBackend, SystemdNetworkdBackend, UserScriptBackend, WindowsBackend
Class Method Summary collapse
-
.normalize_mac(str) ⇒ Object
Pad each octet to 2 hex digits, lowercase.
Class Method Details
.normalize_mac(str) ⇒ Object
Pad each octet to 2 hex digits, lowercase. Matches qga’s hardware-address output.
11 12 13 |
# File 'lib/vagrant-zones/qga.rb', line 11 def self.normalize_mac(str) str.to_s.split(':').map { |x| format('%02x', x.to_i(16)) }.join(':').downcase end |