Skip to content

Commit 9dc6751

Browse files
Add troubleshooting issue when VM does not show an IP (#658)
Related to: harvester/harvester#6644 Signed-off-by: Volker Theile <[email protected]> Co-authored-by: Jillian <[email protected]>
1 parent 98bdde9 commit 9dc6751

File tree

3 files changed

+120
-0
lines changed
  • docs/troubleshooting
  • versioned_docs
    • version-v1.3/troubleshooting
    • version-v1.4/troubleshooting

3 files changed

+120
-0
lines changed

docs/troubleshooting/vm.md

+40
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,43 @@ Node level operation, node by node:
414414
https://github.com/harvester/harvester/issues/5109
415415
416416
https://github.com/longhorn/longhorn/issues/8009
417+
418+
## Virtual Machine IP Address Not Displayed
419+
420+
### Issue Description
421+
422+
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.
453+
454+
### Related Issue
455+
456+
https://github.com/harvester/harvester/issues/6644

versioned_docs/version-v1.3/troubleshooting/vm.md

+40
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,43 @@ Node level operation, node by node:
414414
https://github.com/harvester/harvester/issues/5109
415415
416416
https://github.com/longhorn/longhorn/issues/8009
417+
418+
## Virtual Machine IP Address Not Displayed
419+
420+
### Issue Description
421+
422+
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.
453+
454+
### Related Issue
455+
456+
https://github.com/harvester/harvester/issues/6644

versioned_docs/version-v1.4/troubleshooting/vm.md

+40
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,43 @@ Node level operation, node by node:
414414
https://github.com/harvester/harvester/issues/5109
415415
416416
https://github.com/longhorn/longhorn/issues/8009
417+
418+
## Virtual Machine IP Address Not Displayed
419+
420+
### Issue Description
421+
422+
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.
453+
454+
### Related Issue
455+
456+
https://github.com/harvester/harvester/issues/6644

0 commit comments

Comments
 (0)