unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Qemu not creating virtual ports
@ 2023-01-25 11:28 Thomas Ieong
  2023-01-25 14:57 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Ieong @ 2023-01-25 11:28 UTC (permalink / raw)
  To: help-guix

[-- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Qemu not creating virtual ports
  2023-01-25 11:28 Qemu not creating virtual ports Thomas Ieong
@ 2023-01-25 14:57 ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice @ 2023-01-25 14:57 UTC (permalink / raw)
  To: Thomas Ieong; +Cc: help-guix

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

Hi Thomas,

Thomas Ieong 写道:
> 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.

It's not clear to me what refers to the guest and/or host.  Is the 
host a Guix System?  Something else?

If it is a Guix System, could you provide your system.scm and the 
output of ‘guix describe’?

If it's not, could you install Guix on the host (using 
http://guix-install.sh) if you haven't yet, then try using its 
qemu package rather than your distro's?

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-25 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-25 11:28 Qemu not creating virtual ports Thomas Ieong
2023-01-25 14:57 ` Tobias Geerinckx-Rice

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).