View previous topic :: View next topic |
Author |
Message |
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Tue Jan 24, 2023 6:16 pm Post subject: (solved) VirtIO Serial Issue |
|
|
I'm trying to get qemu-guest-agent in my Gentoo VM to talk with the Proxmox Hypervisor, and I'm having trouble.
I've followed this guide to complete the virtual machine kernel configuration, I've enabled the qemu guest agent option in proxmox on the VM, installed and started qemu-guest-agent service, and there's no communication between the VM and Proxmox.
In the VM I see what I think is the correct needed hardware via lspci:
Code: | 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI
00:08.0 Communication controller: Red Hat, Inc. Virtio console
00:12.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge |
However the needed socket in the dev directory is missing:
Code: | # ls -la /dev/virtio-ports/org.qemu.guest_agent.0
ls: cannot access '/dev/virtio-ports/org.qemu.guest_agent.0': No such file or directory |
Any help is appreciated. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim
Last edited by Bigun on Thu Jan 26, 2023 1:43 am; edited 1 time in total |
|
Back to top |
|
|
quilosaq Veteran
Joined: 22 Dec 2009 Posts: 1520
|
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Wed Jan 25, 2023 8:35 pm Post subject: |
|
|
I've checked no less that 15 times, QEMU Guest Agent is enabled on the hypervisor.
Just for completion sake, I ran the command as well. No change.
I installed Ubuntu and it worked immediately out of the box, going to copy the related kernel options to see if it gets it working. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Wed Jan 25, 2023 8:52 pm Post subject: |
|
|
No, it didn't work. The virtio-ports dev directory is missing and the /dev/vport1p1 isn't there either.
Judging from the Ubuntu install and lspci -k, it seems the communications controller virtual device uses the virtio-pci driver, which is 100% present in my Gentoo install.
From Gentoo:
Code: | # lspci -k
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
Subsystem: Red Hat, Inc. Qemu virtual machine
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
Subsystem: Red Hat, Inc. Qemu virtual machine
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
Subsystem: Red Hat, Inc. Qemu virtual machine
Kernel driver in use: ata_piix
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
Subsystem: Red Hat, Inc. QEMU Virtual Machine
Kernel driver in use: uhci_hcd
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
Subsystem: Red Hat, Inc. Qemu virtual machine
00:02.0 VGA compatible controller: Device 1234:1111 (rev 02)
Subsystem: Red Hat, Inc. Device 1100
00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon
Subsystem: Red Hat, Inc. Virtio memory balloon
Kernel driver in use: virtio-pci
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI
Subsystem: Red Hat, Inc. Virtio SCSI
Kernel driver in use: virtio-pci
00:08.0 Communication controller: Red Hat, Inc. Virtio console
Subsystem: Red Hat, Inc. Virtio console
Kernel driver in use: virtio-pci
00:12.0 Ethernet controller: Red Hat, Inc. Virtio network device
Subsystem: Red Hat, Inc. Virtio network device
Kernel driver in use: virtio-pci
00:1e.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
00:1f.0 PCI bridge: Red Hat, Inc. QEMU PCI-PCI bridge
01:1d.0 Unclassified device [00ff]: Red Hat, Inc. Virtio RNG
Subsystem: Red Hat, Inc. Virtio RNG
Kernel driver in use: virtio-pci |
Except for the order of devices, the Ubuntu lspci -k looks near exact to my Gentoo install. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
quilosaq Veteran
Joined: 22 Dec 2009 Posts: 1520
|
Posted: Wed Jan 25, 2023 11:29 pm Post subject: |
|
|
Try enabling Virtio console (CONFIG_VIRTIO_CONSOLE) in Linux sources:
Code: | Device Drivers
Character devices
Virtio console |
|
|
Back to top |
|
|
Bigun Advocate
Joined: 21 Sep 2003 Posts: 2196
|
Posted: Thu Jan 26, 2023 1:43 am Post subject: |
|
|
quilosaq wrote: | Try enabling Virtio console (CONFIG_VIRTIO_CONSOLE) in Linux sources:
Code: | Device Drivers
Character devices
Virtio console |
|
That did it, thank you. _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|