How to Install Hyper-V integration services in the ubuntu Linux VM

  • 30 December 2023
  • 7 comments
  • 6300 views

Userlevel 7
Badge +7
  • Veeam Vanguard, Veeam Legend
  • 192 comments

If the Hyper-V integration services are not installed, you cannot restore any data from Veeam Backup.

Please follow the steps to install Hyper-V integration services in the Ubuntu Linux VM of Hyper-V.

 

 

1.Login to Hyper-V host.

2.Open PowerShell as Administrator.

3.Run the command as follows.

Get-VMIntegrationService -VMName "ubuntu2310"

 

 

4.Open the Hyper-V Manager tool.

5.Right-click the VM and select the Settings.

 

 

6.Select Integration Services on the Settings of the VM page.

 

 

7.Select the Guest services checkbox on the Integration Services page and click OK.

 

 

8.Run the command as follows to ensure the Integration Services of the VM are enabled

Get-VMIntegrationService -VMName "ubuntu2310"

 

 

9.Login to the Linux Server.

10.Run the command as follows to edit modules.

vim /etc/initramfs-tools/modules

 

 

11.Add hv_modules to initramfs-tools modules.

hv_vmbus

hv_storvsc

hv_blkvsc

hv_netvsc

 

 

12.Run the following command to update the apt packages.

sudo apt update

 

 

13.Run the following command to upgrade the apt packages.

sudo apt -y upgrade

 

 

14.Run the following command to install the Hyper-V integration packages for Ubuntu.

sudo apt -y install linux-virtual linux-cloud-tools-virtual linux-tools-virtual

 

 

15.Run the following command to update initramfs.

sudo update-initramfs -u

 

 

16.Run the following command to reboot.

sudo reboot

17.Run the following command to ensure the LIS integration features are installed.

lsmod | grep hv

 

 

18.Run the Restore process from the Veeam Backup and Manager Server again, and the error disappears.

 

 


7 comments

Userlevel 7
Badge +20

Don't deal with Linux or hyper-v much but good to know.

Userlevel 7
Badge +17

Linux!! My new fave OS 😂 I wasn’t aware you couldn’t do restores without Int Svcs on HV. You can if Tools isn’t installed in VMW. I learned something today. 😊

Userlevel 7
Badge +6

Hi @CarySun! Good to know, thanks for your job and sharing with us 👍

Userlevel 7
Badge +9

Thank for sharing these steps @CarySun! BTW guys, remember to replace the ubuntu2310 with your own VMName, and not just copy ad paste the command -:)

Userlevel 7
Badge +6

Thank you @CarySun for your amazing effort

Userlevel 7
Badge +6

Great info….I think Hyper-V might start making a comeback….

Userlevel 7
Badge +20

Great info….I think Hyper-V might start making a comeback….

 

Comment