maybe OT
by Paolo Galtieri
I'm having issues with a VM.
The VM was originally created under VMware and has worked fine for a
while. Today when I booted it up instead of seeing the usual MATE login
screen I get a login prompt:
f34-01-vm:
no matter what I enter, root or pgaltieri as login it never asks for
password and immediately says login incorrect. While it's booting I see
several [FAILED]... messages, e.g. [FAILED] to start CUPS Scheduler
I booted the system again and this time it dropped into emergency mode.
In emergency mode I see the following messages in dmesg:
BTRFS info (device sda2): flagging fs with big metadata feature
BTRFS info (device sda2): disk space caching is enabled
BTRFS info (device sda2): has skinny extents
BTRFS info (device sda2): start tree-log replay
BTRFS info (device sda2): parent transid verify failed on 61849600
wanted 145639 fount 145637
BTRFS info (device sda2): parent transid verify failed on 61849600
wanted 145639 fount 145637
BTRFS: error (device sda2) in btrfs_replay_log:2423 errno=-5 IO failure
(Failed to recover log tree)
BTRFS error (device sda2) open_ctree failed
I ran btrfs check in emergency mode and it came up with a lot of errors.
How do i recover the partition(s) so I can boot the system, or at least
mount them?
Also in emergency mode:
vi /run/initramfs/rdsosreport.txt
results in:
/usr/bin/vi: line 23: /usr/libexec/vi: No such file or directory
/usr/bin/vi is a script:
if test -f /usr/bin/vim
then
exec /usr/bin/vim "$@"
fi
exec /usr/libexec/vi "$@"
neither /usr/bin/vim nor /usr/libexec/vi exist.
======================================================================================
I tried booting the vm under VirtualBox with the same result.
I converted the image:
qemu-img convert -O qcow ../VMware/VMs/f34-01-vm/f34-01-vm.vmdk
f34-01-vm.qcow2
which worked without errors. I then ran virt-manager to try to boot the
image. This fails with this error
Unable to complete install: 'internal error: process exited while
connecting to monitor: 2022-03-18T19:13:15.196710Z qemu-system-x86_64:
-blockdev
{"driver":"file","filename":"/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}:
Could not open
'/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2':
Permission denied'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2001, in
_do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line
701, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line
649, in _create_guest
domain = self.conn.createXML(install_xml or final_xml, 0)
File "/usr/lib64/python3.9/site-packages/libvirt.py", line 4366, in
createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: process exited while connecting to
monitor: 2022-03-18T19:13:15.196710Z qemu-system-x86_64: -blockdev
{"driver":"file","filename":"/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}:
Could not open
'/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2':
Permission denied
I added my user id to both the qemu and libvirt entries in /etc/group
and logged out and logged back in and I get the same error. I also get
SELinux alerts:
The first alert:
You need to change the label on f34-01-vm.qcow2'
# semanage fcontext -a -t virt_image_t
'/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2'
# restorecon -v
'/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2'
subsequent alerts tell me to run:
# /sbin/restorecon -v
/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2
I have run these commands, especially the restorecon, several times and
I still get the alerts.
One thing the semanage command as shown fails with:
ValueError: File spec
/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2
conflicts with equivalency rule '/run /var/run'; Try adding
'/var/run/media/pgaltieri/SDNVIRTLAB02/VirtualMachines/KVM/f34-01-vm.qcow2'
instead
If I add the /var then it works.
here is the context of the file:
-rwxrwxrwx. 1 pgaltieri pgaltieri system_u:object_r:fusefs_t:s0
15041695744 Mar 18 11:46 f34-01-vm.qcow2*
So how the heck do I boot the image and get it running?
Paolo
2 years
Fedora 35 swapon: /swapfile: swapon failed: Invalid argument
by bradbell@seanet.com
I am trying to create a swapfile on my fedora 35 system and do not know what I am doing wrong:
trash>uname -a
Linux fedora 5.16.15-201.fc35.x86_64 #1 SMP PREEMPT Thu Mar 17 05:45:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
If I follow the swapfile instructions on
https://docs.fedoraproject.org/en-US/Fedora/14/html/Storage_Administratio...
I get the following result:
step 1:
trash>sudo dd if=/dev/zero of=/swapfile bs=1024 count=65536
65536+0 records in
65536+0 records out
67108864 bytes (67 MB, 64 MiB) copied, 0.147119 s, 456 MB/s
step 2:
trash>sudo mkswap /swapfile
mkswap: /swapfile: insecure permissions 0644, fix with: chmod 0600 /swapfile
Setting up swapspace version 1, size = 64 MiB (67104768 bytes)
no label, UUID=f1402a6a-c64c-4f84-9d47-4f8822d2f1d2
step 3:
sudo chmod 0600 /swapfile
step 4:
trash>sudo swapon /swapfile
swapon: /swapfile: swapon failed: Invalid argument
2 years
rtkt-daemon spamming on log file
by Javier Perez
Hi
Checking up my logfile with journalctl -f I noticed a flood of
"rtkit-daemon[1034]: Supervising 16 threads of 13 processes of 1 users."
Why is that happening?
Don't know when it started but it is kind of annoying when I try to keep
track of events on my desktop
Is there any better way to stop it? I've been googling about it but all
"solutions" just make a change on the rtkit-daemon priority level,
JP
--
------------------------------
/\_/\
|O O| pepebuho(a)gmail.com
~~~~ Javier Perez
~~~~ While the night runs
~~~~ toward the day...
m m Pepebuho watches
from his high perch.
2 years
Re: pipewire and wireplumber
by R. G. Newbury
DJ Delorie<dj(a)delorie.com> wrote
> "R. G. Newbury"<newbury(a)mandamus.org> writes:
>> If you don't mind answering, was it a Rhode Island Red cockerel or a hen
>> which you sacrificed to learn these arcane secrets? And, full-moon at
>> midnight, or dark of the moon? Or did this take moving up to a goat?
> It took a LOT of googling to find the one person who mentioned it
> elsewhere in the space-time continuum.
And did that version have an exception for when the sacrifice is to be
undertaken if being undertaken *in California*?
In that case it would have been me. (Long ago in a galaxy far far
away....) iirc it involved the entrails of an OS/2 installation.
Geoff
2 years
Setting netmask permanently
by Geoffrey Leach
Device vendor insists on a netmask 255.255.0.0, so
% ifconfig eno1 169.254.10.6 netmask 255.255.0.0
which changes netmask, but it soon reverts to the original
value 255.255.255.255
ifdown/ifup does not change the situation
Any ideas?
2 years
Re: pipewire and wireplumber
by R. G. Newbury
> Date: Fri, 25 Mar 2022 01:02:01 -0700
Samuel Sieb<samuel(a)sieb.net> wrote
> Subject: Re: pipewire and wireplumber
> R. G. Newbury wrote:
>> DJ Delorie<dj(a)delorie.com> wrote
>>> Geoffrey Leach<geoffleach.gl(a)gmail.com> writes:
>>>> Is there a 'Getting Started With pipewire' and/or wireplumber
>>>> somewhere? Or should they 'just work' and I need to check my
>>>> connections?
>>> As a non-gnome (and non-display-manager) user, I share these .xsession
>>> snippets:
>>>
>>> # Required by pipewire, at least
>>> export XDG_RUNTIME_DIR=$(mktemp -d/tmp/$(id -u)-runtime-dir.XXX)
>>>
>>> # Required by most things
>>> eval `dbus-launch --sh-syntax --exit-with-session`
>>>
>>> pipewire &
>>> pipewire-pulse &
>>> (sleep 2 ; wireplumber & ) &
>>>
>>>
>>> There wasn't a pipewire-specific config; it uses the same ALSA backend
>>> as pulseaudio used.
>> If you don't mind answering, was it a Rhode Island Red cockerel or a hen
>> which you sacrificed to learn these arcane secrets? And, full-moon at
>> midnight, or dark of the moon? Or did this take moving up to a goat?
>> Or are you a graduate of Hogwarts? Because I am quite sure that none of
>> these snippets show up anywhere in the so-called documentation. Pure
>> magic, just like any sufficiently advanced technology.
> That's because they aren't necessary. For any standard desktop all
> those pieces are already setup for you. Notice how he said
> "non-display-manager user". Those are only necessary if you don't have
> a graphical login session.
Non-display-manager user or not, those might be necessary even if you
have a graphical login session. I installed the KDE spin of Fedora 35 on
Monday. A bare metal install: I partitioned the sda drive and formatted
it during the install.
I had NO audio. And nothing I did allowed the system to even *find* any
audio hardware. I played a fugue's worth of combinations and read
everything I could find.
Unfortunately, as noted in this thread, there is no install guide. It
just works - NOT. I saw an error message about XDG_RUNTIME_DIR and spent
most of an evening down that rabbit-hole, but nothing worked. Pipewire
would not even find a module which its own rpm had installed. In the
end, I basically inverted the lines of the install process script I was
playing with, and re-installed pulseaudio.
Audio works fine now. My opinion of pipewire is, that like pulseaudio
and systemd were, it has been released far too early in its beta stages.
It took a couple of years for each of pulseaudio and systemd to reach
adequate levels of instalability and reliability. Likely the same for
pipewire.
Geoff
2 years
yubikey?
by Neal Becker
I'm curious about getting a yubikey to use for 2fa, and wondering if it
will just work on Fedora 35+. I've seen an article on setting up yubikey
for auth on fedora, but I'm not interested in using it to authenticate for
login on my laptop. I'm interested in having it work for 2fa on chrome and
firefox running on the laptop. In this case, is any setup required, or
just plugin and it works?
Thanks,
Neal
2 years
Re: Help configuring internal network
by R. G. Newbury
On 2022-03-20 8:00 a.m., Tim <ignored_mailbox(a)yahoo.com.au>>R. G.
Newbury wrote:
>> edit your /etc/hosts file to give the hdhomerun unit a fixed IP
>> address.
> When has the /etc/hosts file ever given anything an IP address?
You are correct, and I am completely wrong. A static address for the
computer would be set by editing
/etc/sysconfig/network-scripts/ifcfg-eno1 (or whatever) or using the
network config gui to do the same thing.
But everything else needs to be given an address by the router acting as
a dhcp server or by a separate dhcp server (which can deliver a static
address by using the MAC address of the unit to give the desired address).
Been so long since I have had to do that, I forgot which was the cart
and which the mule.
Geoff
2 years
Re: pipewire and wireplumber
by R. G. Newbury
DJ Delorie <dj(a)delorie.com> wrote
> Geoffrey Leach <geoffleach.gl(a)gmail.com> writes:
>> Is there a 'Getting Started With pipewire' and/or wireplumber
>> somewhere? Or should they 'just work' and I need to check my
>> connections?
>
> As a non-gnome (and non-display-manager) user, I share these .xsession
> snippets:
>
> # Required by pipewire, at least
> export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
>
> # Required by most things
> eval `dbus-launch --sh-syntax --exit-with-session`
>
> pipewire &
> pipewire-pulse &
> (sleep 2 ; wireplumber & ) &
>
>
> There wasn't a pipewire-specific config; it uses the same ALSA backend
> as pulseaudio used.
If you don't mind answering, was it a Rhode Island Red cockerel or a hen
which you sacrificed to learn these arcane secrets? And, full-moon at
midnight, or dark of the moon? Or did this take moving up to a goat?
Or are you a graduate of Hogwarts? Because I am quite sure that none of
these snippets show up anywhere in the so-called documentation. Pure
magic, just like any sufficiently advanced technology.
Geoff
2 years
pipewire and wireplumber
by Geoffrey Leach
I've just installed Fedora 35 and have discovered to my dismay that
previously-working (not at all sophisticated) audio no longer works.
Is there a 'Getting Started With pipewire' and/or wireplumber somewhere? Or
should they 'just work' and I need to check my connections?
Thanks.
2 years