LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2022, 11:23 AM   #1
PoleStar
Member
 
Registered: Jul 2010
Posts: 231

Rep: Reputation: 2
virt-viewer over ssh ubuntu 12


Hello,

I have kvm hypervisor running ubuntu 12/virsh. One of the guest server did not come back after reboot.
I reach to kvm hypervisor via
windows-jumpbox-->linuxserver-->kvm hypervisor

Code:
virt-viewer --display=$DISPLAY  <guest-sever>
Cannot open display: localhost:0.0
Run 'virt-viewer --help' to see a full list of available command line options
Any ideas how can I look at the guest server console ?
 
Old 09-13-2022, 04:09 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,337
Blog Entries: 3

Rep: Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732
Quote:
Originally Posted by PoleStar View Post
Any ideas how can I look at the guest server console ?
You'd have to forward the ports all the way through.

Code:
ssh -X -J linuxjumpbox.example.com -J linuxserver.example.com kvmhypervisor 'virt-viewer --display=$DISPLAY  <guest-sever>'
If that doesn't do it, then more information about how you are connecting, and which distro you are connecting from, is needed.

The default for forwarded displays is usually "localhost:10.0".
 
1 members found this post helpful.
Old 09-15-2022, 02:04 PM   #3
PoleStar
Member
 
Registered: Jul 2010
Posts: 231

Original Poster
Rep: Reputation: 2
I tried to simplify the issue.

I installed a new ubuntu-18 (gnome) server and log into kvm-hypervisor from there.
Then tried to run "xeye"

please check the attachment.
Attached Thumbnails
Click image for larger version

Name:	magic-key.jpg
Views:	4
Size:	81.4 KB
ID:	39590  
 
Old 09-15-2022, 02:14 PM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,337
Blog Entries: 3

Rep: Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732Reputation: 3732
(There are several question marks there. Ubuntu 12.04 has been EOL for ages and should be replaced, in most situations.)

What is the content of the $DISPLAY environment variable on the machine you are connecting to?

On the machine you are connecting from, do you have X11 or Wayland? You need the former.
 
1 members found this post helpful.
Old 09-15-2022, 02:58 PM   #5
PoleStar
Member
 
Registered: Jul 2010
Posts: 231

Original Poster
Rep: Reputation: 2
Code:
# head -30  /var/log/dpkg.log.1
2022-09-12 11:25:47 startup archives unpack
2022-09-12 11:25:48 install x11-common <none> 1:7.6+12ubuntu2
2022-09-12 11:25:48 status half-installed x11-common 1:7.6+12ubuntu2
2022-09-12 11:25:48 status triggers-pending man-db 2.6.1-2ubuntu2
2022-09-12 11:25:48 status half-installed x11-common 1:7.6+12ubuntu2
2022-09-12 11:25:48 status triggers-pending ureadahead 0.100.0-12
2022-09-12 11:25:48 status half-installed x11-common 1:7.6+12ubuntu2
2022-09-12 11:25:48 status unpacked x11-common 1:7.6+12ubuntu2
2022-09-12 11:25:48 status unpacked x11-common 1:7.6+12ubuntu2
2022-09-12 11:25:48 install libice6 <none> 2:1.0.7-2build1
2022-09-12 11:25:48 status half-installed libice6 2:1.0.7-2build1
2022-09-12 11:25:48 status unpacked libice6 2:1.0.7-2build1
2022-09-12 11:25:48 status unpacked libice6 2:1.0.7-2build1
2022-09-12 11:25:48 install libsm6 <none> 2:1.2.0-2build1
2022-09-12 11:25:48 status half-installed libsm6 2:1.2.0-2build1
2022-09-12 11:25:48 status unpacked libsm6 2:1.2.0-2build1
2022-09-12 11:25:48 status unpacked libsm6 2:1.2.0-2build1
2022-09-12 11:25:48 install libxt6 <none> 1:1.1.1-2ubuntu0.1
2022-09-12 11:25:48 status half-installed libxt6 1:1.1.1-2ubuntu0.1
2022-09-12 11:25:48 status unpacked libxt6 1:1.1.1-2ubuntu0.1
2022-09-12 11:25:48 status unpacked libxt6 1:1.1.1-2ubuntu0.1
2022-09-12 11:25:48 install libxmu6 <none> 2:1.1.0-3
2022-09-12 11:25:48 status half-installed libxmu6 2:1.1.0-3
2022-09-12 11:25:48 status unpacked libxmu6 2:1.1.0-3
2022-09-12 11:25:48 status unpacked libxmu6 2:1.1.0-3
2022-09-12 11:25:48 install libxpm4 <none> 1:3.5.9-4ubuntu0.1
2022-09-12 11:25:48 status half-installed libxpm4 1:3.5.9-4ubuntu0.1
2022-09-12 11:25:48 status unpacked libxpm4 1:3.5.9-4ubuntu0.1
2022-09-12 11:25:48 status unpacked libxpm4 1:3.5.9-4ubuntu0.1
2022-09-12 11:25:48 install libxaw7 <none> 2:1.0.9-3ubuntu1
I just set export DISPLAY=127.0.0.1:11.0

Code:
# env | grep DIS
DISPLAY=127.0.0.1:11.0
 
Old 09-16-2022, 03:05 PM   #6
PoleStar
Member
 
Registered: Jul 2010
Posts: 231

Original Poster
Rep: Reputation: 2
Problem was resolved but in funny way.

I run xeyes/xclock via putty.. but it open it in desktop console.
When I run xeyes/xclock in desktop.. it also open in desktop console.

I think I need a unique/different "DISPLAT=" for putty.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installing virt-manager and virt-viewer on desktop for managing remote server yvesjv Slackware 4 04-24-2019 03:00 PM
Virsh/Virt-Manager/Virt-Install broken after upgrade to Xubuntu 17.10 Zabzoo Linux - Desktop 2 02-01-2018 08:05 AM
[SOLVED] Best image viewer,djvu viewer pdf viewer cd/dvd writer for debian 7 rubankumars Debian 2 05-15-2013 08:23 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 - Newbie

All times are GMT -5. The time now is 09:27 AM.

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