Last active
          January 23, 2025 14:52 
        
      - 
      
- 
        Save smoser/9daa655e0c809f6d1c93fa1ab0348a5e to your computer and use it in GitHub Desktop. 
Revisions
- 
        smoser revised this gist Jan 23, 2025 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,12 +3,14 @@ I played with virtio-serial today and don't want to lose the information that I Here is an example of booting with multiple ``` -chardev socket,wait=off,id=mychardev0,server=on,path=/tmp/.sock0 -chardev socket,wait=off,id=mychardev1,server=on,path=/tmp/.sock1 -device virtio-serial-pci -device virtserialport,name=smoser0,chardev=mychardev1 -device virtconsole,chardev=mychardev0 -serial unix:$(dir $<)/.socket.ttyS1,wait=off,server=on ``` 
- 
        smoser revised this gist Jan 23, 2025 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,12 +3,12 @@ I played with virtio-serial today and don't want to lose the information that I Here is an example of booting with multiple -chardev socket,wait=off,id=mychardev0,server=on,path=/tmp/.sock0 -chardev socket,wait=off,id=mychardev1,server=on,path=/tmp/.sock1 -device virtio-serial-pci -device virtserialport,name=smoser0,chardev=mychardev1 -device virtconsole,chardev=mychardev0 -serial unix:$(dir $<)/.socket.ttyS1,wait=off,server=on 
- 
        smoser revised this gist Jan 23, 2025 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,12 +3,12 @@ I played with virtio-serial today and don't want to lose the information that I Here is an example of booting with multiple -chardev socket,wait=off,id=mychardev0,server=on,path=/tmp/.sock0 -chardev socket,wait=off,id=mychardev1,server=on,path=/tmp/.sock1 -device virtio-serial-pci -device virtserialport,name=smoser0,chardev=mychardev1 -device virtconsole,chardev=mychardev0 -serial unix:$(dir $<)/.socket.ttyS1,wait=off,server=on 
- 
        smoser created this gist Jan 23, 2025 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ # virtio serial information that I know I played with virtio-serial today and don't want to lose the information that I had. Here is an example of booting with multiple -chardev socket,wait=off,id=mychardev0,server=on,path=/tmp/.sock0 -chardev socket,wait=off,id=mychardev1,server=on,path=/tmp/.sock1 -device virtio-serial-pci -device virtserialport,name=smoser0,chardev=mychardev1 -device virtconsole,chardev=mychardev0 -serial unix:$(dir $<)/.socket.ttyS1,wait=off,server=on Also something I learned was that you can "mux" up to 4 devices on stdio . Normally in `-nographic`, you get 2 (qemu-monitor and serial port). ## links * [fedora wiki virtioSerial](https://fedoraproject.org/wiki/Features/VirtioSerial) *