English Portuguese (Portugal)
$ cd /tmp
$ scp anaconda.log aklap:/home/akozumpl/
$ ifconfig eth0 up
$ grep "" /tmp/syslog > /dev/tcp/
$ kill -USR2 `cat /var/run/anaconda.pid``
$ nc -l 4444 > syslog.log
Add the virtio-serial port to your virtual machine, direct it to the TCP port 6080 on the host. Start by editing the guest configuration:`virsh edit <machine name>`
After every successful installation, anaconda logs are copied into `/var/log` on the system you just installed. To avoid name clashes with other log files there, the anaconda logs are renamed:
Anaconda Logging
Anaconda logs on the running system
`anaconda.log, storage.log` and `program.log` have the name embedded in them as `programname`.
Anaconda--->rsyslog(guest)--->virtio(guest char device)--->kvm hypervisor--->virtio(TCP socket)
forwarded log files<---rsyslog(host)
Anaconda supports remote logging handled through the rsyslog daemon running on the installed system. It can be configured to forward its logs through TCP to an arbitrary machine in network that is also running a syslog daemon. This is controlled with the `syslog` link:https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#inst-syslog[command line option].
Anaconda tracks all of its activities in logs. This includes:
Anaconda will be forwarding logs over virtio automatically if it is able to find the port `/dev/virtio-ports/org.fedoraproject.anaconda.log.0"`. This is port is created using a libvirt XML directive that wires it to a TCP socket on the host's side. It's then possible to read the logs from there directly, or make an rsyslog instance to parse them and file them into respective files. See the ascii chart below for the whole ensemble:
calls to critical methods within anaconda
calls to external programs
calls to external programs, their output
Certain log messages are also written to the terminals:
changing installation steps (that roughly correspond to different screens in the graphical installer)
--channel tcp,host=,mode=connect,target_type=virtio,name=org.fedoraproject.anaconda.log.0
<channel type='tcp'>
<source mode='connect' host='' service='6080'/>
<target type='virtio' name='org.fedoraproject.anaconda.log.0'/>