Friday, October 25, 2013

SPICE 'Remote Access' - Red Hat Enterprise Virtualization 3.2 (Manager)

After some weeks without any posts, follow a new tip about RHEV-M/SPICE (Red Hat Enterprise Virtualization Manager). Here you will find all that you need to know about SPICE Client including on RHEV-M for "troubleshooting" issues.

Environment : Virtualization DataCenter  - Red Hat Enterprise Virtualization 3.2/Community version "Ovirt".

Hypervisors : 10 x RHEV-H x86_64 (kvm) - (physical servers)
Management :1 x  Red Hat Enterprise Virtualization Management - (virtual server running out of hypervisor cluster)
VMS: More than 50 running RHEL/Win* Servers - (running over hypervisors cluster)

Supportable OS/Browsers Clients

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.2/html-single/Installation_Guide/index.html#Red_Hat_Enterprise_Virtualization_Operating_System_Requirements


- Firewall rules for ports "allowed" (starting  >= 5900)
- Firefox plugin Incompatible
- Windows Guest / "virt-viewer"

http://www.spice-space.org/download.html
https://access.redhat.com/site/solutions/270643
https://access.redhat.com/site/solutions/411443
 
**
Let's an explanation about this tip, if you try to access your 'vm' from the RHEV-M portal to remote control using 'SPICE' and even if you have done all the things mentioned above but still got some errors like "could not connect to graphical interface".
Sometimes we spend a lot of time checking configuration/testing/monitoring and etc. 
So, if you still getting this kind of error register hyperpvisor FQDN in your DNS
Server.


Firefox Plugin check it to access the VM and all of vms always migrate inside 'cluster' because this is important register all of hypervisors FQDN'S.

How Reproduce: "Spice XPI Plugin Firefox"

# ps -ef | grep -i spice
 
root      2107  2042  0 20:13 pts/0    00:00:00 /usr/lib64/firefox/xulrunner/plugin-container /usr/lib64/mozilla/plugins/libnsISpicec.so -greomni /usr/lib64/firefox/xulrunner/omni.ja -appomni /usr/lib64/firefox/browser/omni.ja -appdir /usr/lib64/firefox/browser 2042 true plugin


Try to access "VM" on RHEV-M (Interface) :



# strace -p 2107
 



mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc59b833000
lseek(15, 0, SEEK_CUR)                  = 0
write(15, "Certificate:\n    Data:\n        V"..., 4096) = 4096
write(15, "0OBBYEFGWbkuF2D5i30NodHVm6ca+csl"..., 752) = 752
fsync(15)                               = 0
close(15)                               = 0
munmap(0x7fc59b833000, 4096)            = 0
sendto(14, "CTRL\1\0\0\0\30\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0", 24, 0, NULL, 0) = 24
sendto(14, "\1\0\0\0-\0\0\0guest.example.com"..., 45, 0, NULL, 0) = 45
sendto(14, "\2\0\0\0\f\0\0\0\21\27\0\0", 12, 0, NULL, 0) = 12
sendto(14, "\3\0\0\0\f\0\0\0\22\27\0\0", 12, 0, NULL, 0) = 12
sendto(14, "\23\0\0\0\f\0\0\0\0\0\0\0", 12, 0, NULL, 0) = 12
sendto(14, "\4\0\0\0\25\0\0\0LEEKO53V4oss\0", 21, 0, NULL, 0) = 21
sendto(14, "\7\0\0\0\20\0\0\0DEFAULT\0", 16, 0, NULL, 0) = 16
sendto(14, "\v\0\0\0:\0\0\0jboss-demo:%d - Press SH"..., 58, 0, NULL, 0) = 58
sendto(14, "\17\0\0\0\f\0\0\0\1\0\0\0", 12, 0, NULL, 0) = 12
sendto(14, "\27\0\0\0\f\0\0\0\1\0\0\0", 12, 0, NULL, 0) = 12
sendto(14, "\30\0\0\0\26\0\0\0-1,-1,-1,-1,0\0", 22, 0, NULL, 0) = 22
sendto(14, "\5\0\0\0F\0\0\0main,inputs,cursor,playb"..., 70, 0, NULL, 0) = 70
sendto(14, "\10\0\0\0#\0\0\0/tmp/truststore.pem-XlYv"..., 35, 0, NULL, 0) = 35
sendto(14, "\t\0\0\0008\0\0\0O=EXAMPLE,CN=guest.ex"…, 56, 0, NULL, 0) = 56
sendto(14, "\16\0\0\0=\0\0\0release-cursor=shift+f12"..., 61, 0, NULL, 0) = 61
sendto(14, "\20\0\0\0\10\0\0\0", 8, 0, NULL, 0) = 8
sendto(14, "\21\0\0\0\10\0\0\0", 8, 0, NULL, 0) = 8
write(12, "\0", 1)                      = 1



No comments:

Post a Comment