Hi,
Can Anyone please tell me if there is any option in virt-install by which we can specify
this many consoles
I mean I don’t want to edit xml file and then define it as it is a post installation
process.
I want to enable the multiple console port when I install the guest using virt-install
Regards
Pankaj Rawat
Regards
Pankaj Rawat
-----Original Message-----
From: Daniel P. Berrange [mailto:berrange@redhat.com]
Sent: Monday, May 14, 2012 3:55 PM
To: Pankaj Rawat
Cc: Christophe Fergeau; libvir-list(a)redhat.com
Subject: Re: [libvirt] Libvirt Support Virtio-serail
On Mon, May 14, 2012 at 10:03:11AM +0000, Pankaj Rawat wrote:
Actually I wanted to have private communication channel b/w host and
guest
By default I cannot have multiple console on guest through virsh console guestname
( they all are dependent on each other , if I execute a command on one shell its
output is reflected on all of them ).
I wanted to login into guest from multiple shells(and the console should be independent
of each other)
If you want multiple interactive consoles, you need to configure
multiple <console> devices.
Virtio-serial have this feature ,I have gone through various install
option on web , but they don't seem to work.
virtio-serial is not intended for consoles - it is for application
communication channels.
Our kernel version for host and guest is 2.6.32-220.4.1.el6.x86_64
We goes through the mentioned link
And edit our xml file by adding
<channel type='pty'>
<target type='virtio'
name='arbitrary.virtio.serial.port.name'/>
<address type='virtio-serial' controller='0' bus='0'
port='1'/>
</channel>
Then we tried to access the channel device through virsh console guest_name dev_name
It gives error :-
# virsh console serial vport0p1
Connected to domain serial
Escape character is ^]
error: internal error cannot find character device vport0p1
The 'virsh consolve' command is only intended for use with interactive
consoles for administrators. As such it completely ignores any <channel>
devices which are for non-interactive use. So what you see here is
normal. The vkirtio serial port is definitely available for use by
your application
What you actually want is to configure multiple <consolke> devices
<console type='pty'>
<target type='virtio'/>
</console>
<console type='pty'>
<target type='virtio'/>
</console>
<console type='pty'>
<target type='virtio'/>
</console>
<console type='pty'>
<target type='virtio'/>
</console>
They will be given names console0, console1, etc so with virsh console
# virsh console --device console1 serial
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|
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. .
-----------------------------------------------------------------------------------------------------------------------