Hi! Thanks for the replies.
I guess my next question is, how do I find out the correct TTY (or whatever) to use to talk to the host, since /dev/tty00 doesn't work for me. I'm using virtual hosting at a provider, so I don't know the configuration from the outside. I'll attach the dmesg in case it gives some clues. Thomas On Tue, Jul 15, 2025 at 01:08:19PM +0000, ci4ic4 wrote: > Just to confirm, I tweaked /etc/rc.d/qemu-quest-agent to have only > > command_args="-c /usr/pkg/etc/qemu/qemu-ga.conf" > > and set the above file as: > > [general] > daemon=true > method=isa-serial > path=/dev/tty00 > pidfile=/var/run/qemu-ga.pid > logfile=/var/log/qemu-ga/qemu-ga.log > statedir=/var/run > verbose=true > blacklist= > allow-rpcs=guest-get-load,guest-ssh-remove-authorized-keys,guest-ssh-add-authorized-keys,guest-ssh-get-authorized-keys,guest-get-osinfo,guest-get-timezone,guest-get-users,guest-get-host-name,guest-exec,guest-exec-status,guest-network-get-interfaces,guest-file-flush,guest-file-seek,guest-file-write,guest-file-read,guest-file-close,guest-file-open,guest-shutdown,guest-info,guest-set-time,guest-get-time,guest-ping,guest-sync,guest-sync-delimited > > Now ProxMox does not complain that the guest agent is not running and the IP > address of the client is correctly displayed. > > (I just enabled all the rpcs, maybe that is by default, never checked). > > > > > > Sent with Proton Mail secure email. > > On Tuesday, 15 July 2025 at 13:16, ci4ic4 <ci4...@proton.me> wrote: > > > > > > > > > > > > > Sent with Proton Mail secure email. > > > > > > On Tuesday, 15 July 2025 at 12:51, ci4ic4 ci4...@proton.me wrote: > > > > > Sent with Proton Mail secure email. > > > > > > On Tuesday, 15 July 2025 at 10:47, Thomas Klausner w...@netbsd.org wrote: > > > > > > > Hi! > > > > > > > > Is anyone using qemu-guest-agent? > > > > > > Yes, > > > > > > > I wanted to set it up in a virtual environment, but the defaults don't > > > > work (i.e. without a config file): > > > > > > > > # /etc/rc.d/qemu-guest-agent start > > > > Starting qemu_guest_agent. > > > > 1752572488.279750: critical: error opening channel '/dev/tty00': Device > > > > not configured > > > > 1752572488.279898: critical: failed to create guest agent channel > > > > 1752572488.279972: critical: failed to initialize guest agent channel > > > > 1752572488.280036: critical: error initializing guest agent > > > > > > > > the package does not install an example config, nor could I find one > > > > in the distribution tarball, and I don't know what I should use as a > > > > config. > > > > > > There is no config file as far as I understand it - it is the command > > > line parameters: > > > > > > ... > > > command_args="-d -m isa-serial -p /dev/tty00 -r -t /var/run -f > > > /var/run/${name}.pid" > > > ... > > > > > > from /etc/rc.d/qemu-quest-agent, so I have: > > > ... > > > # ps axll | grep qemu-ga > > > 0 556 1 0 85 0 26752 2032 poll Isl ? 0:00.00 /usr/pkg/bin/qemu-ga -d -m > > > isa-serial -p /dev/tty00 -r -t /var/run -f /var/run/qemu_guest_agent.pid > > > ... > > > > > > This VM runs under ProxMox and has a serial port added to the > > > configuration - as a socket, which appears as the only option anyway, I > > > have no idea how it is used. In the options setup the QEMU guest agent is > > > enabled, usually as ISA - as it shows above - although it apparently runs > > > the same if defined as VirtIO. > > > > > > The graphics device is defined as SPICE and using it this way is quite > > > reasonable, with perfectly working sound and (llvmpipe) 3D acceleration. > > > The only trouble I am having is that I can't get more than 1280x768, for > > > some reason (it is using VESA). > > > > > > > Thanks, > > > > Thomas > > > > > > FWIW, Chavdar > > > > > > (for some reason, sent twice by the web client, no idea why). > > > > I mean, there is no configuration file in the package, of course.
NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024 mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC total memory = 8190 MB avail memory = 7896 MB timecounter: Timecounters tick every 10.000 msec Kernelized RAIDframe activated timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100 mainbus0 (root) ACPI: RSDP 0x00000000000F5280 000014 (v00 BOCHS ) ACPI: RSDT 0x00000000BFFE1BA0 000030 (v01 BOCHS BXPC 00000001 BXPC 00000001) ACPI: FACP 0x00000000BFFE1A84 000074 (v01 BOCHS BXPC 00000001 BXPC 00000001) ACPI: DSDT 0x00000000BFFE0040 001A44 (v01 BOCHS BXPC 00000001 BXPC 00000001) ACPI: FACS 0x00000000BFFE0000 000040 ACPI: APIC 0x00000000BFFE1AF8 000080 (v03 BOCHS BXPC 00000001 BXPC 00000001) ACPI: WAET 0x00000000BFFE1B78 000028 (v01 BOCHS BXPC 00000001 BXPC 00000001) ACPI: 1 ACPI AML tables successfully acquired and loaded ioapic0 at mainbus0 apid 0: pa 0xfec00000, version 0x11, 24 pins cpu0 at mainbus0 apid 0 cpu0: Use mfence to serialize rdtsc cpu0: AMD EPYC 7702P 64-Core Processor , id 0x830f10 cpu0: node 0, package 0, core 0, smt 0 cpu1 at mainbus0 apid 1 cpu1: AMD EPYC 7702P 64-Core Processor , id 0x830f10 cpu1: node 0, package 0, core 1, smt 0 acpi0 at mainbus0: Intel ACPICA 20221020 acpi0: X/RSDT: OemId <BOCHS ,BXPC ,00000001>, AslId <BXPC,00000001> LNKS: ACPI: Found matching pin for 0.1.INTA at func 3: 9 LNKD: ACPI: Found matching pin for 0.1.INTD at func 2: 11 LNKC: ACPI: Found matching pin for 0.3.INTA at func 0: 11 LNKD: ACPI: Found matching pin for 0.28.INTA at func 0: 11 LNKA: ACPI: Found matching pin for 0.29.INTA at func 0: 10 LNKB: ACPI: Found matching pin for 0.30.INTA at func 0: 10 acpi0: SCI interrupting at int 9 acpi0: fixed power button present timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000 qemufwcfg0 at acpi0 (FWCF, QEMU0002): io 0x510-0x51b qemufwcfg0: <QEMU> pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1 pckbc2 at acpi0 (MOU, PNP0F13) (aux port): irq 12 fdc0 at acpi0 (FDC0, PNP0700): io 0x3f2-0x3f5,0x3f7 irq 6 drq 2 ACPI: Enabled 2 GPEs in block 00 to 0F pckbd0 at pckbc1 (kbd slot) pckbc1: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard pms0 at pckbc1 (aux slot) pckbc1: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pci0 at mainbus0 bus 0: configuration mode 1 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok pchb0 at pci0 dev 0 function 0: Intel 82441FX (PMC) PCI and Memory Controller (rev. 0x02) pcib0 at pci0 dev 1 function 0: Intel 82371SB (PIIX3) PCI-ISA Bridge (rev. 0x00) piixide0 at pci0 dev 1 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00) piixide0: bus-master DMA support present piixide0: primary channel wired to compatibility mode piixide0: primary channel interrupting at ioapic0 pin 14 atabus0 at piixide0 channel 0 piixide0: secondary channel wired to compatibility mode piixide0: secondary channel interrupting at ioapic0 pin 15 atabus1 at piixide0 channel 1 uhci0 at pci0 dev 1 function 2: Intel 82371SB (PIIX3) USB Host Controller (rev. 0x01) uhci0: interrupting at ioapic0 pin 11 usb0 at uhci0: USB revision 1.0 piixpm0 at pci0 dev 1 function 3: Intel 82371AB (PIIX4) Power Management Controller (rev. 0x03) timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000 piixpm0: 24-bit timer piixpm0: interrupting at ioapic0 pin 9 iic0 at piixpm0 port 0: I2C bus vga0 at pci0 dev 2 function 0: vendor 1234 product 1111 (rev. 0x02) wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0 wsmux1: connecting to wsdisplay0 drm at vga0 not configured virtio0 at pci0 dev 3 function 0 virtio0: network device (id 1, rev. 0x00) vioif0 at virtio0: features: 0x31870020<EVENT_IDX,INDIRECT_DESC,NOTIFY_ON_EMPTY,CTRL_MAC,CTRL_RX,CTRL_VQ,STATUS,MAC> vioif0: Ethernet address XX:XX:XX:XX:XX:XX virtio0: allocated 20480 byte for virtqueue 0 for rx0, size 256 virtio0: using 8192 byte (512 entries) indirect descriptors virtio0: allocated 20480 byte for virtqueue 1 for tx0, size 256 virtio0: using 8192 byte (512 entries) indirect descriptors virtio0: allocated 8192 byte for virtqueue 2 for control, size 64 virtio0: config interrupting at msix0 vec 0 virtio0: queues interrupting at msix0 vec 1 virtio1 at pci0 dev 28 function 0 virtio1: console device (id 3, rev. 0x00) virtio1: autoconfiguration error: no matching child driver; not configured virtio2 at pci0 dev 29 function 0 virtio2: SCSI device (id 8, rev. 0x00) vioscsi0 at virtio2: features: 0x10000000<INDIRECT_DESC> virtio2: allocated 86016 byte for virtqueue 0 for control, size 256 virtio2: using 73728 byte (4608 entries) indirect descriptors virtio2: allocated 86016 byte for virtqueue 1 for event, size 256 virtio2: using 73728 byte (4608 entries) indirect descriptors virtio2: allocated 86016 byte for virtqueue 2 for request, size 256 virtio2: using 73728 byte (4608 entries) indirect descriptors vioscsi0: cmd_per_lun 128 qsize 256 seg_max 254 max_target 255 max_lun 16383 virtio2: config interrupting at msix1 vec 0 virtio2: queues interrupting at msix1 vec 1 scsibus0 at vioscsi0: 256 targets, 16384 luns per target virtio3 at pci0 dev 30 function 0 virtio3: memory balloon device (id 5, rev. 0x00) viomb0 at virtio3: features: 0x10000000<INDIRECT_DESC> virtio3: allocated 8192 byte for virtqueue 0 for inflate, size 128 virtio3: allocated 8192 byte for virtqueue 1 for deflate, size 128 virtio3: interrupting at ioapic0 pin 10 isa0 at pcib0 attimer0 at isa0 port 0x40-0x43 pcppi0 at isa0 port 0x61 spkr0 at pcppi0: PC Speaker wsbell at spkr0 not configured midi0 at pcppi0: PC speaker sysbeep0 at pcppi0 attimer0: attached to pcppi0 acpicpu0 at cpu0: ACPI CPU acpicpu0: C1: HLT, lat 0 us, pow 0 mW vmt0 at cpu0 vmt0: UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX vmware: open failed, eax=0xffffffff, ecx=0x1e, edx=0x5658 vmt0: autoconfiguration error: failed to open backdoor RPC channel (TCLO protocol) acpicpu1 at cpu1: ACPI CPU timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0 sd0 at scsibus0 target 0 lun 0: <QEMU, QEMU HARDDISK, 2.5+> disk fixed sd0: 160 GB, 16383 cyl, 16 head, 1280 sec, 512 bytes/sect x 335544320 sectors IPsec: Initialized Security Association Processing. sd0: GPT GUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX dk0 at sd0: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", 318767037 blocks at 2048, type: ffs dk1 at sd0: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", 16775135 blocks at 318769152, type: swap sd0: async, 8-bit transfers, tagged queueing uhub0 at usb0: NetBSD (0x0000) UHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhidev0 at uhub0 port 1 configuration 1 interface 0 uhidev0: QEMU (0x0627) QEMU USB Tablet (0x0001), rev 2.00/0.00, addr 2, iclass 3/0 ums0 at uhidev0: 3 buttons and Z dir wsmouse1 at ums0 mux 0 atapibus0 at atabus1: 2 targets cd0 at atapibus0 drive 0: <QEMU DVD-ROM, QM00003, 2.5+> cdrom removable cd0: 32-bit data port cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA) swwdog0: software watchdog initialized WARNING: 2 errors while detecting hardware; check system log. boot device: sd0 root on dk0 dumps on dk1 root file system type: ffs kern.module.path=/stand/amd64/10.1/modules wsdisplay0: screen 1 added (80x25, vt100 emulation) wsdisplay0: screen 2 added (80x25, vt100 emulation) wsdisplay0: screen 3 added (80x25, vt100 emulation) wsdisplay0: screen 4 added (80x25, vt100 emulation)