Skip to content

Instantly share code, notes, and snippets.

@smoser
Last active January 23, 2025 14:52
Show Gist options
  • Save smoser/9daa655e0c809f6d1c93fa1ab0348a5e to your computer and use it in GitHub Desktop.
Save smoser/9daa655e0c809f6d1c93fa1ab0348a5e to your computer and use it in GitHub Desktop.

Revisions

  1. smoser revised this gist Jan 23, 2025. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original 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
    ```

  2. smoser revised this gist Jan 23, 2025. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions README.md
    Original 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
    -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



  3. smoser revised this gist Jan 23, 2025. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions README.md
    Original 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
    -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



  4. smoser created this gist Jan 23, 2025.
    21 changes: 21 additions & 0 deletions README.md
    Original 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)
    *