diladele / websafety

Simple and powerful web filter for HTTP and HTTPS traffic
https://www.diladele.com/websafety/
244 stars 24 forks source link

Pre-install Hyper-V Ubuntu packages on appliance #2034

Open ra-at-diladele-com opened 1 year ago

ra-at-diladele-com commented 1 year ago

It turns out you have to do a little bit of configuration to get the Hyper-V Linux Guest tools installed properly. Once they are installed properly, any modern backup software like Veeam will then be able to interact with the guest VM to take a VSS snapshot of the VM and properly perform the backup job. These are the steps needed:

nano /etc/initramfs-tools/modules
# Once in nano, navigate to the last line in the file and enter the following lines:
hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc

Save the file by hitting the ctrl + x and then issuing “y” for yes and then enter. Next, run the following commands to re-initialize the “modules” file, install the virtual tools and reboot the machine:

apt-get install linux-virtual linux-cloud-tools-virtual linux-tools-virtual
update-initramfs -u
reboot
ra-at-diladele-com commented 1 year ago

Not sure why all this is not done by the Ubuntu installer that knows it is being installed in the virtual machine?

ra-at-diladele-com commented 8 months ago

According to MS there is no performance gain going from GEN1 to GEN 2, https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v so postponing to some later version.