From Fedora Project Wiki
Actions:
1. Add console=ttyS0,115200 to guest kernel line.
2. Add the following XML to a domain. <serial type="file">
<source path="/var/log/vm-serial.log"/> <target port="1"/>
</serial>
3. Start the domain.
4. # cat /var/log/vm-serial.log
Expected Results:
All data sent to the character device is written to the file /var/log/vm-serial.log