Skip to content

Instantly share code, notes, and snippets.

@tsubasaxZZZ
Last active December 24, 2022 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubasaxZZZ/e369a949cd651c7afd92edecd9ccab78 to your computer and use it in GitHub Desktop.
Save tsubasaxZZZ/e369a949cd651c7afd92edecd9ccab78 to your computer and use it in GitHub Desktop.
AKSEdge install memo
PS C:\temp\AKS-Edge-main\tools> New-AksEdgeDeployment -JsonConfigFilePath .\mydeployconfig-WiFi.json

[12/24/2022 14:50:59] Validating AksEdge network parameters...

 - * Name:AKSEdgeSwitch - Type:External
 - * Name:Wi-Fi is Up

[12/24/2022 14:51:07] Network parameter validation terminated successfully


[12/24/2022 14:51:07] *** No errors found in the Deployment Configuration.


Diagnostic data

        Send diagnostic data to Microsoft


        Optional diagnostic data:
        Send information about how you use features, plus additional info about service health, activity, and enhanced
error reporting. Diagnostic data is used to help keep the service secure and up to date, troubleshoot problems and make
 product improvements. Required diagnostic data will always be included when you choose to send Optional diagnostic
data.  Regardless of your choice, the service will be equally secure and operate normally.


        Required diagnostic data:
        Send only info about your installation of the service, its settings and capabilities, and whether its
performing properly. Diagnostic data is used to help keep this service secure and up to date, troubleshoot problems and
 make product improvements.

[O] Optional  [R] Required  [?] ヘルプ (既定値は "R"):

[12/24/2022 14:51:11] AksEdge - deploying a new Linux scalable k8s cluster


[12/24/2022 14:51:11] Checking host for required features

 - Checking the status of 'Microsoft-Hyper-V'
 - Checking the status of 'Microsoft-Hyper-V-Management-PowerShell'
 - Checking the status of 'Microsoft-Hyper-V-Hypervisor'
 - Checking the status of 'OpenSSH.Client*'

[12/24/2022 14:51:12] Configuring scalable cluster network


[12/24/2022 14:51:12] Checking for virtual switch with name 'AKSEdgeSwitch'

 - The virtual switch 'AKSEdgeSwitch' of type 'External' is present
 - Setting subnet for gateway '192.168.2.2'
ReportErrors : HcnModifyNetwork -- HRESULT: 2151350299. Result: {"Success":false,"Error":"JSON ドキュメント文字列が無効
です。 {{ResourceType,UnknownEnumValue}}","ErrorCode":2151350299}
発生場所 C:\Program Files\WindowsPowerShell\Modules\AksEdge\0.7.22335.1024\AzureEFLOW.psm1:1632 文字:9
+         ReportErrors -functionName $NativeMethods["Modify"].Name -hr  ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,ReportErrors


[12/24/2022 14:51:13] Deploying AKS Edge Essentials - K8s (Public Preview)

 - WARNING: This is a Public Preview version of AKS Edge Essentials - K8s (Public Preview), not intended for production use.
 - WARNING: A clean install may be required for production use once the final General Availability (GA) release is available.

[12/24/2022 14:51:14] Step 1: Preparing host for AKS Edge Essentials - K8s (Public Preview)


[12/24/2022 14:51:14] Enabling Microsoft Update. This will allow AKS Edge Essentials - K8s (Public Preview) to receive updates.

 - Microsoft Update is enabled.

[12/24/2022 14:51:14] Checking for virtual switch with name 'AKSEdgeSwitch'

 - The virtual switch 'AKSEdgeSwitch' of type 'External' is present

[12/24/2022 14:51:14] Associating wssdagent service with nodectl


[12/24/2022 14:51:15] Creating vnet (name: AKSEdgeSwitch)


[12/24/2022 14:51:16] Deploying AKS Edge Essentials - K8s (Public Preview)

 - WARNING: This is a Public Preview version of AKS Edge Essentials - K8s (Public Preview), not intended for production use.
 - WARNING: A clean install may be required for production use once the final General Availability (GA) release is available.

[12/24/2022 14:51:17] Step 1: Skipped host preparation


[12/24/2022 14:51:17] Step 2: Validating pre-requisites and deployment parameters...

 - Verifying host requirements for selected configuration (30 GB disk size, 2048 MB memory, 4 CPUs)

[12/24/2022 14:51:17] Verifying Host OS can support requested configuration


[12/24/2022 14:51:18] Verifying required storage, RAM and number of cores are available

 - Drive 'C:' has 441 GB free
 - A minimum of 30 GB disk space is required on drive 'C:'
 - Host has 5001 MB free memory
 - A minimum of 2048 MB memory is required
 - Host has 8 CPU cores
 - A minimum of 4 CPU cores is required
 - Verifying static IP support for selected configuration

[12/24/2022 14:51:18] Step 3: Verifying AKS Edge Essentials - K8s (Public Preview) installation


[12/24/2022 14:51:18] Verifying installation

 - Verifying whether Hyper-V is enabled and functional
 - Hyper-V core services are active
 - Verifying expected Windows host binaries
 - Verifying expected Linux VM image
 - Testing for ssh key
 - Testing for wssdagent service
 - Testing if wssdagent is running
 - Testing if container resource is provisioned
 - Testing if vnet resource 'AKSEdgeSwitch' is provisioned

[12/24/2022 14:52:06] Step 4: Runtime configuration complete. Creating virtual machine


[12/24/2022 14:52:06] Creating virtual machine. Verifying host requirements for selected configuration (27 GB disk size,
 2048 MB memory, 4 CPUs)


[12/24/2022 14:52:06] Verifying Host OS can support requested configuration


[12/24/2022 14:52:06] Verifying required storage, RAM and number of cores are available

 - Drive 'C:' has 441 GB free
 - A minimum of 27 GB disk space is required on drive 'C:'
 - Host has 5067 MB free memory
 - A minimum of 2048 MB memory is required
 - Host has 8 CPU cores
 - A minimum of 4 CPU cores is required

[12/24/2022 14:52:07] Extracting Linux VHD


[12/24/2022 14:52:24] Setting dynamically expanding virtual hard disk maximum size to 38.66 GB

 - Creating storage vhd (file: AzureIoTEdgeForLinux-v1-ledge)
 - Creating vnic (name: desktop-l33fu7f-ledgeInterface)
 - Instantiating virtual machine (name: desktop-l33fu7f-ledge)
 - Virtual machine successfuly instantiated

[12/24/2022 14:52:33] Virtual machine created successfully.


[12/24/2022 14:52:34] Successfully created virtual machine


[12/24/2022 14:52:34] Virtual machine hostname: desktop-l33fu7f-ledge


[12/24/2022 14:53:09] Testing SSH connection...


[12/24/2022 14:53:10] ...successfully connected to the Linux VM

 - Please check your DNS configuration to ensure Internet connectivity.

[12/24/2022 14:53:10] Deployment successful


[12/24/2022 14:53:12] Setting DNS servers for Linux node 1.1.1.1.


[12/24/2022 14:53:13] Initializing kubernetes runtime in Linux node.

警告: ServerTLSBootstrap is enabled. User needs to approve CSR manually... see
https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#kubelet-serving-certs
 - Waiting for Kubernetes node (desktop-l33fu7f-ledge) to reach condition Ready, timeout = 900 seconds
 - Kubernetes node (desktop-l33fu7f-ledge) reached condition Ready

[12/24/2022 14:54:16] AksEdge - copying Kubeconfig into the host.


[12/24/2022 14:54:17] AksEdge - new deployment successfully created.

OK
PS C:\temp\AKS-Edge-main\tools> New-AksEdgeDeployment -JsonConfigFilePath .\aksedge-config-single.json

[12/24/2022 13:42:17] *** No errors found in the Deployment Configuration.


Diagnostic data

        Send diagnostic data to Microsoft


        Optional diagnostic data:
        Send information about how you use features, plus additional info about service health, activity, and enhanced
error reporting. Diagnostic data is used to help keep the service secure and up to date, troubleshoot problems and make
 product improvements. Required diagnostic data will always be included when you choose to send Optional diagnostic
data.  Regardless of your choice, the service will be equally secure and operate normally.


        Required diagnostic data:
        Send only info about your installation of the service, its settings and capabilities, and whether its
performing properly. Diagnostic data is used to help keep this service secure and up to date, troubleshoot problems and
 make product improvements.

[O] Optional  [R] Required  [?] ヘルプ (既定値は "R"):

[12/24/2022 13:42:19] AksEdge - deploying a new Linux single machine k8s cluster


[12/24/2022 13:42:21] Checking host for required features

 - Checking the status of 'Microsoft-Hyper-V'
 - Checking the status of 'Microsoft-Hyper-V-Management-PowerShell'
 - Checking the status of 'Microsoft-Hyper-V-Hypervisor'
 - Checking the status of 'OpenSSH.Client*'

[12/24/2022 13:42:22] Creating single machine cluster hcs network

 - AksEdge - private network carved:

Name  : ip4PrefixLength
Value : 24

Name  : LinuxVmIp4Address
Value : 192.168.0.2

Name  : ServiceIPRangeStart
Value : 192.168.0.4

Name  : ip4GatewayAddress
Value : 192.168.0.1

Name  : ip4Subnet
Value : 192.168.0.0

Name  : WindowsVmIp4Address
Value : 192.168.0.3

Name  : ServiceIPRangeEnd
Value : 192.168.0.8




 - Determining DNS servers capable of resolving the endpoint 'microsoft.com' from the list of potential servers (192.168.2.2 1.1.1.1 150.212.1.2 192.168.2.238)...
 - Success, one or more eligible DNS servers found (192.168.2.2 1.1.1.1)...

[12/24/2022 13:42:35] Deploying AKS Edge Essentials - K8s (Public Preview)

 - WARNING: This is a Public Preview version of AKS Edge Essentials - K8s (Public Preview), not intended for production use.
 - WARNING: A clean install may be required for production use once the final General Availability (GA) release is available.

[12/24/2022 13:42:37] Step 1: Preparing host for AKS Edge Essentials - K8s (Public Preview)


[12/24/2022 13:42:37] Enabling Microsoft Update. This will allow AKS Edge Essentials - K8s (Public Preview) to receive updates.

 - Microsoft Update is enabled.

[12/24/2022 13:42:37] Checking for virtual switch with name 'aksedgesw-int'

 - The virtual switch 'aksedgesw-int' of type 'Internal' is present

[12/24/2022 13:42:37] Associating wssdagent service with nodectl


[12/24/2022 13:42:37] Creating vnet (name: aksedgesw-int)


[12/24/2022 13:42:38] Deploying AKS Edge Essentials - K8s (Public Preview)

 - WARNING: This is a Public Preview version of AKS Edge Essentials - K8s (Public Preview), not intended for production use.
 - WARNING: A clean install may be required for production use once the final General Availability (GA) release is available.

[12/24/2022 13:42:40] Step 1: Skipped host preparation


[12/24/2022 13:42:40] Step 2: Validating pre-requisites and deployment parameters...

 - Verifying host requirements for selected configuration (30 GB disk size, 4096 MB memory, 4 CPUs)

[12/24/2022 13:42:40] Verifying Host OS can support requested configuration


[12/24/2022 13:42:40] Verifying required storage, RAM and number of cores are available

 - Drive 'C:' has 441 GB free
 - A minimum of 30 GB disk space is required on drive 'C:'
 - Host has 4492 MB free memory
 - A minimum of 4096 MB memory is required
 - Host has 8 CPU cores
 - A minimum of 4 CPU cores is required
 - Verifying static IP support for selected configuration

[12/24/2022 13:42:40] Step 3: Verifying AKS Edge Essentials - K8s (Public Preview) installation


[12/24/2022 13:42:40] Verifying installation

 - Verifying whether Hyper-V is enabled and functional
 - Hyper-V core services are active
 - Verifying expected Windows host binaries
 - Verifying expected Linux VM image
 - Testing for ssh key
 - Testing for wssdagent service
 - Testing if wssdagent is running
 - Testing if container resource is provisioned
 - Testing if vnet resource 'aksedgesw-int' is provisioned

[12/24/2022 13:43:30] Step 4: Runtime configuration complete. Creating virtual machine


[12/24/2022 13:43:30] Creating virtual machine. Verifying host requirements for selected configuration (27 GB disk size,
 4096 MB memory, 4 CPUs)


[12/24/2022 13:43:30] Verifying Host OS can support requested configuration


[12/24/2022 13:43:31] Verifying required storage, RAM and number of cores are available

 - Drive 'C:' has 441 GB free
 - A minimum of 27 GB disk space is required on drive 'C:'
 - Host has 4391 MB free memory
 - A minimum of 4096 MB memory is required
 - Host has 8 CPU cores
 - A minimum of 4 CPU cores is required

[12/24/2022 13:43:31] Extracting Linux VHD


[12/24/2022 13:43:46] Setting dynamically expanding virtual hard disk maximum size to 38.66 GB

 - Creating storage vhd (file: AzureIoTEdgeForLinux-v1-ledge)
 - Creating vnic (name: desktop-l33fu7f-ledgeInterface)
 - Instantiating virtual machine (name: desktop-l33fu7f-ledge)
 - Virtual machine successfuly instantiated

[12/24/2022 13:43:59] Virtual machine created successfully.


[12/24/2022 13:43:59] Successfully created virtual machine


[12/24/2022 13:43:59] Virtual machine hostname: desktop-l33fu7f-ledge

aksedge-config-single.json
[12/24/2022 13:44:34] Testing SSH connection...


[12/24/2022 13:44:34] ...successfully connected to the Linux VM

 - Please check your DNS configuration to ensure Internet connectivity.

[12/24/2022 13:44:35] Deployment successful


[12/24/2022 13:44:37] Setting DNS servers for Linux node 192.168.2.2 1.1.1.1.


[12/24/2022 13:44:38] Initializing kubernetes runtime in Linux node.

警告: ServerTLSBootstrap is enabled. User needs to approve CSR manually... see
https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#kubelet-serving-certs
 - Waiting for Kubernetes node (desktop-l33fu7f-ledge) to reach condition Ready, timeout = 900 seconds
 - Kubernetes node (desktop-l33fu7f-ledge) reached condition Ready

[12/24/2022 13:45:41] AksEdge - copying Kubeconfig into the host.


[12/24/2022 13:45:42] AksEdge - new deployment successfully created.

OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment