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
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/create-upload-openbsd.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ This article assumes that you have the following items:
22
22
23
23
***An Azure subscription** - If you don't have an account, you can create one in just a couple of minutes. If you have an MSDN subscription, see [Monthly Azure credit for Visual Studio subscribers](https://azure.microsoft.com/pricing/member-offers/msdn-benefits-details/). Otherwise, learn how to [create a free trial account](https://azure.microsoft.com/pricing/free-trial/).
24
24
***Azure CLI** - Make sure you have the latest [Azure CLI](/cli/azure/install-azure-cli) installed and logged in to your Azure account with [az login](/cli/azure/reference-index).
25
-
***OpenBSD operating system installed in a .vhd file** - A supported OpenBSD operating system ([6.6 version AMD64](https://ftp.openbsd.org/pub/OpenBSD/6.6/amd64/)) must be installed to a virtual hard disk. Multiple tools exist to create .vhd files. For example, you can use a virtualization solution such as Hyper-V to create the .vhd file and install the operating system. For instructions about how to install and use Hyper-V, see [Install Hyper-V and create a virtual machine](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh846766(v=ws.11)).
25
+
***OpenBSD operating system installed in a .vhd file** - A supported OpenBSD operating system ([6.6 version AMD64](https://ftp.openbsd.org/pub/OpenBSD/7.2/amd64/)) must be installed to a virtual hard disk. Multiple tools exist to create .vhd files. For example, you can use a virtualization solution such as Hyper-V to create the .vhd file and install the operating system. For instructions about how to install and use Hyper-V, see [Install Hyper-V and create a virtual machine](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh846766(v=ws.11)).
26
26
27
27
28
28
## Prepare OpenBSD image for Azure
@@ -31,57 +31,59 @@ On the VM where you installed the OpenBSD operating system 6.1, which added Hype
31
31
1. If DHCP is not enabled during installation, enable the service as follows:
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