unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Thomas Ieong <th.ieong@free.fr>
To: help-guix@gnu.org
Subject: Qemu not creating virtual ports
Date: Wed, 25 Jan 2023 12:28:16 +0100	[thread overview]
Message-ID: <87zga6dfan.fsf@free.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

Hi guix,

I was trying to setup the qemu-guest-agent-service-type, but after
some debugging I found that the virtual ports that qemu-ga are supposed
to create in /sys/class/virtio-ports/ aren't actually there and so the
guest agent crashes.

I checked that all the kernel modules related to virtio are loaded.

Apparently it's something specific to my configuration as I talked
to another guixer and it was working perfectly for him with the latest
guix and kernel.
But I tested the guest-agent on my old t440p and it was not working
either so I don't really know what's happening.

Attached is a minimal example to reproduce the issue.

--
Thomas Ieong

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: example.org --]
[-- Type: text/x-org, Size: 745 bytes --]

First download the guix qcow image here:

https://guix.gnu.org/manual/en/html_node/Running-Guix-in-a-VM.html

Then in the same dir put the following in a bash script:

#+begin_src sh
  #!/usr/bin/env bash

  qemu-system-x86_64 \
     -nic user,model=virtio-net-pci \
     -enable-kvm -m 2048 \
     -device virtio-blk,drive=myhd \
     -drive if=none,file=guix-system-vm-image-1.4.0.x86_64-linux.qcow2,id=myhd \
     -device virtio-serial \
     -chardev socket,path=/tmp/foo,server=on,wait=off,id=foo \
     -device virtserialport,chardev=foo,name=org.fedoraproject.port.0
#+end_src

And then do :

#+begin_src sh
  ls -alh /sys/class/virtio-ports/
#+end_src

According to this link there should be something but I'dont see anything on my end


             reply	other threads:[~2023-01-25 12:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25 11:28 Thomas Ieong [this message]
2023-01-25 14:57 ` Qemu not creating virtual ports Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zga6dfan.fsf@free.fr \
    --to=th.ieong@free.fr \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).