<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 5/24/21 3:22 AM, vrms wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a8ecd56c-3d42-7952-2676-623f70c7a646@netcologne.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <br>
      <br>
      <div class="moz-cite-prefix">On 24.05.21 03:12, W wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:f6e0a7a6-679d-da5a-be50-ddc3df2cc2bb@pixelgate.net">well
        libvirt has to know about the serial port and attach it to the
        console. <br>
        <br>
        do you have something like this in your XML file? <br>
        <br>
        <br>
          <font color="#a01414"><serial type='pty'> <br>
                <source path='/dev/pts/0'/> <br>
                <target type='isa-serial' port='0'> <br>
                  <model name='isa-serial'/> <br>
                </target> <br>
                <alias name='serial0'/> <br>
              </serial> </font><br>
            <console type='pty' tty='/dev/pts/0'> <br>
              <source path='/dev/pts/0'/> <br>
              <target type='serial' port='0'/> <br>
              <alias name='serial0'/> <br>
            </console> <br>
      </blockquote>
      <br>
      no, I have:<br>
      <br>
          <serial type='pty'><br>
            <target type='isa-serial' port='0'><br>
              <model name='isa-serial'/><br>
            </target><br>
          </serial><br>
          <console type='pty'><br>
            <target type='serial' port='0'/><br>
          </console><br>
      <br>
      I can edit this with <b>virsh edit [domain]</b> but the get the
      same results as before. <br>
      When I look into the file thereafter, all edits are gone even
      though I got a success message with the editing <br>
      <br>
      <br>
      <br>
    </blockquote>
    <p>well i typically undefine , edit and then define.  Look at the
      docs.<br>
    </p>
    <p>It is likely that you have to stop and start the VM any for your
      system to see the new config. I doubt you can hotplug a serial
      interface.<br>
    </p>
    <p>With that in mind you could simpy dumpxml, stop the VM, edit the
      XML and restart the VM with the edited XML.</p>
    <p>Also as a point of reference, a coworker just mentioned the virsh
      ttyconsole command</p>
    <p>If the console is there it will tell you which one is configured.<br>
    </p>
    <p><br>
      # virsh ttyconsole vm137<br>
      /dev/pts/1<br>
      <br>
      otherwise it just exits(1).</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
      cite="mid:a8ecd56c-3d42-7952-2676-623f70c7a646@netcologne.de"> <br>
      <blockquote type="cite"
        cite="mid:f6e0a7a6-679d-da5a-be50-ddc3df2cc2bb@pixelgate.net"> <br>
        <br>
        <br>
        On 5/23/2021 12:52 AM, vrms wrote: <br>
        <br>
        <blockquote type="cite">hi William <br>
          <br>
          On 22.05.21 23:59, William wrote: <br>
          <blockquote type="cite">I generally use <br>
            <br>
            GRUB_CMDLINE_LINUX_DEFAULT="console=tty0
            console=ttyS0,115200n8" <br>
            and redo grub.cfg (i.e. update-grub, grub2-mkconfig) <br>
          </blockquote>
          thanks for the pointer. <br>
          <br>
          I literally ran in the guests commandline <br>
          <br>
               GRUB_CMDLINE_LINUX_DEFAULT="console=tty0
          console=ttyS0,115200n8" <br>
               sudo update-grub <br>
          <br>
          which did change anything to the behavior on the hosts cli <br>
          <br>
              Connected to domain '[domain]' <br>
              Escape character is ^] (Ctrl + ]) <br>
          <br>
          and then nothing <br>
          <br>
          so ... what is the error I am making? <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <blockquote type="cite">On 5/22/2021 2:49 PM, Ken D'Ambrosio
            wrote: <br>
            <blockquote type="cite">
              <blockquote type="cite">On 22.05.21 18:52, Ken D'Ambrosio
                wrote: <br>
                ... apologies if this isn't quite the right list, I
                tried to get the <br>
                right one. <br>
                But, my problem: I'm firing up a Centos 6.5 box >
                with virt-install, <br>
                [...] and <br>
                it boots fine, etc., etc., but I can't get to the
                console except <br>
                through vnc; <br>
                "virsh console" just shows a blank screen. <br>
                1. I think this is absolutely the right list for your
                issue <br>
              </blockquote>
              Yay. :-) <br>
              <br>
              <blockquote type="cite">2. is it really blank? or
                something like <br>
                <br>
                    Connected to domain '[domain]' <br>
                    Escape character is ^] (Ctrl + ]) <br>
              </blockquote>
              Okay, it *does* say those things -- but that's all it
              says. <CR> gets <br>
              me nowhere, as opposed to the other KVM hosts we have
              running. <br>
              <br>
              <blockquote type="cite">3. If I am not mistaken the guest
                needs to be configured in a <br>
                certain way for <br>
                virsh console [domain] to work. I can't say how though <br>
              </blockquote>
              Hmmm... well, if anyone knows, I'm all ears. <br>
              <br>
              Thanks for the reply! <br>
              <br>
            </blockquote>
          </blockquote>
          <br>
        </blockquote>
        <br>
      </blockquote>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>