cloud-init on Ubuntu 18.04 image does not run in VIO
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned | ||
open-vm-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When running the official Ubuntu 18.04 cloud image in VIO (VMware Integrated OpenStack, see [1]), data source `Ec2` is not detected as working so `cloud-init` does not run.
As a result, it is impossible to log in or connect to the running image via SSH. In other words, VMs started from the official Ubuntu 18.04 images are unusable on VIO.
Note that this issue was already identified as a problem with `ds-identify` (part of the `cloud-init` package) in comment #16 to bug 1760776 (see [2]):
> VMWARE does not always use DatasourceOVF. When using OpenStack VIO
> (Openstack on VMWARE) the ec2 datasource fallback is no longer being
> used as of this more recent update. OpenStack VIO exposes user-data
> on 169.254.169.254 but now we get a platform unknown
However, the reply in comment #17 (see [3]) mentioned that a new bug should have been opened, which is what I'm doing now.
This issue applies to the released images (e.g., https:/
[1]: https:/
[2]: https:/
[3]: https:/
I am providing here the additional information that were requested in https:/ /bugs.launchpad .net/ubuntu/ +source/ open-vm- tools/+ bug/1760776/ comments/ 17
I'm attaching the collected cloud-init logs; here is the output of commands.
The Linux kernel correctly determines the hypervisor is VMware (excerpt from `/var/log/syslog`):
Dec 6 15:28:02 ubuntu kernel: [ 0.000000] Linux version 4.15.0-72-generic (buildd@ lcy01-amd64- 026) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~ 18.04.1) ) #81 72.81-generic 4.15.18) /boot/vmlinuz- 4.15.0- 72-generic root=LABEL= cloudimg- rootfs ro console=tty1 console=ttyS
-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 (Ubuntu 4.15.0-
Dec 6 15:28:02 ubuntu kernel: [ 0.000000] Command line: BOOT_IMAGE=
0
...
Dec 6 15:28:02 ubuntu kernel: [ 0.000000] DMI: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 12/12/2018
Dec 6 15:28:02 ubuntu kernel: [ 0.000000] Hypervisor detected: VMware
Dec 6 15:28:02 ubuntu kernel: [ 0.000000] vmware: TSC freq read from hypervisor : 2399.999 MHz
Dec 6 15:28:02 ubuntu kernel: [ 0.000000] vmware: Host bus clock speed read from hypervisor : 66000000 Hz
Dec 6 15:28:02 ubuntu kernel: [ 0.000000] vmware: using sched offset of 13058703528 ns
Still, `/sys/hypervisor` is empty:
root@ubuntu:~# sudo sh -c 'cd /sys/hypervisor && grep -r . *'
grep: *: No such file or directory
root@ubuntu:~# ls /sys/hypervisor/ -lA
total 0
However, DMI info is there:
root@ubuntu:~# sudo sh -c 'cd /sys/class/dmi/id && grep -r . *' date:12/ 12/2018 vendor: Phoenix Technologies LTD version: 6.00 name:440BX Desktop Reference Platform serial: None vendor: Intel Corporation version: None asset_tag: No Asset Tag serial: None vendor: No Enclosure version: N/A dmi:bvnPhoenixT echnologiesLTD: bvr6.00: bd12/12/ 2018:svnVMware, Inc.:pnVMwareVi rtualPlatform: pvrNone: rvnIntelCorpora tion:rn440BXDes ktopReferencePl atform: rvrNone: cvnNoEnclosure: ct1:cvrN/ A: runtime_ active_ time:0 runtime_ active_ kids:0 runtime_ usage:0 runtime_ status: unsupported nd_delay_ ms: Input/output error async:disabled runtime_ suspended_ time:0 runtime_ enabled: disabled control: auto name:VMware Virtual Platform serial: VMware- 42 17 b1 e7 f5 b4 cf 93-5f 00 68 ae ca 46 eb 65 uuid:E7B11742- B4F5-93CF- 5F00-68AECA46EB 65 version: None vendor: VMware, Inc. MODALIAS= dmi:bvnPhoenixT echnologiesLTD: bvr6.00: bd12/12/ 2018:svnVMware, Inc.:pnVMwareVi rtualPlatform: pvrNone: rvnIntelCorpora tion:rn440BXDes ktopReferencePl atform: rvrNone: cvnNoEnclosure: ct1:cvrN/ A:
bios_
bios_
bios_
board_
board_
board_
board_
chassis_
chassis_
chassis_type:1
chassis_
chassis_
modalias:
power/
power/
power/
power/
grep: power/autosuspe
power/
power/
power/
power/
product_
product_
product_
product_
sys_
uevent: