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
doas echo"https://ftp.openbsd.org/pub/OpenBSD"> /etc/installurl
48
48
```
49
49
50
50
4. By default, the `root` user is disabled on virtual machines in Azure. Users can run commands with elevated privileges by using the `doas`command on OpenBSD VM. Doas is enabled by default. For more information, see [doas.conf](https://man.openbsd.org/doas.conf.5).
51
51
52
52
5. Install and configure prerequisites for the Azure Agent as follows:
doas ln -sf /usr/local/bin/python2.7 /usr/local/bin/python
57
+
doas ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3
58
+
doas ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config
59
+
doas ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc
60
60
```
61
61
62
62
6. The latest release of the Azure agent can always be found on [GitHub](https://github.com/Azure/WALinuxAgent/releases). Install the agent as follows:
63
63
64
64
```sh
65
-
git clone https://github.com/Azure/WALinuxAgent
66
-
cd WALinuxAgent
67
-
python setup.py install
68
-
waagent -register-service
65
+
doas git clone https://github.com/Azure/WALinuxAgent
66
+
doas cd WALinuxAgent
67
+
doas python setup.py install
68
+
doas waagent -register-service
69
69
```
70
70
71
71
> [!IMPORTANT]
72
72
> After you install Azure Agent, it's a good idea to verify that it's running as follows:
7. Deprovision the system to clean it and make it suitable forreprovisioning. The following command also deletes the last provisioned user account and the associated data:
80
+
7. Deprovision the system to clean it and make it suitable fordeprovisioning. The following command also deletes the last provisioned user account and the associated data:
81
81
82
82
```sh
83
-
waagent -deprovision+user -force
83
+
doas waagent -deprovision+user -force
84
84
```
85
+
> [!NOTE]
86
+
> If you are migrating a specific virtual machine and do not wish to create a generalized image, skip the deprovision step.
0 commit comments