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
deb http://debian-archive.trafficmanager.net/debian jessie-updates main
67
+
deb-src http://debian-archive.trafficmanager.net/debian jessie-updates main
68
68
deb http://debian-archive.trafficmanager.net/debian jessie-backports main
69
69
deb-src http://debian-archive.trafficmanager.net/debian jessie-backports main
70
-
deb http://debian-archive.trafficmanager.net/debian-azure jessie main
71
-
deb-src http://debian-archive.trafficmanager.net/debian-azure jessie main
72
70
71
+
**Debian 9.x "Stretch"**
72
+
deb http://debian-archive.trafficmanager.net/debian stretch main
73
+
deb-src http://debian-archive.trafficmanager.net/debian stretch main
74
+
deb http://debian-archive.trafficmanager.net/debian-security stretch/updates main
75
+
deb-src http://debian-archive.trafficmanager.net/debian-security stretch/updates main
76
+
deb http://debian-archive.trafficmanager.net/debian stretch-updates main
77
+
deb-src http://debian-archive.trafficmanager.net/debian stretch-updates main
78
+
deb http://debian-archive.trafficmanager.net/debian stretch-backports main
79
+
deb-src http://debian-archive.trafficmanager.net/debian stretch-backports main
73
80
74
-
1. Install the Azure Linux Agent:
81
+
7. Install the Azure Linux Agent:
75
82
76
83
# sudo apt-get update
77
84
# sudo apt-get install waagent
78
-
2. For Debian 7, it is required to run the 3.16-based kernel from the wheezy-backports repository. First create a file called /etc/apt/preferences.d/linux.pref with the following contents:
85
+
86
+
8. For Debian 9+, it is recommended to use the new Debian Cloud kernel for use with VMs in Azure. To install this new kernel, first create a file called /etc/apt/preferences.d/linux.pref with the following contents:
79
87
80
-
Package: linux-image-amd64 initramfs-tools
81
-
Pin: release n=wheezy-backports
88
+
Package: linux-* initramfs-tools
89
+
Pin: release n=stretch-backports
82
90
Pin-Priority: 500
83
91
84
-
Then run "sudo apt-get install linux-image-amd64" to install the new kernel.
85
-
3. Deprovision the virtual machine and prepare it for provisioning on Azure and run:
92
+
Then run "sudo apt-get install linux-image-cloud-amd64" to install the new Debian Cloud kernel.
93
+
94
+
9. Deprovision the virtual machine and prepare it for provisioning on Azure and run:
86
95
87
96
# sudo waagent –force -deprovision
88
97
# export HISTSIZE=0
89
98
# logout
90
-
4. Click **Action** -> Shut Down in Hyper-V Manager. Your Linux VHD is now ready to be uploaded to Azure.
99
+
100
+
10. Click **Action** -> Shut Down in Hyper-V Manager. Your Linux VHD is now ready to be uploaded to Azure.
91
101
92
102
## Next steps
93
103
You're now ready to use your Debian virtual hard disk to create new virtual machines in Azure. If this is the first time that you're uploading the .vhd file to Azure, see [Create a Linux VM from a custom disk](upload-vhd.md#option-1-upload-a-vhd).
0 commit comments