In KVM how to disable console ttyS0 from the virt xml file


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers In KVM how to disable console ttyS0 from the virt xml file
# 1  
Old 03-25-2019
In KVM how to disable console ttyS0 from the virt xml file

I got an issue in a RH6.3 VM host , the issue is ttyS0 is always respawning and piling up /var/log/messages with errors.The customer is OK to have tty0 as the serial terminal but ttyS0 needs to be disabled.

Below is the mention of lines that contain 'serial' string from the xml file . How can I edit them to disable ttyS0 and keep tty0 alive.

Code:
</disk>
    <disk type='block' device='disk' snapshot='no'>
      <driver name='qemu' type='qcow2' cache='none' error_policy='stop' io='native'/>
      <source dev='/rhev/data-center/mnt/blockSD/200409ba-6071-4476-94e2-68eb2cd1f079/images/8fe6780f-17cf-4d89-b993-337bfcef9745/820cabac-917a-4b37-aca6-1bba7f1a2316'/>
      <target dev='vda' bus='virtio'/>
      <serial>8fe6780f-17cf-4d89-b993-337bfcef9745</serial>
      <boot order='1'/>
      <alias name='ua-8fe6780f-17cf-4d89-b993-337bfcef9745'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </disk>

Code:
<controller type='virtio-serial' index='0' ports='16'>
      <alias name='ua-780dcfc7-2be3-4270-9bc3-c53a0ca52863'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </controller>

Code:
<channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/1400553f-8127-44dd-9814-1b49a217472b.ovirt-guest-agent.0'/>
      <target type='virtio' name='ovirt-guest-agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>

Code:
</channel>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/1400553f-8127-44dd-9814-1b49a217472b.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
    </channel>

Code:
<channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='3'/>
     </channel>

Could someone help here or tell me how to update it to add the serial console.




Moderator's Comments:
Mod Comment Please use CODE (not QUOTE) tags as required by forum rules!

Last edited by Paras Pandey; 03-25-2019 at 09:49 AM..
# 2  
Old 03-25-2019
Why not user standard Linux configs to disable ttyS0?

For example, see:

Ubuntu: SerialConsoleHowto
This User Gave Thanks to Neo For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to pull multiple XML tags from the same XML file in Shell.?

I'm searching for the names of a TV show in the XML file I've attached at the end of this post. What I'm trying to do now is pull out/list the data from each of the <SeriesName> tags throughout the document. Currently, I'm only able to get data the first instance of that XML field using the... (9 Replies)
Discussion started by: hungryd
9 Replies

2. UNIX for Beginners Questions & Answers

Grepping multiple XML tag results from XML file.

I want to write a one line script that outputs the result of multiple xml tags from a XML file. For example I have a XML file which has below XML tags in the file: <EMAIL>***</EMAIL> <CUSTOMER_ID>****</CUSTOMER_ID> <BRANDID>***</BRANDID> Now I want to grep the values of all these specified... (1 Reply)
Discussion started by: shubh752
1 Replies

3. UNIX for Advanced & Expert Users

Execution problem with virt-manger in KVM virtulization

Hi, I am trying to setup KVM virtulization under CentOS6.0x32 and installed all the required rpm's as per the installation guidelines. # rpm -qa | grep libvirt libvirt-cim-0.6.1-4.el6.i686 fence-virtd-libvirt-qpid-0.2.1-5.el6.i686 libvirt-qpid-0.2.22-3.el6.i686... (0 Replies)
Discussion started by: boby.kumar
0 Replies

4. Shell Programming and Scripting

Comparing delta values of one xml file in other xml file

Hi All, I have two xml files. One is having below input <NameValuePair> <name>Daemon</name> <value>tcp:7474</value> </NameValuePair> <NameValuePair> <name>Network</name> <value></value> </NameValuePair> ... (2 Replies)
Discussion started by: sharsour
2 Replies

5. Shell Programming and Scripting

Help required in Splitting a xml file into multiple and appending it in another .xml file

HI All, I have to split a xml file into multiple xml files and append it in another .xml file. for example below is a sample xml and using shell script i have to split it into three xml files and append all the three xmls in a .xml file. Can some one help plz. eg: <?xml version="1.0"?>... (4 Replies)
Discussion started by: ganesan kulasek
4 Replies

6. Shell Programming and Scripting

How to add the multiple lines of xml tags before a particular xml tag in a file

Hi All, I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me. <A>testing_Location</A> <value>LA</value> <zone>US</zone> <B>Region</B> <value>Russia</value> <zone>Washington</zone> <C>Country</C>... (0 Replies)
Discussion started by: mjavalkar
0 Replies

7. Hardware

/dev/ttyS0: Device or resource busy

hello to everybody I have Ubuntu Lucid 10.04 installed on my Desktop and I have a PCI serial card in my computer and it has only one serial port. Actually I want to use this serial port for the serial communication and for that I executed this command : $ setserial -g /dev/ttyS and I... (0 Replies)
Discussion started by: piyush011
0 Replies

8. Hardware

kvm issue for console configuration

Hi i am new to unix , i need to do console configuration on aix p520 there is no HMC device, i tried doing connecting through null cable via hyper terminal still no result, team says kvm issue so what is kvm issue.... (2 Replies)
Discussion started by: vkav
2 Replies

9. Linux

Enable and disable ttyS0

I have a modem connect it to ttyS0 , in unix sco i know i can disable and enable the port , how can i do this , is there a command that will allow me to do this. **** I'm running Redhat 9 *****External Usrobotics 56k Thanks a lot guys (1 Reply)
Discussion started by: josramon
1 Replies

10. UNIX for Dummies Questions & Answers

Disable Root Console login

After Configuring a brand new netraT1, It appears, the only way you can log in as root is throught the Serial Port (console). I believe there is a file in /etc which can be edited to allow root to access login via other methods eg: telnet, ssh, etc. My Question: Which file contains... (2 Replies)
Discussion started by: SmartJuniorUnix
2 Replies
Login or Register to Ask a Question