Re: [libvirt] virsh console giving Error

Hi, I am using libvirt 0.9.7 -----Original Message----- From: Kashyap Chamarthy [mailto:kchamart@redhat.com] Sent: Monday, December 12, 2011 12:32 PM To: Amit Tewari Cc: libvir-list@redhat.com Subject: Re: [libvirt] virsh console giving Error On 12/12/2011 12:16 PM, Amit Tewari wrote:
Hi all,
Following is my test environment
Host os= rhel6.1
Guest os=rhel6.1
Hypervisor - kvm
I have a created a guest machine using virt-install command. And it has created guest successfully.
But now when I issue following command
#virsh console guest
Following error is displayed -
"Error: internal error character device (null) is not using a PTY"
Please let me no how can I avoid this error.
You have not specified what distribution, version of libvirt are you using. First, can you ensure if you have serial console set up in your guest by checking if you have the below directives in your guest kernel's command line options (in /etc/grub.conf) ---- console=tty0 console=ttyS0,115200 ---- If not, you can add it by running the below (ensure the guest is shut-off): # virt-edit guest /etc/grub.conf 'virt-edit' tool comes with libguestfs-tools-c package. -- /kashyap
Regards
Amit Tewari
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------

Dňa 12.12.2011 8:05, Amit Tewari wrote / napísal(a):
Hi, I am using libvirt 0.9.7
This is a known regression in 0.9.7. It has been fixed by two commits upstream and is now included in 0.9.8 release. An upgrade should fix your problem. Peter
-----Original Message----- From: Kashyap Chamarthy [mailto:kchamart@redhat.com] Sent: Monday, December 12, 2011 12:32 PM To: Amit Tewari Cc: libvir-list@redhat.com Subject: Re: [libvirt] virsh console giving Error
On 12/12/2011 12:16 PM, Amit Tewari wrote:
Hi all,
Following is my test environment
Host os= rhel6.1
Guest os=rhel6.1
Hypervisor - kvm
I have a created a guest machine using virt-install command. And it has created guest successfully.
But now when I issue following command
#virsh console guest
Following error is displayed -
"Error: internal error character device (null) is not using a PTY"
Please let me no how can I avoid this error.
You have not specified what distribution, version of libvirt are you using.
First, can you ensure if you have serial console set up in your guest by checking if you have the below directives in your guest kernel's command line options (in /etc/grub.conf)
---- console=tty0 console=ttyS0,115200 ----
If not, you can add it by running the below (ensure the guest is shut-off):
# virt-edit guest /etc/grub.conf
'virt-edit' tool comes with libguestfs-tools-c package.

On 12/12/2011 01:25 PM, Peter Krempa wrote:
Dňa 12.12.2011 8:05, Amit Tewari wrote / napísal(a):
Hi, I am using libvirt 0.9.7
This is a known regression in 0.9.7. It has been fixed by two commits upstream and is now included in 0.9.8 release. An upgrade should fix your problem.
Thanks for confirming Peter. I Was using 0.9.6 :) Anyway, I picked the 0.9.8 libvirt SRPMs from ftp and quickly made the below koji scratch builds for Fedora-16. if someone wants to try: http://koji.fedoraproject.org/koji/taskinfo?taskID=3578911 For x86_64 -- http://koji.fedoraproject.org/koji/taskinfo?taskID=3578912 For i686 -- http://koji.fedoraproject.org/koji/taskinfo?taskID=3578913
Peter
-----Original Message----- From: Kashyap Chamarthy [mailto:kchamart@redhat.com] Sent: Monday, December 12, 2011 12:32 PM To: Amit Tewari Cc: libvir-list@redhat.com Subject: Re: [libvirt] virsh console giving Error
On 12/12/2011 12:16 PM, Amit Tewari wrote:
Hi all,
Following is my test environment
Host os= rhel6.1
Guest os=rhel6.1
Hypervisor - kvm
I have a created a guest machine using virt-install command. And it has created guest successfully.
But now when I issue following command
#virsh console guest
Following error is displayed -
"Error: internal error character device (null) is not using a PTY"
Please let me no how can I avoid this error.
You have not specified what distribution, version of libvirt are you using.
First, can you ensure if you have serial console set up in your guest by checking if you have the below directives in your guest kernel's command line options (in /etc/grub.conf)
---- console=tty0 console=ttyS0,115200 ----
If not, you can add it by running the below (ensure the guest is shut-off):
# virt-edit guest /etc/grub.conf
'virt-edit' tool comes with libguestfs-tools-c package.
-- /kashyap

On 12/12/2011 01:03 AM, Kashyap Chamarthy wrote:
On 12/12/2011 01:25 PM, Peter Krempa wrote:
Dňa 12.12.2011 8:05, Amit Tewari wrote / napísal(a):
Hi, I am using libvirt 0.9.7
This is a known regression in 0.9.7. It has been fixed by two commits upstream and is now included in 0.9.8 release. An upgrade should fix your problem.
Thanks for confirming Peter. I Was using 0.9.6 :)
Anyway, I picked the 0.9.8 libvirt SRPMs from ftp and quickly made the below koji scratch builds for Fedora-16. if someone wants to try:
http://koji.fedoraproject.org/koji/taskinfo?taskID=3578911
For x86_64 -- http://koji.fedoraproject.org/koji/taskinfo?taskID=3578912 For i686 -- http://koji.fedoraproject.org/koji/taskinfo?taskID=3578913
Generally, it is easier to use the fedora-virt-preview repo for getting the rawhide build of libvirt backported into F16. But right now, it looks like libvirt-0.9.8 hasn't yet made it into rawhide, and thus isn't yet in fedora-virt-preview either. I also know that there is a new F16 build of 0.9.7 planned in the near future, as there are quite a few bugs that have been backported; but I'm not sure if this particular regression is (yet) included in that list of things to backport. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (4)
-
Amit Tewari
-
Eric Blake
-
Kashyap Chamarthy
-
Peter Krempa