Giter VIP home page Giter VIP logo

qt-virt-manager's Introduction

qt-virt-manager

Main widget

A GUI application for managing virtual machines.

Known issues:

1. If failures occur in connections that are using ssh,
   you must ensure that in the system installed ssh
   and an application like ssh-askpass for your DE,
   also the environment variable SSH_ASKPASS was set.
   For example: SSH_ASKPASS=/usr/bin/ksshaskpass
   You can do it in $HOME/.bash_profile file at least.

2. Adding devices implemented partially.

3. In Spice client viewer:

    * the Smartcard manager is not implemented yet.

Building parameters:

BUILD_QT_VERSION
    if not defined or equal 5, then will build with Qt5,
    if equal 4, then with Qt4 (last supported version 0.42.67)

WITH_LIBCACARD
    if defined and above zero, then libcacard.h required
    and will used SpiceSmartcard Channel for smartcards

USE_SPICE_AUDIO
    if not defined or above zero, then will used
    Spice[Playback/Record] Channels for audio

WITH_SPICE_SUPPORT
    if not defined or above zero, then will build with SPICE

WITH_VNC_SUPPORT
    if not defined or above zero, then will build with VNC

WITH_LXC_SUPPORT
    if not defined or above zero, then will build with LXC

Build requires:

* with Qt4              (optional, BUILD_QT_VERSION=4)
libQtCore.so
libQtGui.so
libQtMultimedia.so
libQtSvg.so
libQtXml.so
libQtNetwork.so
libqtermwidget4.so

* with Qt5              (default, BUILD_QT_VERSION=5)
libQt5Core.so
libQt5Gui.so
libQt5Multimedia.so
libQt5Svg.so
libQt5Widgets.so
libQt5Xml.so
libQt5Network.so
libqtermwidget5.so

libcacard.so            (optional, WITH_LIBCACARD)

libgio-2.0.so
libglib-2.0.so
libgmodule-2.0.so
libgobject-2.0.so
libgthread-2.0.so
libspice-client-glib-2.0.so
libvncclient.so
libvirt.so

libkrdccore.so          (optional, if building occures on Linux)

Experimental HomeBrew for OS X

qt-virt-manager's People

Contributors

f1ash avatar g3ngr33n avatar gitter-badger avatar ignatenkobrain avatar lemenkov avatar mcirsta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qt-virt-manager's Issues

падает сборка

Приветствую. Падает сборка с такой ошибкой:
[ 96%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/lxc/moc_lxc_viewer_thread.cpp.o
make[2]: *** No rule to make target '-llibvirt', needed by 'qt5-virt-manager'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 96%] Building CXX object CMakeFiles/qt5-virt-manager.dir/qrc_qt_virt_manager.cpp.o
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/qt5-virt-manager.dir/all] Error 2
make: *** [Makefile:128: all] Error 2
error: Неверный код возврата из /var/tmp/rpm-tmp.73881 (%build)

версия 0.70.91
ROSA Linux R10

Qt-Virt-Viewer shows only a transparent background (Wayland)

If I open a VM (connected to host via SSH) with Qt-Virt-Manager on Plasma Wayland, the Qt-Virt-Viewer shows only a transparent background of the virtual machine in terminal mode and the text is white. If I start in the VM a graphical shell, then the screen is at least readable, but somehow it is transparent as well.

Qt-Virt-Manager 0.70.91 compiled from git with AUR on Arch Linux
KDE Plasma 5.13.4
KDE Frameworks 5.48
Qt 5.11.1
Wayland 1.14
libvirt 4.5.0

Symlinking ksshaskpass is a bad idea..

Hello ,

to make ksshaskpass work from KDE{4,5} , even with wallet , one has just to set :

SSH_ASKPASS=/usr/bin/ksshaskpass

( from /etc/profile.d/* , $HOME/.bash* etc )

In your README you talk about synlinking but there is no need to do that and there is already an ssh-askpass progam. That way you can use both..

If you still want to suggest symlinking it has to be :

sudo ln -s /usr/bin/ksshaskpass $libexec/ssh-askpass

( and while distros set $libexec different one has to find out )

Best Regards

build fail

-- Found GObject includes : /usr/include/glib-2.0/gobject
CMake Error at /usr/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find Spice1 (missing: Spice1_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
cmake/FindSpice1.cmake:26 (find_package_handle_standard_args)
CMakeLists.txt:640 (find_package)

homebrew

It's mentioned that there is experimental homebrew support on macOS. I think the README should explain how to get that working. I searched the repo and found in .travis.yml brew tap F1ash/homebrew-qt-virt-manager.

[strm][15:13:31] brew tap F1ash/homebrew-qt-virt-manager
==> Tapping f1ash/qt-virt-manager
Cloning into '/usr/local/Homebrew/Library/Taps/f1ash/homebrew-qt-virt-manager'...
remote: Enumerating objects: 270, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 270 (delta 0), reused 0 (delta 0), pack-reused 269
Receiving objects: 100% (270/270), 33.50 KiB | 1.15 MiB/s, done.
Resolving deltas: 100% (160/160), done.
Tapped 7 formulae (19 files, 55.3KB).

[strm][15:17:14] brew search qt-virt
==> Formulae
f1ash/qt-virt-manager/libvirt-glib ✔                  f1ash/qt-virt-manager/qtermwidget                     f1ash/qt-virt-manager/usbredir ✔
f1ash/qt-virt-manager/libvnc                          f1ash/qt-virt-manager/spice-client-glib2
f1ash/qt-virt-manager/qt-virt-manager                 f1ash/qt-virt-manager/spice-protocol ✔

[strm][15:17:28] brew install qt-virt-manager
Error: qt-virt-manager: Unsupported special dependency :x11

Yeah I hope it doesn't really depend on X11, but I have XQuartz FWIW.

build without libcacard

Given the recent split of libcacard from qemu I've decided not to have it on my system since I don't really need it ( I guess few people really do ? ).
Spice knows how to build without libcacard ( which is how I buit it ) but qt-virt-manager requires libcacard.
I've managed to make several modification to build without libcacard ( make it optional ) but I'm not sure these are how you want to do it as they're mostly just ifdefs in the code. I can clean it up a bit and send a pull request if you want though.

src/virt_objects/virt_connect/conn_alive_thread.cpp: 2 * memset problems ?

src/virt_objects/virt_connect/conn_alive_thread.cpp:193:65: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]

Source is

memset(&obj->authData.username[0], 0, sizeof(obj->authData.username));

src/virt_objects/virt_connect/conn_alive_thread.cpp:205:65: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]

  memset(&obj->authData.password[0], 0, sizeof(obj->authData.password));

Overview connection not at all obvious

OK so you might attribute this to user error or me not knowing how to use the program but here's what I did:

  1. Open qt-virt-manager without starting the libvirtd service ( now info about the libvirt service not started , would have been helpful )
  2. Start libvirtd service and restart qt-virt-manager
  3. Create a connection to qemu and open it
  4. Try to "Create virtual domain manually" here the naming is a bit confusing, I wanted to create a VM instance in this case ( for qemu ). Note that at this step the button for this was active, the app started with this button active and never disabled it
  5. Have a failure that was barely explained and only in the logs:

✻ 23:50:25 Connection '':
EVENT: Read Data in _ failed.

✻ 23:50:25 Connection '':
EVENT: '' domain editor closed.

Yes, this is exactly what I thought :)

Not satisfied with this I fired up QtCreator and began debugging. About 2 hours later I finally got it, there was this ptr_ConnPtr for the connection instance that was only set when "Overview Connection" was chosen. Again "Overview Connection" is not a name that suggested much to me, set connection to active or something would have been much more helpful.

Also if I just have one connection and I open that one I probably want that one to be the active one so "Overview Connection" could have been chosen automatically.

A message saying please choose an active connection would have also helped ... instead of some EVENT: Read Data in _ failed in the logs.

Please understand that this is from a first time user of the software who had no idea how it works and take this as constructive feedback.

Thanks for the software, it's really useful.

[information] spice-gtk

Hello,

I would like to known if it possible to build qt-virt-manager without spice-gtk but with spice protocol support.

Is spice-gtk in anyway, required for qt-virt-manager ? It is possible to add it as soft dependencies ?

Thanks,

Can't build

mkdir build
cd build
cmake ..

-- Build on system: Linux
-- Build with QT version: 5
-- QT4 build: 0
-- QT5 build: 1
-- 
-- LIB_SUFFIX variable is not defined. It will be autodetected now.
-- You can set it manually with -DLIB_SUFFIX=<value> (64 for example)
--    LIB_SUFFIX is set to '64'
-- 
-- Checking for module 'qtermwidget5'
--   Package 'libutf8proc', required by 'qtermwidget5', not found
CMake Error at /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:418 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:585 (_pkg_check_modules_internal)
  CMakeLists.txt:1098 (pkg_check_modules)

ii libutf8proc-dev:amd64 2.1.0-1 amd64 C library for processing UTF-8 Unicode data (development files)

VM viewer toolbar changes window size when attached to window

Steps to reproduce:
When you open a VM viewer, move the mouse to the top, toolbar shows up, you grab it by the left handle (click) and drag it to top, left or right of the window, it allows to be attached to the window. After you attach it, VM viewer window starts resizing/shrinking, and in the end toolbar detaches in most situations (all?).

I'm not sure if this also causes toolbar not to follow the window anymore. (related, or different bug)

Currently I'm running this on gentoo unstable (~amd64), qtcore-5.9.4 and plasma desktop.

Quick edit: I'm running git snapshot from today.

Random crashers in Fedora

Crash happens after some time of inactivity and closes all virt-manager windows as well. Unfortunately, abrt is b0rken as well and fails to generate any backtrace.

Still interested into Fedora packaging? I see active commits but the Fedora packages is obviously outdated.

Improve support for keyboards, especially for keypad/numlock and different layouts like with umlauts

Working on a new implementation for converting QKey to SPICE. SPICE needs valid scan codes from code table of PC AT key codes set number 1.

[Samstag, 7. April 2018] [08:59:49 CEST] <RaphGro>	maybe I can explain the issue with scancodes
[Samstag, 7. April 2018] [08:59:52 CEST] Betreten	kalev-afk ([email protected]) hat diesen Kanal betreten.
[Samstag, 7. April 2018] [09:00:31 CEST] <flash__>	good
[Samstag, 7. April 2018] [09:00:50 CEST] <RaphGro>	but I tried to refactor the sources, not easy
[Samstag, 7. April 2018] [09:01:59 CEST] <RaphGro>	well, the scancode for numlock is wrong
[Samstag, 7. April 2018] [09:02:05 CEST] <flash__>	maybe say the idea ?
[Samstag, 7. April 2018] [09:02:15 CEST] <RaphGro>	still no idea about umlauts
[Samstag, 7. April 2018] [09:02:44 CEST] <RaphGro>	have to send scancodes as 4 bytes array = uint32
[Samstag, 7. April 2018] [09:02:50 CEST] <RaphGro>	just shift the bytes to the left
[Samstag, 7. April 2018] [09:02:56 CEST] <RaphGro>	I have ready code
[Samstag, 7. April 2018] [09:04:00 CEST] <RaphGro>	but it will break keypad (keypad/numlock is b0rken anyways) and will break alt+gr as well and key sequence
[Samstag, 7. April 2018] [09:04:29 CEST] <RaphGro>	writing keyboard driver is not easy :(
[Samstag, 7. April 2018] [09:06:37 CEST] <flash__>	you shure that it will works on any keyboard?  and why need shift bytes order? if exist some rule?
[Samstag, 7. April 2018] [09:06:51 CEST] <flash__>	or exist*
[Samstag, 7. April 2018] [09:08:36 CEST] <RaphGro>	maybe an improvement. but be aware what I wrote above.
[Samstag, 7. April 2018] [09:09:12 CEST] <RaphGro>	    // http://doc.qt.io/qt-5/qt.html#Key-enum
[Samstag, 7. April 2018] [09:09:12 CEST] <RaphGro>	    // https://github.com/qemu/keycodemapdb/blob/master/data/keymaps.csv
[Samstag, 7. April 2018] [09:09:12 CEST] <RaphGro>	    // https://github.com/CendioOssman/keycodemapdb/blob/master/data/keymaps.csv
[Samstag, 7. April 2018] [09:09:25 CEST] <flash__>	on #virt  challel i have answer that virt-viewer uses the https://gitlab.com/keycodemap/keycodemapdb/blob/master/data/keymaps.csv for works with different systems and keyboards... buy how to -- not clear..
[Samstag, 7. April 2018] [09:09:54 CEST] <RaphGro>	PC AT scan codes 1
[Samstag, 7. April 2018] [09:10:04 CEST] <RaphGro>	the numlock implementation is wrong
[Samstag, 7. April 2018] [09:10:14 CEST] <RaphGro>	Qt seems to handle keypad specially
[Samstag, 7. April 2018] [09:11:43 CEST] <RaphGro>	ADD_SCAN4 should maybe use the old code as in git
[Samstag, 7. April 2018] [09:11:51 CEST] Betreten	kallesbar ([email protected]) hat diesen Kanal betreten.
[Samstag, 7. April 2018] [09:12:06 CEST] <RaphGro>	ADD_SCAN4 is used for key sequence
[Samstag, 7. April 2018] [09:13:36 CEST] <RaphGro>	well, I did not try QKeyEvent getScanCode()
[Samstag, 7. April 2018] [09:13:55 CEST] <RaphGro>	documentation says it is not guaranteed to give a number
[Samstag, 7. April 2018] [09:14:29 CEST] <RaphGro>	how to test if it works on any keyboard?
[Samstag, 7. April 2018] [09:15:09 CEST] <flash__>	i'm use that table for set 1: http://philipstorr.id.au/pcbook/book3/scancode.htm
[Samstag, 7. April 2018] [09:15:36 CEST] <RaphGro>	https://stackoverflow.com/questions/17204142/capturing-modifier-keys-qt
[Samstag, 7. April 2018] [09:15:47 CEST] <RaphGro>	you can use mouse button with modifier keys …
[Samstag, 7. April 2018] [09:16:01 CEST] <RaphGro>	but interesting for gamer user
[Samstag, 7. April 2018] [09:16:19 CEST] <RaphGro>	… all in all, keyboard driver is not easy stuff :(
[Samstag, 7. April 2018] [09:17:50 CEST] <RaphGro>	https://stackoverflow.com/questions/24822505/how-to-tell-if-shift-is-pressed-on-numpad-input-with-numlock-on-or-at-least-get
[Samstag, 7. April 2018] [09:19:35 CEST] <RaphGro>	did you check the sources of spice-gtk or gtk viewer?
[Samstag, 7. April 2018] [09:21:11 CEST] <RaphGro>	https://github.com/UPC/ravada/issues/448#issuecomment-379319506
[Samstag, 7. April 2018] [09:21:12 CEST] <flash__>	not for using keyboard...
[Samstag, 7. April 2018] [09:21:25 CEST] <RaphGro>	you should check

install files in wrong path

when:

mkdir -p build
cd build
cmake ../qt-virt-manager \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release \
  -DBUILD_QT_VERSION=5
make
make install DESTDIR="${pkgdir}"

*note: ${pkgdir} is a "fakeroot" directory

then

-- Install configuration: "Release"
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/applications/qt5-virt-manager.desktop
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/usr/bin/qt5-virt-manager
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/network
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/network/private.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/network/local.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/network/host-bridge.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/network/default6.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/network/default.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/xen_paravirt_guest_direct-kernel_boot.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/xen_paravirt_guest_bootloader.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/xen_fullvirt_guest_derect-kernel_boot.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/xen_fullvirt_guest_BIOS_boot.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/qemu_guest_x86_64.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/lxc_example2.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/lxc_example1.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/qt5-virt-manager/misc/domain/kvm_guest_i686.xml
-- Installing: /tmp/makepkg/virt-manager-qt5-git/pkg/virt-manager-qt5-git/icons/hicolor/256x256/apps/virtual-engineering.png

only the executable is installed in the PREFIX, the rest of files is installed in a root of DESTDIR directory

greetings

Missing any build instructions

I understand that you might not want folks that do not know how to build Qt apps messing around with your GitHub repo but a paragraph in the readme could save some folks (like me) a lot of time googling.

License violation in qterminal/qtermwidget

Hi, completly stripping license headers and removing any authors informations is not cool - so please change that back. This is also true if one only use parts of the original code!

/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/type_traits: error: template with C linkage

Gentoo, Qt-5.15.3, GCC-11.1

In file included from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:26:1: note: ‘extern "C"’ linkage started here
   26 | extern "C" {
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/spice-client-glib-2.0/spice-client.h:21,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:27,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/type_traits:2895:3: error: template with C linkage
 2895 |   template<typename _Fn, typename... _Args>
      |   ^~~~~~~~
In file included from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:26:1: note: ‘extern "C"’ linkage started here
   26 | extern "C" {
      | ^~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
                 from /usr/include/glib-2.0/glib/gthread.h:32,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/spice-client-glib-2.0/spice-client.h:21,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:27,
                 from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
[build.log](https://github.com/F1ash/qt-virt-manager/files/6499086/build.log)

 2900 |   template<typename _Fn, typename... _Args>
      |   ^~~~~~~~
In file included from /tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-smartcard-channel.cpp:2:
/tmp/portage/app-emulation/qt-virt-manager-0.72.97/work/qt-virt-manager-0.72.97/src/vm_viewer/qspice_widgets/qspice-helper.h:26:1: note: ‘extern "C"’ linkage started here
   26 | extern "C" {
      | ^~~~~~~~~~
ninja: subcommands failed

No VMs in the Domain list

✻ 23:22:39 Connection 'QEMU_system':
EVENT: New Domain XML'ed to /tmp/XML_Desc-EZIbWv.xml


✻ 23:22:39 Connection 'QEMU_system':
EVENT: '' domain editor closed.


✻ 23:22:39 Connection 'QEMU_system':
ACTION: 'Gentoo-Clang' Domain from "/tmp/XML_Desc-EZIbWv.xml" is defined.



✻ 23:22:39 Connection 'QEMU_system':
EVENT: 'Gentoo-Clang' Domain Defined: Changed config file 

But there is no any VM in the list at all.

Consider merging the project to KDE KRDC

@F1ash please consider merging the project with KDE KRDC https://apps.kde.org/it/krdc/
You've implemented many features it really lacks, such as the ability to manage and create virtual machines etc.
The community would really benefit from this.

See my branch https://github.com/paaspaas00/qt-virt-manager, I've tried to make it more KDE-friendly. (made some mistake including files, I've not really modified 300k LoCs)
For editing XMLs you could be using one of KDE frameworks fro syntax highlighting, or importing something like a fully blown text editor from KDE as a KPart.

And yes, I love your program!

Spice qemu connection with socket

Hello,

I would like to known if you can add the possibility to connect with qt5-remote-viewer trough socket ?

It work fine using spice://ip:port but doesn't work spice:///spice.sock (or spice+unix:///spice.sock), look like the port is mandatory

qml addition

since qml is out why dont u use qml it adds a extra look to ui

Howto do vbox:// access to a remote system.

I only get reset connections on remote connections.
So something is wrong, Q is what.
(tried things like: vbox://thehost.local/ & vbox+ssh://thehost.local/
both with & without username).

Sofar only vbox:/// seems to work. (on a workstation).
So how to manage a headless server running VirtualBox?

krdc/remoteview.h neither found nor available

Hi!

I'm trying to build 0.72.99 on Ubuntu 22.04 LTS and made it to the following error:

[ 31%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/main.cpp.o
In file included from /home/user/qt-virt-manager-0.72.99/src/vm_viewer/krdc_vnc_qtonly/vncview.h:27,
                 from /home/user/qt-virt-manager-0.72.99/src/vm_viewer/krdc_vnc_qtonly/Machine_View.h:28,
                 from /home/user/qt-virt-manager-0.72.99/src/vm_viewer/vnc/vnc_viewer.h:6,
                 from /home/user/qt-virt-manager-0.72.99/src/mainwindow.h:29,
                 from /home/user/qt-virt-manager-0.72.99/src/main.cpp:1:
/home/user/qt-virt-manager-0.72.99/src/vm_viewer/krdc_vnc_qtonly/vncclientthread.h:38:14: fatal error: krdc/remoteview.h: No such file or directory
   38 |     #include <krdc/remoteview.h>
      |              ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/qt5-virt-manager.dir/build.make:2438: CMakeFiles/qt5-virt-manager.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/qt5-virt-manager.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

This is however the end, because I can't find a package for Ubuntu that would install the required krdc/remoteview.h header file. Do you have any help or hints how to go further?

Build Error Involving qtermwidget.h

I am trying to build the project and I get the following error:
qt-virt-manager/src/vm_viewer/qterminal/termwidget.h:4:10: fatal error: qtermwidget.h: No such file or directory
#include <qtermwidget.h>
^~~~~~~~~~~~~~~
compilation terminated.

If this issue is related to how I am building it, please let me know. I do have qtermwidget installed and the .h file is in /usr/include/qtermwidget5/

Segmentation fault on kde plasma 6

I got the following message after running qt5-virt-manager using gdb,
debug message:

Thread 1 "qt5-virt-manage" received signal SIGSEGV, Segmentation fault. QArrayDataPointer<char16_t>::ref (this=0x7fffffffd1d0) at /usr/include/qt6/QtCore/qarraydatapointer.h:412 Downloading source file /usr/include/qt6/QtCore/qarraydatapointer.h 412 size = dst - begin();

maybe there are some imcompatible apis.

while this project seems to be dead, right?

KDE icons are not used

When running the qt5 version under KDE, the program uses its own application icons instead of the chosen KDE icon theme.

Tried on the latest 0.42.67 as well as 0.39.60.

Qt6 ready

Isn't it time to remove all traces of Qt4 support?

Configurations read only

Hello. Actual version 0.43.70.2. Don't write configuration.

  1. I open virtual machine edit
  2. I make changes
  3. I save and close
  4. I open editing again and I see that nothing changed

what? what this fix?

Server virtual machines:
ROSA Enterprise Linux Server 6.6 (CentOS 6.6)
cat /etc/redhat-release
ROSA Enterprise Linux Server release 6.6 (Helium)

QEMU:
rpm -qa | grep qemu
qemu-kvm-rhev-0.12.1.2-2.448.res6.4.x86_64
qemu-kvm-rhev-tools-0.12.1.2-2.448.res6.4.x86_64
gpxe-roms-qemu-0.9.7-6.11.res6.noarch
qemu-img-rhev-0.12.1.2-2.448.res6.4.x86_64

LibVirt
rpm -qa | grep libvirt
libvirt-client-0.10.2-46.res6.4.x86_64
libvirt-0.10.2-46.res6.4.x86_64

Kernel:
uname -a
Linux srv2 2.6.32-504.30.3.el6.x86_64 #1 SMP Fri Jul 17 12:21:37 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

Clinet machine:
cat /etc/release
ROSA Desktop Fresh R8.1 release 2014.1 for x86_64

uname -a
Linux nb 4.9.20-nrj-desktop-1rosa-x86_64 #1 SMP PREEMPT Sat Apr 1 22:43:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

rpm -qa | grep qemu
ipxe-roms-qemu-20150803-1.git989fe14c-rosa2014.1.noarch
qemu-img-2.9.0-1-rosa2014.1.x86_64
qemu-2.9.0-1-rosa2014.1.x86_64
lib64virt-qemu0-3.3.0-1-rosa2014.1.x86_64

rpm -qa | grep libvirt
libvirt-utils-3.3.0-1-rosa2014.1.x86_64
python3-libvirt-3.3.0-1-rosa2014.1.x86_64

rpm -qa | grep virt-manager
qt5-virt-manager-0.43.70.2-1-rosa2014.1.x86_64

connect for server
qemu+unix://root@myservervms
qemu+ssh://root@myservervms

Cannot build (ubuntu 18.04)

Hello,

I have been trying to compile qt-virt-manager on my kubuntu 18.04, but no luck so far.

I first had trouble mentioned in #36 and managed to get over it by creating a file libutf8proc.pc in /usr/lib/x86_64-linux-gnu/pkgconfig.

File is like so

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: libutf8proc
Description: UTF8 processing
Version: 2.1.0
Libs: -L${libdir} -lutf8proc
Cflags: -I${includedir} -DUTF8PROC_EXPORTS

Which is basically what comes from the deb file of ubuntu 19.10 and I only updated the version to match the dpkg output version.

Now I am stuck with KRDC dependencies. I have libkrdccore.so.5 installed on my system in /usr/lib/x86_64-linux-gnu, and also tried to create a symlink libkrdccore.so to libkrdccore.so.5, but no luck so far.

here is the cmake output

$ cmake .
-- Build on system: Linux
-- Build with QT version: 5
-- QT4 build: 0
-- QT5 build: 1
-- 
-- LIB_SUFFIX variable is not defined. It will be autodetected now.
-- You can set it manually with -DLIB_SUFFIX=<value> (64 for example)
--    LIB_SUFFIX is set to '64'
-- 
-- DEBUG: KRDC include directory = 
-- DEBUG: KRDC link directory = 
-- DEBUG: KRDC CFlags = 
-- Could NOT find KRDC
-- Found GObject libraries: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so;/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so;/usr/lib/x86_64-linux-gnu/libgthread-2.0.so;/usr/lib/x86_64-linux-gnu/libglib-2.0.so
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- Found Gio libraries: /usr/lib/x86_64-linux-gnu/libgio-2.0.so
-- Found Gio includes : /usr/include/glib-2.0/gio
-- Found includes :
    /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
    /usr/include/glib-2.0/gobject
    /usr/include/glib-2.0/gio
    
    /usr/include/spice-1
    /usr/include/spice-client-glib-2.0
    /usr/include/libvirt
    /usr/include/qtermwidget5;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/include/x86_64-linux-gnu/qt5
    /usr/include/rfb
    KRDC_INCLUDE_DIR-NOTFOUND
    /usr/include
-- Found BUILD_PROJECT_LIBRARIES: Qt5::Widgets;Qt5::Xml;Qt5::Svg;Qt5::Multimedia;Qt5::Network;/usr/lib/x86_64-linux-gnu/libvirt.so;qtermwidget5;Qt5Widgets;Qt5Gui;Qt5Core;utf8proc;/usr/lib/x86_64-linux-gnu/libglib-2.0.so;/usr/lib/x86_64-linux-gnu/libgobject-2.0.so;/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so;/usr/lib/x86_64-linux-gnu/libgthread-2.0.so;/usr/lib/x86_64-linux-gnu/libglib-2.0.so;/usr/lib/x86_64-linux-gnu/libgio-2.0.so;/usr/lib/x86_64-linux-gnu/libspice-client-glib-2.0.so;/usr/lib/x86_64-linux-gnu/libvncclient.so;/usr/lib/x86_64-linux-gnu/libkrdccore.so;/usr/lib/x86_64-linux-gnu/libutf8proc.so
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
KRDC_INCLUDE_DIR
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager

-- Configuring incomplete, errors occurred!
See also "/home/marc/Documents/apps/qt-virt-manager/CMakeFiles/CMakeOutput.log".

Any help appreciated.

Qt 5.13 (as in Fedora 31)

In file src/state_monitor/domain_monitor_thread.h

#if (QT_VERSION >= QT_VERSION_CHECK(4, 7, 0))
#include <QElapsedTimer>
#else
#include <QTime>
#endif

and

#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
    QElapsedTimer        tMark;
#else
    QTime                tMark;
#endif

Can't build - DotCursorState has not been declared

Hello, I've been trying to build this and always greeted by an error. Already tried building it manually and using an AUR helper, but I'm already at my wit's end. Relevant log while building:

[ 30%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/settings/conn_settings.cpp.o
In file included from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/vm_viewer/krdc_vnc_qtonly/Machine_View.h:28,
                 from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/vm_viewer/vnc/vnc_viewer.h:6,
                 from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/mainwindow.h:29,
                 from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/main.cpp:1:
/home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/vm_viewer/krdc_vnc_qtonly/vncview.h:64:24: error: ‘DotCursorState’ has not been declared
   64 |     void showDotCursor(DotCursorState state);
      |                        ^~~~~~~~~~~~~~
In file included from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/vm_viewer/krdc_vnc_qtonly/Machine_View.h:28,
                 from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/vm_viewer/vnc/vnc_viewer.h:6,
                 from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/mainwindow.h:29,
                 from /home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/mainwindow.cpp:1:
/home/manilarome/.cache/yay/qt-virt-manager/src/qt-virt-manager-0.70.91/src/vm_viewer/krdc_vnc_qtonly/vncview.h:64:24: error: ‘DotCursorState’ has not been declared
   64 |     void showDotCursor(DotCursorState state);
      |                        ^~~~~~~~~~~~~~
[ 31%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/wait_thread/wait_thread.cpp.o
make[2]: *** [CMakeFiles/qt5-virt-manager.dir/build.make:2444: CMakeFiles/qt5-virt-manager.dir/src/main.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/qt5-virt-manager.dir/build.make:2457: CMakeFiles/qt5-virt-manager.dir/src/mainwindow.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:124: CMakeFiles/qt5-virt-manager.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().

Will appreciate any help.

Extra dependencies to run

Fedora 32 (x64), qt-virt-manager 0.71.95:

bash-5.0$ LC_ALL=C qt5-virt-manager
libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
libvirt: XML-RPC error : Failed to connect socket to '/run/user/1000/libvirt/libvirt-sock': No such file or directory
libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
libvirt: XML-RPC error : Failed to connect socket to '/run/user/1000/libvirt/libvirt-sock': No such file or directory
libvirt: VMware Driver error : internal error: vmrun utility is missing
libvirt: VMware Driver error : internal error: vmrun utility is missing
libvirt: VMware Driver error : internal error: vmrun utility is missing
libvirt:  error : invalid argument: URI is missing the server part
libvirt:  error : invalid argument: URI is missing the server part
libvirt:  error : invalid argument: URI is missing the server part
libvirt: OpenVZ Driver error : internal error: OpenVZ control file /proc/vz does not exist

I have no local libvirt, openvz etc. I use it for remote KVMs control only.

Wrong keyboard mapping

Opening a Windows XP VM, at logon keyboard mapping is wrong. My physical keyboard is IT_it but keys doesn't match. I cannot type at sign and hash sign ("@ #") and other char are in the wrong position.

Failed at building lxc viewer

Failed at building some lxc stuff.

[ 63%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/vm_viewer.cpp.o
[ 63%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/viewer_toolbar.cpp.o
[ 63%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/lxc/lxc_viewer.cpp.o
[ 63%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/lxc/lxc_viewer_thread.cpp.o
[ 64%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/spice/spice_viewer.cpp.o
[ 64%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/qterminal/properties.cpp.o
[ 64%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/qterminal/bookmarkswidget.cpp.o
[ 64%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/qterminal/tabwidget.cpp.o
[ 64%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/qterminal/termwidgetholder.cpp.o
[ 64%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/qterminal/propertiesdialog.cpp.o
[ 64%] Building CXX object CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/qterminal/mainwindow.cpp.o
/tmp/yaourt-tmp-xengi/aur-virt-manager-qt5/src/qt-virt-manager/src/vm_viewer/lxc/lxc_viewer.cpp: In member function ‘void LXC_Viewer::setTerminalParameters()’:
/tmp/yaourt-tmp-xengi/aur-virt-manager-qt5/src/qt-virt-manager/src/vm_viewer/lxc/lxc_viewer.cpp:111:32: error: ‘class TermWidgetImpl’ has no member named ‘screenLinesCount’
             int l = t->impl()->screenLinesCount();
                                ^
/tmp/yaourt-tmp-xengi/aur-virt-manager-qt5/src/qt-virt-manager/src/vm_viewer/lxc/lxc_viewer.cpp:116:20: error: ‘class TermWidgetImpl’ has no member named ‘startTerminalTeletype’
         t->impl()->startTerminalTeletype();
                    ^
CMakeFiles/qt5-virt-manager.dir/build.make:6947: recipe for target 'CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/lxc/lxc_viewer.cpp.o' failed
make[2]: *** [CMakeFiles/qt5-virt-manager.dir/src/vm_viewer/lxc/lxc_viewer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/qt5-virt-manager.dir/all' failed
make[1]: *** [CMakeFiles/qt5-virt-manager.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

incorrect fsf address

In those files:
qt-virt-manager-0.16.38/src/vm_viewer/qterminal/config.h
qt-virt-manager-0.16.38/src/vm_viewer/qterminal/main.cpp
qt-virt-manager-0.16.38/src/vm_viewer/qterminal/tabwidget.cpp
qt-virt-manager-0.16.38/src/vm_viewer/qterminal/tabwidget.h
qt-virt-manager-0.16.38/src/vm_viewer/qterminal/term_mainwindow.cpp
qt-virt-manager-0.16.38/src/vm_viewer/qterminal/term_mainwindow.h

Current license version:
https://www.gnu.org/licenses/gpl-2.0.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.