Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

(solved) VirtIO Serial Issue

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Bigun
Advocate
Advocate
User avatar
Posts: 2198
Joined: Sun Sep 21, 2003 3:45 am
Contact:
Contact Bigun
Website

(solved) VirtIO Serial Issue

  • Quote

Post by Bigun » Tue Jan 24, 2023 6:16 pm

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: Select all

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: Select all

# 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.
Last edited by Bigun on Thu Jan 26, 2023 1:43 am, edited 1 time in total.
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Top
quilosaq
Veteran
Veteran
Posts: 1596
Joined: Tue Dec 22, 2009 5:07 pm

  • Quote

Post by quilosaq » Wed Jan 25, 2023 7:07 pm

That device must be configured externally by hypervisor. Maybe you forgot enabled it:

Code: Select all

qm set VMID --agent 1
https://pve.proxmox.com/wiki/Qemu-guest ... stallation
Top
Bigun
Advocate
Advocate
User avatar
Posts: 2198
Joined: Sun Sep 21, 2003 3:45 am
Contact:
Contact Bigun
Website

  • Quote

Post by Bigun » Wed Jan 25, 2023 8:35 pm

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
Top
Bigun
Advocate
Advocate
User avatar
Posts: 2198
Joined: Sun Sep 21, 2003 3:45 am
Contact:
Contact Bigun
Website

  • Quote

Post by Bigun » Wed Jan 25, 2023 8:52 pm

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: Select all

# 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
Top
quilosaq
Veteran
Veteran
Posts: 1596
Joined: Tue Dec 22, 2009 5:07 pm

  • Quote

Post by quilosaq » Wed Jan 25, 2023 11:29 pm

Try enabling Virtio console (CONFIG_VIRTIO_CONSOLE) in Linux sources:

Code: Select all

Device Drivers
  Character devices
    Virtio console
Top
Bigun
Advocate
Advocate
User avatar
Posts: 2198
Joined: Sun Sep 21, 2003 3:45 am
Contact:
Contact Bigun
Website

  • Quote

Post by Bigun » Thu Jan 26, 2023 1:43 am

quilosaq wrote:Try enabling Virtio console (CONFIG_VIRTIO_CONSOLE) in Linux sources:

Code: Select all

Device Drivers
  Character devices
    Virtio console
That did it, thank you.
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Top
Post Reply

6 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic