LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-25-2019, 07:29 AM   #1
parpande
LQ Newbie
 
Registered: Apr 2018
Posts: 5

Rep: Reputation: Disabled
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>

<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>

<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>

</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>

<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 how to update it to add the serial console

Last edited by parpande; 03-25-2019 at 07:55 AM. Reason: append more content
 
Old 03-30-2019, 12:51 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by parpande View Post
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>

<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>

<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>

</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>

<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 how to update it to add the serial console
tty0 is not a serial terminal, ttyS0 is, what errors are they?
 
  


Reply

Tags
libvirt-guest.sh, linux, qemu, qemu kvm, redhat



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virsh/Virt-Manager/Virt-Install broken after upgrade to Xubuntu 17.10 Zabzoo Linux - Desktop 2 02-01-2018 08:05 AM
[SOLVED] Blank console w/ KVM + virt-manager: QXL + SPICE Freaksta Linux - Virtualization and Cloud 3 01-02-2017 02:53 PM
libvirt: post virt-clone, unchanged values in resulting XML file from original XML file CptSupermrkt Linux - Virtualization and Cloud 1 04-14-2016 08:20 AM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration