Closed pinger closed 2 years ago
@pinger hi, I don't think it's the azure package that's needed. Recently there was an issue causing the packer builds to fail, so I had to remove the some of the packages from the install config. Specifically the relevant lines are:
ubuntu1610: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r) linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual
ubuntu1704: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r) linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual
ubuntu1710: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r) linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual
ubuntu1804: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r) linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual
ubuntu1810: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r) linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual
ubuntu1904: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
ubuntu1910: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
ubuntu2004: linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
I removed linux-cloud-tools-common linux-cloud-tools-generic linux-cloud-tools-virtual from the 19.04 to 20.04 configs. 20.10 and above use a different automated install process.
That said, I thought the linux-cloud-tools package was still providing the required Hyper-V modules, because if it wasn't then box build process would fail because packer wouldn't be able to figure out the IP address either. So I'm not sure why it breaks between when the box image is built, and when you use it. Best guess is that a kernel update isn't tracking the cloud package because of what was removed. I'll try adding the back what was removed to see if the issue has been fixed by Ubuntu.
Seems to be working again. So it should be fixed in the 3.5.4 images... which are coming soon.
Hi all, It seems hyper-v box doesn't work. The VM does not show IP because some Hyper-V specific packets are missing.
generic/ubuntu2004 v3.5.2 host: Windows 11
Please add linux-azure package into the box.