Reboot the Windows guest after renaming the computer so changes take affect immediately before attempting to provision the box. - Changed rename from wmic to netdom since netdom seems to work correctly in Windows 2008R2 and newer OSs. - Fixed Windows guest error translations, the wrong namespace was specified in the yaml file.
23 lines
556 B
Ruby
23 lines
556 B
Ruby
module VagrantPlugins
|
|
module GuestWindows
|
|
module Errors
|
|
# A convenient superclass for all our errors.
|
|
class WindowsError < Vagrant::Errors::VagrantError
|
|
error_namespace("vagrant_windows.errors")
|
|
end
|
|
|
|
class CantReadMACAddresses < WindowsError
|
|
error_key(:cant_read_mac_addresses)
|
|
end
|
|
|
|
class NetworkWinRMRequired < WindowsError
|
|
error_key(:network_winrm_required)
|
|
end
|
|
|
|
class RenameComputerFailed < WindowsError
|
|
error_key(:rename_computer_failed)
|
|
end
|
|
end
|
|
end
|
|
end
|