KVM Management tools: Webvirtmgr problems encountered in the use of

Source: Internet
Author: User

1. Virtual Machine Console Issues
Click on the virtual machine instance, each virtual machine the last button "console", click to find an error, as shown in


To view the Django background error:
ERROR:django.request:Internal Server Error:/console/
Traceback (most recent):
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 113, in Get_response
Response = callback (Request, *callback_args, **callback_kwargs)
File "/data/apps/webvirtmgr/console/views.py", line +, in console
Response.set_cookie (' token ', token)
Attributeerror: ' str ' object has no attribute ' Set_cookie '
Find its source code, and found that the possible error is because the virtual machine does not have a graphics management tool such as VNC, and then add the following configuration in the virtual machine's XML configuration file:
Virsh Edit oss.webvirtmgr.001

type=‘vnc‘ port=‘5910‘ autoport=‘no‘ listen=‘0.0.0.0‘>      type=‘address‘ address=‘0.0.0.0‘/></graphics>

Restart the virtual machine, if still not, first undefine, and then re-based on the XML configuration create try. To download a vnc-viewer, enter ip:5910 to see if it can be accessed as shown in: Description setting VNC is successful

But from the Web page click the console button, found still no, error is server disconnected

When accessing the Django Daemon, only the following information is available:
[26/apr/2016 05:59:56] "Get/console/?token=4-bcc6ca3b-ca6d-6e51-505a-9c86cf58a6b2 http/1.1" 200 7270

Refer to this article: http://ju.outofmemory.cn/entry/145497
Installed Novnc, still reported the same mistake, Baidu Google also can not find the corresponding information. Yum-y install NOVNC, inadvertently found this command on the server Novnc-server

Then knocked the following command: Novnc_server–vnc ipaddr:5920, where ipaddr is the host IP address, 5920 is the virtual machine's VNC port number defined.

[Email protected] ~]# Novnc_server–vnc 192.168.200.230:5920
Warning:could not find Self.pem
Starting webserver and WebSockets proxy on port 6080
WebSocket Server settings:
-Listen on:6080
-Flash Security Policy Server
-Web server. Web Root:/usr/share/novnc
-No SSL/TLS support (no cert file)
-proxying from:6080 to 192.168.200.230:5920

Navigate to this URL:

http://oss-webvirtmgr-001:6080/vnc.html?host=oss-webvirtmgr-001&port=6080

Press Ctrl-c to exit

1:10.1.196.211:plain Non-ssl (ws://) WebSocket connection
1:10.1.196.211:version hybi-13, base64: ' False '
1:connecting to:192.168.200.230:5920

It turned out to be OK, console consoles up.

The question is: if I have 30 VMS, each VM has a VNC port, do I have to write 30 such commands to monitor every port??

It was later discovered that a script failed to cause this, and all consoles should be properly accessed after the script. The Pyhton script is
Webvirtmgr/console/webvirtmgr-console

The next day found that the above two methods have no effect, the console is not even up, the background is not error, the Web page only shows the server disconnected, helpless ...
https://github.com/retspen/webvirtmgr/issues/215

2. Storage Pool Add mirror
The storage pool I added is a directory type volume, and when added successfully, you can see the following Web page:

Then when the storage pool added the image, the error, the Web page and the Django background display information is: Libvirt:storage Driver error:unsupported flags (0x1) in function storagevolumecre Atexml

Google find the answer: https://github.com/retspen/webvirtmgr/issues/400
Originally in the creation of QCOW2 format image, you can not select metadata, this metadata do not know what to do with. This is true when you add a virtual machine.

In the background, you can see that a disk file has been generated under the directory Vmdisk.
[Email protected] vmdisk]# qemu-img info a.michaelzeng.001.img
Image:a.michaelzeng.001.img
File Format:qcow2
Virtual size:10g (10737418240 bytes)
Disk size:136k
cluster_size:65536

KVM Management tools: Webvirtmgr problems encountered in the use of

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.