"no medium found on /dev/hdc" error during Azure Linux VM startup

Sam 0 Reputation points
2025-02-04T21:04:12.38+00:00

We have a Linux VM image based on Yocto. The waagent is set up on the system. However, we got the "no medium found" error message during startup from waagent.log.

/dev/hdc seems to be the read-only DVD needed for provisioning, but I have no idea where it come from or why it is missing.

Any pointer on how to fix the error message are greatly appreciated.

==========

2025-02-04T20:24:12.688553Z WARNING Daemon Daemon Unable to load distro implementation for . Using default distro implementation instead.

2025-02-04T20:24:12.693311Z INFO Daemon Daemon Azure Linux Agent Version: 2.10.0.1

2025-02-04T20:24:12.695659Z INFO Daemon Daemon OS:

2025-02-04T20:24:12.697199Z INFO Daemon Daemon Python: 3.7.8

2025-02-04T20:24:12.698919Z INFO Daemon Daemon Run daemon

2025-02-04T20:24:12.700497Z WARNING Daemon Daemon Unable to load distro implementation for . Using default distro implementation instead.

2025-02-04T20:24:12.704072Z WARNING Daemon Daemon Unable to load distro implementation for . Using default distro implementation instead.

2025-02-04T20:24:12.707856Z WARNING Daemon Daemon Unable to load distro implementation for . Using default distro implementation instead.

2025-02-04T20:24:12.711486Z WARNING Daemon Daemon Unable to load distro implementation for . Using default distro implementation instead.

2025-02-04T20:24:12.715067Z INFO Daemon Daemon No RDMA handler exists for distro='' version=''

2025-02-04T20:24:12.718460Z INFO Daemon Daemon Unable to get cloud-init enabled status from systemctl: [Errno 2] No such file or directory: 'systemctl': 'systemctl'

2025-02-04T20:24:12.725688Z INFO Daemon Daemon Unable to get cloud-init enabled status from service: Command '['service', 'cloud-init', 'status']' returned non-zero exit status 1.

2025-02-04T20:24:12.730491Z INFO Daemon Daemon cloud-init is enabled: False

2025-02-04T20:24:12.732547Z INFO Daemon Daemon Using waagent for provisioning

2025-02-04T20:24:12.734627Z WARNING Daemon Daemon Unable to load distro implementation for . Using default distro implementation instead.

2025-02-04T20:24:12.738229Z WARNING Daemon Daemon Unable to load distro implementation for . Using default distro implementation instead.

2025-02-04T20:24:12.741989Z INFO Daemon Daemon Clean protocol and wireserver endpoint

2025-02-04T20:24:12.744362Z INFO Daemon Daemon Running default provisioning handler

2025-02-04T20:24:12.747293Z INFO Daemon Daemon Unable to get cloud-init enabled status from systemctl: [Errno 2] No such file or directory: 'systemctl': 'systemctl'

2025-02-04T20:24:12.753568Z INFO Daemon Daemon Unable to get cloud-init enabled status from service: Command '['service', 'cloud-init', 'status']' returned non-zero exit status 1.

2025-02-04T20:24:12.758680Z INFO Daemon Daemon cloud-init is enabled: False

2025-02-04T20:24:12.761034Z INFO Daemon Daemon Copying ovf-env.xml

2025-02-04T20:24:12.785295Z WARNING Daemon Daemon Mounting dvd failed [retry 1/5, sleeping 5 sec]

2025-02-04T20:24:17.812660Z WARNING Daemon Daemon Mounting dvd failed [retry 2/5, sleeping 5 sec]

2025-02-04T20:24:22.840115Z WARNING Daemon Daemon Mounting dvd failed [retry 3/5, sleeping 5 sec]

2025-02-04T20:24:27.868301Z WARNING Daemon Daemon Mounting dvd failed [retry 4/5, sleeping 5 sec]

2025-02-04T20:24:32.895865Z WARNING Daemon Daemon Mounting dvd failed [retry 5/5, sleeping 5 sec]

2025-02-04T20:24:37.904107Z ERROR Daemon Daemon Provisioning failed: [ProtocolError] [CopyOvfEnv] Error mounting dvd: [OSUtilError] Failed to mount dvd device

Inner error: [['mount', '-o', 'ro', '-t', 'udf,iso9660,vfat', '/dev/hdc', '/mnt/cdrom/secure']] returned 32:

stdout:

stderr: mount: /mnt/cdrom/secure: no medium found on /dev/hdc.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,332 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.