On 18-05-17 20:02, lkd-centos@sky-haven.net wrote:
On 2017-05-18 12:58, Patrick Laimbock wrote:
On 17-05-17 13:38, Akshay Kumar wrote:
Hi,
We use the Cloud Generic Images from https://cloud.centos.org/centos/7/images/ as a basis for making custom images for AWS, GCP and Azure.
It was great to see an Azure image that includes WALinuxAgent but 1703 and 1704 don't work at all. Here's the bug report:
Can you please do the conversion with qemu-img-ev from the Virt SIG and try again? The qemu-img-ev repo rpm can be found here:
Hi,
There's nothing wrong with the image proper; the VM actually starts and one can log in (if the starting image is unwrapped and deliberately bugged with a hardcoded username/password first), it responds to SSH, etc.
What doesn't happen is: waagent doesn't start because it hasn't been `systemctl enable`'ed.
Thanks for clarifying that the image boots properly. A new image with a fix will be generated. When it's ready (I don't know when as I'm not involved in that process) it should show up at: http://cloud.centos.org/centos/7/images/
HTH, Patrick
On 18/05/17 21:07, Patrick Laimbock wrote:
On 18-05-17 20:02, lkd-centos@sky-haven.net wrote:
On 2017-05-18 12:58, Patrick Laimbock wrote:
On 17-05-17 13:38, Akshay Kumar wrote:
Hi,
We use the Cloud Generic Images from https://cloud.centos.org/centos/7/images/ as a basis for making custom images for AWS, GCP and Azure.
It was great to see an Azure image that includes WALinuxAgent but 1703 and 1704 don't work at all. Here's the bug report:
Can you please do the conversion with qemu-img-ev from the Virt SIG and try again? The qemu-img-ev repo rpm can be found here:
Hi,
There's nothing wrong with the image proper; the VM actually starts and one can log in (if the starting image is unwrapped and deliberately bugged with a hardcoded username/password first), it responds to SSH, etc.
What doesn't happen is: waagent doesn't start because it hasn't been `systemctl enable`'ed.
Thanks for clarifying that the image boots properly. A new image with a fix will be generated. When it's ready (I don't know when as I'm not involved in that process) it should show up at: http://cloud.centos.org/centos/7/images/
I have the patch in, will try and get this turned around next week
On 2017-05-19T13:28:41+0100, Karanbir Singh wrote:
I have the patch in, will try and get this turned around next week
Howdy,
So I looked at CentOS-7-x86_64-Azure-1705.qcow2. Unfortunately the waagent.service unit is not enabled within the image, so this image doesn't start correctly on Azure.
Given the spec file in https://github.com/szarkos/AzureBuildCentOS, it seems that a preset file in /lib/systemd/system-preset will fix this problem during the install and prep. Doing exactly this by running the image in qemu-kvm, generating the preset, then `rpm --erase` / `rpm --install` worked.
(For those who are curious: on Azure Cloud Platform, the guest VM must have this agent installed and turned on so that it calls home. Otherwise, provisioning fails.)
Yours, &c Lance Dryden
Hi Lance,
On 14-06-17 16:31, Lance Dryden wrote:
Howdy,
So I looked at CentOS-7-x86_64-Azure-1705.qcow2. Unfortunately the waagent.service unit is not enabled within the image, so this image doesn't start correctly on Azure.
Thanks for the feedback.
Given the spec file in https://github.com/szarkos/AzureBuildCentOS, it seems that a preset file in /lib/systemd/system-preset will fix this problem during the install and prep. Doing exactly this by running the image in qemu-kvm, generating the preset, then `rpm --erase` / `rpm --install` worked.
Pending a fixed image, if you have guestfish installed I think you can enable the waagent.service with:
$ guestfish -a ./CentOS-7-x86_64-Azure-1705.qcow2 -i ln-sf /usr/lib/systemd/system/waagent.service /etc/systemd/system/multi-user.target.wants/waagent.service
After that waagent.service seems enabled judging from a quick check with guestfish but I haven't actually booted the image:
<fs> ls /etc/systemd/system/multi-user.target.wants/
NetworkManager.service auditd.service chronyd.service crond.service irqbalance.service kdump.service nfs-client.target postfix.service remote-fs.target rsyslog.service sshd.service tuned.service waagent.service
HTH, Patrick