You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happened in particular on Windows, but checks should be done to make sure that the problem is not present also on Mac or Linux. Please!
Got the following output in the window and it worried me because of the error message on the inability to create the disk. I had grown the disk in this peer to 200GB: it has enough disk space for growing. It seems this growth failed but the peer came up ok.
ringing machine 'default' up with 'hyperv' provider...
==> default: Verifying Hyper-V is enabled...
==> default: Verifying Hyper-V is accessible...
==> default: Importing a Hyper-V instance
default: Creating and registering the VM...
default: Successfully imported VM
default: Configuring the VM...
==> default: Starting the machine...
==> default: Waiting for the machine to report its IP address...
default: Timeout: 120 seconds
default: IP: 172.17.174.221
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 172.17.174.221:22
default: SSH username: subutai
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
... SNIP ...
==> default: Running provisioner: cleanup...
Peer finished to up with following messages:
The system cannot find the path specified.
NEW-VHD : Failed to create the virtual hard disk.
The file extension for 'C:\Users\Alex' is invalid. Virtual hard disk for this operation must have a .vhd or .vhdx
extension.
At C:\Users\Alex O. Karasulu\.vagrant.d\gems\2.4.4\gems\vagrant-subutai-7.0.6\lib\vagrant-subutai\packer\script\create_
disk_and_attach.ps1:12 char:5
+ NEW-VHD -Dynamic $DiskPath -SizeBytes $($DiskSize*1073741824)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-VHD], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.Vhd.PowerShell.Cmdlets.NewVhd
ADD-VMHardDiskDrive : Adding the device 'Microsoft:Hyper-V:Virtual Hard Disk' to
'subutai-peer_hypervcc_default_1540670236929_48310' failed.
At C:\Users\Alex O. Karasulu\.vagrant.d\gems\2.4.4\gems\vagrant-subutai-7.0.6\lib\vagrant-subutai\packer\script\create_
disk_and_attach.ps1:14 char:5
+ ADD-VMHardDiskDrive -vmname $vm.Name -path $DiskPath -ControllerT ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-VMHardDiskDrive], VirtualizationException
+ FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.AddVMHardDiskDrive
Hit ENTER to finish...
To test @jadilet's theory of the whitespace in the username being the issue, I changed the setting for vm storage to C:\Peers. Disk growth works perfectly when this setting is changed so we can presume you are right ... the problem with the disk growth script is the whitespace in the username.
The text was updated successfully, but these errors were encountered:
akarasulu
changed the title
[Hyper-V] Whitespace in home directories results in vm storage growth script failures
Whitespace in home directories results in vm storage growth script failures
Oct 27, 2018
akarasulu
changed the title
Whitespace in home directories results in vm storage growth script failures
Whitespace in home directory path results in vm storage growth script failures
Oct 27, 2018
This happened in particular on Windows, but checks should be done to make sure that the problem is not present also on Mac or Linux. Please!
Got the following output in the window and it worried me because of the error message on the inability to create the disk. I had grown the disk in this peer to 200GB: it has enough disk space for growing. It seems this growth failed but the peer came up ok.
To test @jadilet's theory of the whitespace in the username being the issue, I changed the setting for vm storage to C:\Peers. Disk growth works perfectly when this setting is changed so we can presume you are right ... the problem with the disk growth script is the whitespace in the username.
The text was updated successfully, but these errors were encountered: