help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtualisation: Network problems


From: Chris Keschnat
Subject: Re: Virtualisation: Network problems
Date: Mon, 26 Sep 2022 18:29:57 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Gottfried <gottfried@posteo.de> writes:

> [[PGP Signed Part:Undecided]]
> Hi Chris,
>
> thanks for your answer
>
>   does:
>> ~sudo virsh net-list~ show a network?
>
> yes, it shows a network: ("ja" means yes)
>
> gfp@Tuxedo ~$ sudo virsh net-list
>   Name      Status   Automatischer Start   Bleibend
> ----------------------------------------------------
>   network   Aktiv    ja                    ja
>
>
> Gottfried
>
>
>
> ----------------------------------------------------
> From: Chris Keschnat <chris@catsu.it>
> To: help-guix@gnu.org
> Subject: Re: Virtualisation: Network problems
> Message-ID: <8635celpyy.fsf@catsu.it>
> Content-Type: text/plain; charset=utf-8
>
>
> Gottfried <gottfried@posteo.de> writes:
>
>  > [[PGP Signed Part:Undecided]]
>  > Hi Guixers,
>  >
>  > Basic details of my Virtualisation setup:
>  >
>  > Name: QEUMU/KVM
>  > Libvirt URL: qemu:///System
>  > Autoconnect yes
>  > -------------------------------------
>  > Network selection
>  > It gives me 3 options:
>  >
>  > 1. I added a virtual network
>  >   Name: network
>  >   Device: virbr0 is there
>  >   IPv4 configuration is there
>  >
>  > Details:
>  >
>  > <network>
>  >   <name>network</name>
>  >   <uuid>e324aabf-6ad4-4407-9028-82c96be96e0c</uuid>
>  >   <forward mode="nat">
>  >     <nat>
>  >       <port start="1024" end="65535"/>
>  >     </nat>
>  >   </forward>
>  >   <bridge name="virbr0" stp="on" delay="0"/>
>  >   <mac address="52:54:00:16:e9:74"/>
>  >   <domain name="network"/>
>  >   <ip address="192.168.100.1" netmask="255.255.255.0">
>  >     <dhcp>
>  >       <range start="192.168.100.128" end="192.168.100.254"/>
>  >     </dhcp>
>  >   </ip>
>  > </network>
>  >
>  > 2. Bridge device
>  > 3. Macvtap device
>  >
>  > I guess the 1. option is the one I need. May be I made a mistake in
>  > adding a virtual network
>  > -------------------------------------------------------------------
>  >
>  > When I want to set up the QEMU/KVM network connection for the VM
>  > and I want to run the last step(the 5/5 step) of installing an iso
>  > it says:
>  >
>  > Installation konnte nicht fertiggestellt werden/
>  > Installation could not be completed:
>  > Failed connect socket to
>  > '/var/run/libvirt/virtlogd-sock':
>  > No such file or directory
>  > -------------------------------------------------------------------
>  > Installation konnte nicht fertiggestellt werden: ┬źFailed to connect
>  > socket to '/var/run/libvirt/virtlogd-sock': No such file or directory┬╗
>  >
>  > Traceback (most recent call last):
>  >   File
>  >
> "/gnu/store/n3gyjzsylh2abc3ykxz9kf5335azgacr-virt-manager-3.2.0/share/virt-manager/virtManager/asyncjob.py",
>  >   line 65, in cb_wrapper
>  >     callback(asyncjob, *args, **kwargs)
>  >   File
>  >
> "/gnu/store/n3gyjzsylh2abc3ykxz9kf5335azgacr-virt-manager-3.2.0/share/virt-manager/virtManager/createvm.py",
>  >   line 2001, in _do_async_install
>  >     installer.start_install(guest, meter=meter)
>  >   File
>  >
> "/gnu/store/n3gyjzsylh2abc3ykxz9kf5335azgacr-virt-manager-3.2.0/share/virt-manager/virtinst/install/installer.py",
>  >   line 701, in start_install
>  >     domain = self._create_guest(
>  >   File
>  >
> "/gnu/store/n3gyjzsylh2abc3ykxz9kf5335azgacr-virt-manager-3.2.0/share/virt-manager/virtinst/install/installer.py",
>  >   line 649, in _create_guest
>  >     domain = self.conn.createXML(install_xml or final_xml, 0)
>  >   File
>  >
> "/gnu/store/anh3nz3qr46f0ds5i1pswisrc9s3cf3f-python-libvirt-8.6.0/lib/python3.9/site-packages/libvirt.py",
>  >   line 4442, in createXML
>  >     raise libvirtError('virDomainCreateXML() failed')
>  > libvirt.libvirtError: Failed to connect socket to
>  > '/var/run/libvirt/virtlogd-sock': No such file or directory
>  > --------------------------------------------------------------------
>  >
>  >
>  > But running the last step:
>  >
>  > Failed to find a suitable default network
>  > -----------------------------------------------
>  >
>  > What are the problems here?
>  > Any suggestions?
>  >
>  > Gottfried
>  >
>  > [2. OpenPGP public key --- application/pgp-keys;
> OpenPGP_0x61FAF349C9FB7F94.asc]...
>  >
>  > [[End of PGP Signed Part]]
> -------------------------------------------------------------------------------
> Hello,
> does ~sudo virsh net-list~ show a network? I remember having some issues
> which I never solved "the guix way", only
> manually.
>
> If virsh doesn't show a network, you can try (locate a
> =default.xml= on your machine):
>
> #+begin_src sh
>
>    sudo virsh net-define
> /gnu/store/47s1cs65izld791m38aa461s02q5ngb7-libvirt-8.6.0/etc/libvirt/qemu/networks/default.xml
>    sudo virsh net-autostart default
>    sudo virsh net-start default
>
> #+end_src
>
>
> Obviously I would prefer a cleaner way, but I haven't looked further
> into this yet. If anyone knows the answer, I would appreciate it.
>
> PS: Just for completeness, the =default.xml= looks like this:
>
> #+begin_src conf
>
>    <network>
>      <name>default</name>
>      <bridge name='virbr0'/>
>      <forward/>
>      <ip address='192.168.122.1' netmask='255.255.255.0'>
>        <dhcp>
>          <range start='192.168.122.2' end='192.168.122.254'/>
>        </dhcp>
>      </ip>
>    </network>
>
> #+end_src
>
> [5. OpenPGP public key --- application/pgp-keys; 
> OpenPGP_0x61FAF349C9FB7F94.asc]...
>
> [[End of PGP Signed Part]]

Hi Gottfried,
is virtlogd running?

I am not sure how it is/was started, but it is running on my system.

#+begin_src sh
ck@beehive ~  $ ps -ef | grep virtlog
root       986     1  0 17:34 ?        00:00:00
/gnu/store/v53l9k5badh84mf6arhhk76f0pa6ly46-libvirt-8.6.0/sbin/virtlogd
- -f /gnu/store/7sd588q79rhdwvq8wypx5n2finsn8gsf-virtlogd.conf
#+end_src

PS: I too am German, so I understand.
PPS: I even use a Tuxedo too! Aura 15 Gen2, pretty happy with it (:
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCAAdFiEEJeJoXz7yKQFBopzYUzV95hT0vZUFAmMx1KcACgkQUzV95hT0
vZWxtQv+OnNpPrHFLCvylZQnnT9GzHCsKSxXLchXuHDZSG6V8XAlvtsV5Z7iddSP
WRUjYIAYohlWf3Yl9Qcd0kqSn2S2NT4j5nmPUDhr17r2eHhEHYcD9WduC6RPs3pN
uZkKpflacHVknN5/utVJBM/MtNv6NDjgsBm+VvkH3A+Q6aEK3fzyMYR4mhMmCPdZ
Ft9azdTmr2yf4Gtp4Gx1u+m67LT0nHNWU6x6e7A+FPhcLie9LmWmJAV6wMU3ouEB
Q/hfPDS6pGhNcM8f/NiPSY7q2G25OK6T7PcLV0ljrSS57nP1JjOur2kNWEoGCT+o
AduLjbx0ZnKwTwS6EqLGDN/TtI7akQMQdiVhNSMIzERMCuAz7go+jdJFf9mORx0p
R2rVsXfo5O+GKVqAde4Q6qm0TgVEH+2FGBa9Eyns/AIPEdN1vzsS8dWw5SKk7tqn
PQDtwPrPEGAnLU3FHABa/gKD8nYEhh2oVsk0GFXudMkmIFOTwC3g4Nj7rLTuoU9+
DOHDFGdc
=quL4
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]