You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **Virtual Machines** screen on the Harvester UI does not display the IP address of a newly created or imported virtual machine.
423
+
424
+
### Issue Analysis
425
+
426
+
This issue usually occurs when the `qemu-guest-agent` package is not installed on the virtual machine. To determine if this is the root cause, check the status of the `VirtualMachineInstance` object.
427
+
428
+
```shell
429
+
$ kubectl get vmi -n <NAMESPACE> <NAME> -ojsonpath='{.status.interfaces[0].infoSource}'
430
+
```
431
+
432
+
The output does not contain the string `guest-agent` when the `qemu-guest-agent` package is not installed.
433
+
434
+
### Workaround
435
+
436
+
You can [install the QEMU guest agent](../vm/create-vm.md#installing-the-qemu-guest-agent) by editing the virtual machine configuration.
437
+
438
+
1. On the Harvester UI, go to **Virtual Machines**.
439
+
440
+
1. Locate the affected virtual machine, and then select **⋮ > Edit Config**.
441
+
442
+
1. On the **Advanced Options** tab, under **Cloud Config**, select **Install guest agent**.
443
+
444
+
1. Click **Save**.
445
+
446
+
However, cloud-init is run only once (when the virtual machine is started for the first time). To apply new **Cloud Config** settings, you must delete the cloud-init directory in the virtual machine.
447
+
448
+
```shell
449
+
$ sudo rm -rf /var/lib/cloud/*
450
+
```
451
+
452
+
After deleting the directory, you must restart the virtual machine so that cloud-init is run again and the `qemu-guest-agent` package is installed.
The **Virtual Machines** screen on the Harvester UI does not display the IP address of a newly created or imported virtual machine.
423
+
424
+
### Issue Analysis
425
+
426
+
This issue usually occurs when the `qemu-guest-agent` package is not installed on the virtual machine. To determine if this is the root cause, check the status of the `VirtualMachineInstance` object.
427
+
428
+
```shell
429
+
$ kubectl get vmi -n <NAMESPACE> <NAME> -ojsonpath='{.status.interfaces[0].infoSource}'
430
+
```
431
+
432
+
The output does not contain the string `guest-agent` when the `qemu-guest-agent` package is not installed.
433
+
434
+
### Workaround
435
+
436
+
You can [install the QEMU guest agent](../vm/create-vm.md#installing-the-qemu-guest-agent) by editing the virtual machine configuration.
437
+
438
+
1. On the Harvester UI, go to **Virtual Machines**.
439
+
440
+
1. Locate the affected virtual machine, and then select **⋮ > Edit Config**.
441
+
442
+
1. On the **Advanced Options** tab, under **Cloud Config**, select **Install guest agent**.
443
+
444
+
1. Click **Save**.
445
+
446
+
However, cloud-init is run only once (when the virtual machine is started for the first time). To apply new **Cloud Config** settings, you must delete the cloud-init directory in the virtual machine.
447
+
448
+
```shell
449
+
$ sudo rm -rf /var/lib/cloud/*
450
+
```
451
+
452
+
After deleting the directory, you must restart the virtual machine so that cloud-init is run again and the `qemu-guest-agent` package is installed.
The **Virtual Machines** screen on the Harvester UI does not display the IP address of a newly created or imported virtual machine.
423
+
424
+
### Issue Analysis
425
+
426
+
This issue usually occurs when the `qemu-guest-agent` package is not installed on the virtual machine. To determine if this is the root cause, check the status of the `VirtualMachineInstance` object.
427
+
428
+
```shell
429
+
$ kubectl get vmi -n <NAMESPACE> <NAME> -ojsonpath='{.status.interfaces[0].infoSource}'
430
+
```
431
+
432
+
The output does not contain the string `guest-agent` when the `qemu-guest-agent` package is not installed.
433
+
434
+
### Workaround
435
+
436
+
You can [install the QEMU guest agent](../vm/create-vm.md#installing-the-qemu-guest-agent) by editing the virtual machine configuration.
437
+
438
+
1. On the Harvester UI, go to **Virtual Machines**.
439
+
440
+
1. Locate the affected virtual machine, and then select **⋮ > Edit Config**.
441
+
442
+
1. On the **Advanced Options** tab, under **Cloud Config**, select **Install guest agent**.
443
+
444
+
1. Click **Save**.
445
+
446
+
However, cloud-init is run only once (when the virtual machine is started for the first time). To apply new **Cloud Config** settings, you must delete the cloud-init directory in the virtual machine.
447
+
448
+
```shell
449
+
$ sudo rm -rf /var/lib/cloud/*
450
+
```
451
+
452
+
After deleting the directory, you must restart the virtual machine so that cloud-init is run again and the `qemu-guest-agent` package is installed.
0 commit comments