Run VM GUI on headless machine with kvmWhat is X Window System?KVM guest machine graphics problemHow to...

Single Colour Mastermind Problem

How deep to place a deadman anchor for a slackline?

Pressure to defend the relevance of one's area of mathematics

Options leqno, reqno for documentclass or exist another option?

Why is current rating for multicore cable lower than single core with the same cross section?

How to creep the reader out with what seems like a normal person?

Can a creature tell when it has been affected by a Divination wizard's Portent?

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

When and why did journal article titles become descriptive, rather than creatively allusive?

Reverse the word in a string with the same order in javascript

How to replace the "space symbol" (squat-u) in listings?

Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?

Airbnb - host wants to reduce rooms, can we get refund?

Phrase for the opposite of "foolproof"

What is the strongest case that can be made in favour of the UK regaining some control over fishing policy after Brexit?

How to set the font color of quantity objects (Version 11.3 vs version 12)?

Does a creature that is immune to a condition still make a saving throw?

In the time of the mishna, were there Jewish cities without courts?

Feels like I am getting dragged in office politics

Is creating your own "experiment" considered cheating during a physics exam?

Pawn Sacrifice Justification

Please, smoke with good manners

Why does nature favour the Laplacian?

Does the EU Common Fisheries Policy cover British Overseas Territories?



Run VM GUI on headless machine with kvm


What is X Window System?KVM guest machine graphics problemHow to access a KVM virtual-machine?Configure KVM/QEMU with TLS?Start a kvm virtual machine fullscreen on bootHow to run a gui client os in a virtual machine on non gui linux host?Virtual Machine failover with KVMCan't get windows guest working in kvmKVM virtualization issueKVM passthrough in virtual machine more than 3 usb devicesCan I run a .vdi file for Windows 8.1. virtual machine in KVM/QEMU or VMM?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















Priorities:



Security has high priority in all aspects. Scalability, ease of use and price are close seconds and performance also have a say.



What I am trying to do:



I am trying to run a minimal (and therefore without GUI) install of linux run a vm with windows (including GUI). The linux part only needs responsibility for starting the windows client and providing security.



I am currently trying to do it by utilising kvm. I have managed to get it to work through the command line, but only inside a desktop system e.g. GNOME. I ran it through libvirt (virt-install) and virt-viewer and also made it work as described in this guide.



I am running CentOS atm but it was primarily to choose an OS, so suggestions about smaller images with specific advantages are welcome.



The problem:



When I try the 2 options above from none desktop environment I get:
Gtk-WARNING **: [current time]: cannot open display:
I have tried to do some googling, but I keep finding posts about headless servers and X11. I am not trying to make a headless server and I am not sure how X11 should fix my problem.



Request:



How do I start a vm (windows with GUI) from the terminal on a system which doesn't have a GUI (linux without desktop).










share|improve this question




















  • 1





    Sorry, I'm unclear why KVM has anything to do with a server for gold images. I'm also confused how (or why) you're trying to run Gnome on a headless server. Or is Gnome supposed to be running on a VM? Are you running raw KVM machines, or are they managed through something like libvirt or even Proxmox? (Please edit your question to provide clarification, not as footnotes but in the text as if you'd thought of it yourself.)

    – roaima
    Feb 18 at 9:02











  • For what is X11: see unix.stackexchange.com/a/149075/4778 for what X11 is. You don't need a desktop environment like Gnome, but you do need an X11 display (These thinks are separate ideas in X11). You will only need it on the client machines (where use user site, where you are running the VMs, with MS-Windows on top). Also headless in this context means without display (you need this for the GUI, unless you do it over the network. Maybe to thin clients)).

    – ctrl-alt-delor
    Feb 18 at 9:23













  • Thank you for the clarification questions @roaima, I hope I have made them clear.

    – Mathias Egekvist
    Feb 18 at 10:24











  • @ctrl-alt-delor The X11 display sound like what I need, but not entirely sure. Does your comment still make sense after my edits?

    – Mathias Egekvist
    Feb 18 at 10:24


















0















Priorities:



Security has high priority in all aspects. Scalability, ease of use and price are close seconds and performance also have a say.



What I am trying to do:



I am trying to run a minimal (and therefore without GUI) install of linux run a vm with windows (including GUI). The linux part only needs responsibility for starting the windows client and providing security.



I am currently trying to do it by utilising kvm. I have managed to get it to work through the command line, but only inside a desktop system e.g. GNOME. I ran it through libvirt (virt-install) and virt-viewer and also made it work as described in this guide.



I am running CentOS atm but it was primarily to choose an OS, so suggestions about smaller images with specific advantages are welcome.



The problem:



When I try the 2 options above from none desktop environment I get:
Gtk-WARNING **: [current time]: cannot open display:
I have tried to do some googling, but I keep finding posts about headless servers and X11. I am not trying to make a headless server and I am not sure how X11 should fix my problem.



Request:



How do I start a vm (windows with GUI) from the terminal on a system which doesn't have a GUI (linux without desktop).










share|improve this question




















  • 1





    Sorry, I'm unclear why KVM has anything to do with a server for gold images. I'm also confused how (or why) you're trying to run Gnome on a headless server. Or is Gnome supposed to be running on a VM? Are you running raw KVM machines, or are they managed through something like libvirt or even Proxmox? (Please edit your question to provide clarification, not as footnotes but in the text as if you'd thought of it yourself.)

    – roaima
    Feb 18 at 9:02











  • For what is X11: see unix.stackexchange.com/a/149075/4778 for what X11 is. You don't need a desktop environment like Gnome, but you do need an X11 display (These thinks are separate ideas in X11). You will only need it on the client machines (where use user site, where you are running the VMs, with MS-Windows on top). Also headless in this context means without display (you need this for the GUI, unless you do it over the network. Maybe to thin clients)).

    – ctrl-alt-delor
    Feb 18 at 9:23













  • Thank you for the clarification questions @roaima, I hope I have made them clear.

    – Mathias Egekvist
    Feb 18 at 10:24











  • @ctrl-alt-delor The X11 display sound like what I need, but not entirely sure. Does your comment still make sense after my edits?

    – Mathias Egekvist
    Feb 18 at 10:24














0












0








0








Priorities:



Security has high priority in all aspects. Scalability, ease of use and price are close seconds and performance also have a say.



What I am trying to do:



I am trying to run a minimal (and therefore without GUI) install of linux run a vm with windows (including GUI). The linux part only needs responsibility for starting the windows client and providing security.



I am currently trying to do it by utilising kvm. I have managed to get it to work through the command line, but only inside a desktop system e.g. GNOME. I ran it through libvirt (virt-install) and virt-viewer and also made it work as described in this guide.



I am running CentOS atm but it was primarily to choose an OS, so suggestions about smaller images with specific advantages are welcome.



The problem:



When I try the 2 options above from none desktop environment I get:
Gtk-WARNING **: [current time]: cannot open display:
I have tried to do some googling, but I keep finding posts about headless servers and X11. I am not trying to make a headless server and I am not sure how X11 should fix my problem.



Request:



How do I start a vm (windows with GUI) from the terminal on a system which doesn't have a GUI (linux without desktop).










share|improve this question
















Priorities:



Security has high priority in all aspects. Scalability, ease of use and price are close seconds and performance also have a say.



What I am trying to do:



I am trying to run a minimal (and therefore without GUI) install of linux run a vm with windows (including GUI). The linux part only needs responsibility for starting the windows client and providing security.



I am currently trying to do it by utilising kvm. I have managed to get it to work through the command line, but only inside a desktop system e.g. GNOME. I ran it through libvirt (virt-install) and virt-viewer and also made it work as described in this guide.



I am running CentOS atm but it was primarily to choose an OS, so suggestions about smaller images with specific advantages are welcome.



The problem:



When I try the 2 options above from none desktop environment I get:
Gtk-WARNING **: [current time]: cannot open display:
I have tried to do some googling, but I keep finding posts about headless servers and X11. I am not trying to make a headless server and I am not sure how X11 should fix my problem.



Request:



How do I start a vm (windows with GUI) from the terminal on a system which doesn't have a GUI (linux without desktop).







virtual-machine kvm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 20 at 13:48







Mathias Egekvist

















asked Feb 18 at 8:51









Mathias EgekvistMathias Egekvist

188




188








  • 1





    Sorry, I'm unclear why KVM has anything to do with a server for gold images. I'm also confused how (or why) you're trying to run Gnome on a headless server. Or is Gnome supposed to be running on a VM? Are you running raw KVM machines, or are they managed through something like libvirt or even Proxmox? (Please edit your question to provide clarification, not as footnotes but in the text as if you'd thought of it yourself.)

    – roaima
    Feb 18 at 9:02











  • For what is X11: see unix.stackexchange.com/a/149075/4778 for what X11 is. You don't need a desktop environment like Gnome, but you do need an X11 display (These thinks are separate ideas in X11). You will only need it on the client machines (where use user site, where you are running the VMs, with MS-Windows on top). Also headless in this context means without display (you need this for the GUI, unless you do it over the network. Maybe to thin clients)).

    – ctrl-alt-delor
    Feb 18 at 9:23













  • Thank you for the clarification questions @roaima, I hope I have made them clear.

    – Mathias Egekvist
    Feb 18 at 10:24











  • @ctrl-alt-delor The X11 display sound like what I need, but not entirely sure. Does your comment still make sense after my edits?

    – Mathias Egekvist
    Feb 18 at 10:24














  • 1





    Sorry, I'm unclear why KVM has anything to do with a server for gold images. I'm also confused how (or why) you're trying to run Gnome on a headless server. Or is Gnome supposed to be running on a VM? Are you running raw KVM machines, or are they managed through something like libvirt or even Proxmox? (Please edit your question to provide clarification, not as footnotes but in the text as if you'd thought of it yourself.)

    – roaima
    Feb 18 at 9:02











  • For what is X11: see unix.stackexchange.com/a/149075/4778 for what X11 is. You don't need a desktop environment like Gnome, but you do need an X11 display (These thinks are separate ideas in X11). You will only need it on the client machines (where use user site, where you are running the VMs, with MS-Windows on top). Also headless in this context means without display (you need this for the GUI, unless you do it over the network. Maybe to thin clients)).

    – ctrl-alt-delor
    Feb 18 at 9:23













  • Thank you for the clarification questions @roaima, I hope I have made them clear.

    – Mathias Egekvist
    Feb 18 at 10:24











  • @ctrl-alt-delor The X11 display sound like what I need, but not entirely sure. Does your comment still make sense after my edits?

    – Mathias Egekvist
    Feb 18 at 10:24








1




1





Sorry, I'm unclear why KVM has anything to do with a server for gold images. I'm also confused how (or why) you're trying to run Gnome on a headless server. Or is Gnome supposed to be running on a VM? Are you running raw KVM machines, or are they managed through something like libvirt or even Proxmox? (Please edit your question to provide clarification, not as footnotes but in the text as if you'd thought of it yourself.)

– roaima
Feb 18 at 9:02





Sorry, I'm unclear why KVM has anything to do with a server for gold images. I'm also confused how (or why) you're trying to run Gnome on a headless server. Or is Gnome supposed to be running on a VM? Are you running raw KVM machines, or are they managed through something like libvirt or even Proxmox? (Please edit your question to provide clarification, not as footnotes but in the text as if you'd thought of it yourself.)

– roaima
Feb 18 at 9:02













For what is X11: see unix.stackexchange.com/a/149075/4778 for what X11 is. You don't need a desktop environment like Gnome, but you do need an X11 display (These thinks are separate ideas in X11). You will only need it on the client machines (where use user site, where you are running the VMs, with MS-Windows on top). Also headless in this context means without display (you need this for the GUI, unless you do it over the network. Maybe to thin clients)).

– ctrl-alt-delor
Feb 18 at 9:23







For what is X11: see unix.stackexchange.com/a/149075/4778 for what X11 is. You don't need a desktop environment like Gnome, but you do need an X11 display (These thinks are separate ideas in X11). You will only need it on the client machines (where use user site, where you are running the VMs, with MS-Windows on top). Also headless in this context means without display (you need this for the GUI, unless you do it over the network. Maybe to thin clients)).

– ctrl-alt-delor
Feb 18 at 9:23















Thank you for the clarification questions @roaima, I hope I have made them clear.

– Mathias Egekvist
Feb 18 at 10:24





Thank you for the clarification questions @roaima, I hope I have made them clear.

– Mathias Egekvist
Feb 18 at 10:24













@ctrl-alt-delor The X11 display sound like what I need, but not entirely sure. Does your comment still make sense after my edits?

– Mathias Egekvist
Feb 18 at 10:24





@ctrl-alt-delor The X11 display sound like what I need, but not entirely sure. Does your comment still make sense after my edits?

– Mathias Egekvist
Feb 18 at 10:24










3 Answers
3






active

oldest

votes


















0














For the client machines: where the MS-Windows on VM, will be run. You will need an X11 server.



X11 server



X11 is part of the windowing system used on Gnu/Linux, Unix, VMS, and some other systems. It combines a canvas, keyboard, mouse. The X server is not the windowing system, but is needed to run one.



Beware many people think of a server as being remote. This is false. An X11 server runs locally. The clients can run remotely.



A windowing system e.g. Gnome.



Is made of




  • The window-manager: responsible for moving, resizing, lowering, raising, windows.

  • Task manager, start button, notification area, etc.


You don't need a windowing system, especially if you only run one window. There are other tools that can make a window become full screen.






share|improve this answer
























  • Thank you for the explanation! Which tools fx?

    – Mathias Egekvist
    Feb 20 at 13:17











  • @MathiasEgekvist I don't know them all, but xdotool is one. If this is what you need, then ask another question.

    – ctrl-alt-delor
    Feb 21 at 9:24











  • It was not precisely what I was looking for, but it led me to understand more of what I needed to know, which was to understand what X11 was doing and how I needed it and that the server and guest can be one and the same computer.

    – Mathias Egekvist
    Mar 21 at 14:34











  • @MathiasEgekvist people get confused, because when they see all the examples of servers: If we notice a remote machine, it is because of its servers. Therefore we create a model that servers are remote. This is not the case, me have words for this idea (local and remote). X11 servers are local to the user.

    – ctrl-alt-delor
    Mar 21 at 16:51



















0














I read that you have a hypervisor machine running Linux that will run a VM, and that VM needs to have a graphical environment. But the hypervisor does not have a graphical environment and probably doesn't even have a display.



What you should do instead is to install virt-manager on your own workstation, and the configure virt-manager to make a connection (via ssh tunnel) to the hypervisor machine. You can then manage the VMs running on that machine from your workstation, including viewing the graphics console of the VM, with all data sent over the ssh tunnel.






share|improve this answer
























  • Sorry for the bad description. The first paragraph is correct, but my idea is to run the client on the host, if that makes sense. The host do have a display but only terminal.

    – Mathias Egekvist
    Feb 20 at 13:17











  • How will you see it?

    – Michael Hampton
    Feb 20 at 15:56











  • So there is only one PC with a display attached, which runs CentOS without GUI. From there I need to open a Windows10 VM with GUI. I hope that answers your question :)

    – Mathias Egekvist
    Feb 21 at 11:59











  • You can't see a GUI without a workstation to run a virtual machine viewer on!

    – Michael Hampton
    Feb 21 at 14:02











  • So it is not possible to run a VM from the terminal on the same PC? Or do I need to install a virtual machine viewer? If that is the case do you have any recommendations?

    – Mathias Egekvist
    Feb 21 at 14:31



















0














From the sounds of it you are trying to run a windows VM on KVM with PCI pass-through of the graphics card, without the host OS taking control of it. I have not personally tried to run a set-up like this but I understand some people have had success with running two graphics cards and giving control of the second to the VM.



https://heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/



In the tutorial they mention that,the UEFI firmware initializes the GPU and loads a modified vBios from the GPU. This can cause problems if you try to pass through the only GPU attached to the computer.




When booting these host platforms, the host UEFI initializes the GPU and makes a somewhat modified “shadow copy” of the GPU’s vBIOS. Later when you start the VM, Linux exposes this crippled shadow BIOS to the guests UEFI loader. The same happens when you try to passthrough your primary (and only) GPU to the guest. A telltale sign is the following error when running the VM start script:



qemu-system-x86_64: -device vfio-pci,host=02:00.0,multifunction=on: Failed to mmap 0000:02:00.0 BAR 3. Performance may be slow







share|improve this answer








New contributor




Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501305%2frun-vm-gui-on-headless-machine-with-kvm%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    For the client machines: where the MS-Windows on VM, will be run. You will need an X11 server.



    X11 server



    X11 is part of the windowing system used on Gnu/Linux, Unix, VMS, and some other systems. It combines a canvas, keyboard, mouse. The X server is not the windowing system, but is needed to run one.



    Beware many people think of a server as being remote. This is false. An X11 server runs locally. The clients can run remotely.



    A windowing system e.g. Gnome.



    Is made of




    • The window-manager: responsible for moving, resizing, lowering, raising, windows.

    • Task manager, start button, notification area, etc.


    You don't need a windowing system, especially if you only run one window. There are other tools that can make a window become full screen.






    share|improve this answer
























    • Thank you for the explanation! Which tools fx?

      – Mathias Egekvist
      Feb 20 at 13:17











    • @MathiasEgekvist I don't know them all, but xdotool is one. If this is what you need, then ask another question.

      – ctrl-alt-delor
      Feb 21 at 9:24











    • It was not precisely what I was looking for, but it led me to understand more of what I needed to know, which was to understand what X11 was doing and how I needed it and that the server and guest can be one and the same computer.

      – Mathias Egekvist
      Mar 21 at 14:34











    • @MathiasEgekvist people get confused, because when they see all the examples of servers: If we notice a remote machine, it is because of its servers. Therefore we create a model that servers are remote. This is not the case, me have words for this idea (local and remote). X11 servers are local to the user.

      – ctrl-alt-delor
      Mar 21 at 16:51
















    0














    For the client machines: where the MS-Windows on VM, will be run. You will need an X11 server.



    X11 server



    X11 is part of the windowing system used on Gnu/Linux, Unix, VMS, and some other systems. It combines a canvas, keyboard, mouse. The X server is not the windowing system, but is needed to run one.



    Beware many people think of a server as being remote. This is false. An X11 server runs locally. The clients can run remotely.



    A windowing system e.g. Gnome.



    Is made of




    • The window-manager: responsible for moving, resizing, lowering, raising, windows.

    • Task manager, start button, notification area, etc.


    You don't need a windowing system, especially if you only run one window. There are other tools that can make a window become full screen.






    share|improve this answer
























    • Thank you for the explanation! Which tools fx?

      – Mathias Egekvist
      Feb 20 at 13:17











    • @MathiasEgekvist I don't know them all, but xdotool is one. If this is what you need, then ask another question.

      – ctrl-alt-delor
      Feb 21 at 9:24











    • It was not precisely what I was looking for, but it led me to understand more of what I needed to know, which was to understand what X11 was doing and how I needed it and that the server and guest can be one and the same computer.

      – Mathias Egekvist
      Mar 21 at 14:34











    • @MathiasEgekvist people get confused, because when they see all the examples of servers: If we notice a remote machine, it is because of its servers. Therefore we create a model that servers are remote. This is not the case, me have words for this idea (local and remote). X11 servers are local to the user.

      – ctrl-alt-delor
      Mar 21 at 16:51














    0












    0








    0







    For the client machines: where the MS-Windows on VM, will be run. You will need an X11 server.



    X11 server



    X11 is part of the windowing system used on Gnu/Linux, Unix, VMS, and some other systems. It combines a canvas, keyboard, mouse. The X server is not the windowing system, but is needed to run one.



    Beware many people think of a server as being remote. This is false. An X11 server runs locally. The clients can run remotely.



    A windowing system e.g. Gnome.



    Is made of




    • The window-manager: responsible for moving, resizing, lowering, raising, windows.

    • Task manager, start button, notification area, etc.


    You don't need a windowing system, especially if you only run one window. There are other tools that can make a window become full screen.






    share|improve this answer













    For the client machines: where the MS-Windows on VM, will be run. You will need an X11 server.



    X11 server



    X11 is part of the windowing system used on Gnu/Linux, Unix, VMS, and some other systems. It combines a canvas, keyboard, mouse. The X server is not the windowing system, but is needed to run one.



    Beware many people think of a server as being remote. This is false. An X11 server runs locally. The clients can run remotely.



    A windowing system e.g. Gnome.



    Is made of




    • The window-manager: responsible for moving, resizing, lowering, raising, windows.

    • Task manager, start button, notification area, etc.


    You don't need a windowing system, especially if you only run one window. There are other tools that can make a window become full screen.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 18 at 13:42









    ctrl-alt-delorctrl-alt-delor

    12.7k52663




    12.7k52663













    • Thank you for the explanation! Which tools fx?

      – Mathias Egekvist
      Feb 20 at 13:17











    • @MathiasEgekvist I don't know them all, but xdotool is one. If this is what you need, then ask another question.

      – ctrl-alt-delor
      Feb 21 at 9:24











    • It was not precisely what I was looking for, but it led me to understand more of what I needed to know, which was to understand what X11 was doing and how I needed it and that the server and guest can be one and the same computer.

      – Mathias Egekvist
      Mar 21 at 14:34











    • @MathiasEgekvist people get confused, because when they see all the examples of servers: If we notice a remote machine, it is because of its servers. Therefore we create a model that servers are remote. This is not the case, me have words for this idea (local and remote). X11 servers are local to the user.

      – ctrl-alt-delor
      Mar 21 at 16:51



















    • Thank you for the explanation! Which tools fx?

      – Mathias Egekvist
      Feb 20 at 13:17











    • @MathiasEgekvist I don't know them all, but xdotool is one. If this is what you need, then ask another question.

      – ctrl-alt-delor
      Feb 21 at 9:24











    • It was not precisely what I was looking for, but it led me to understand more of what I needed to know, which was to understand what X11 was doing and how I needed it and that the server and guest can be one and the same computer.

      – Mathias Egekvist
      Mar 21 at 14:34











    • @MathiasEgekvist people get confused, because when they see all the examples of servers: If we notice a remote machine, it is because of its servers. Therefore we create a model that servers are remote. This is not the case, me have words for this idea (local and remote). X11 servers are local to the user.

      – ctrl-alt-delor
      Mar 21 at 16:51

















    Thank you for the explanation! Which tools fx?

    – Mathias Egekvist
    Feb 20 at 13:17





    Thank you for the explanation! Which tools fx?

    – Mathias Egekvist
    Feb 20 at 13:17













    @MathiasEgekvist I don't know them all, but xdotool is one. If this is what you need, then ask another question.

    – ctrl-alt-delor
    Feb 21 at 9:24





    @MathiasEgekvist I don't know them all, but xdotool is one. If this is what you need, then ask another question.

    – ctrl-alt-delor
    Feb 21 at 9:24













    It was not precisely what I was looking for, but it led me to understand more of what I needed to know, which was to understand what X11 was doing and how I needed it and that the server and guest can be one and the same computer.

    – Mathias Egekvist
    Mar 21 at 14:34





    It was not precisely what I was looking for, but it led me to understand more of what I needed to know, which was to understand what X11 was doing and how I needed it and that the server and guest can be one and the same computer.

    – Mathias Egekvist
    Mar 21 at 14:34













    @MathiasEgekvist people get confused, because when they see all the examples of servers: If we notice a remote machine, it is because of its servers. Therefore we create a model that servers are remote. This is not the case, me have words for this idea (local and remote). X11 servers are local to the user.

    – ctrl-alt-delor
    Mar 21 at 16:51





    @MathiasEgekvist people get confused, because when they see all the examples of servers: If we notice a remote machine, it is because of its servers. Therefore we create a model that servers are remote. This is not the case, me have words for this idea (local and remote). X11 servers are local to the user.

    – ctrl-alt-delor
    Mar 21 at 16:51













    0














    I read that you have a hypervisor machine running Linux that will run a VM, and that VM needs to have a graphical environment. But the hypervisor does not have a graphical environment and probably doesn't even have a display.



    What you should do instead is to install virt-manager on your own workstation, and the configure virt-manager to make a connection (via ssh tunnel) to the hypervisor machine. You can then manage the VMs running on that machine from your workstation, including viewing the graphics console of the VM, with all data sent over the ssh tunnel.






    share|improve this answer
























    • Sorry for the bad description. The first paragraph is correct, but my idea is to run the client on the host, if that makes sense. The host do have a display but only terminal.

      – Mathias Egekvist
      Feb 20 at 13:17











    • How will you see it?

      – Michael Hampton
      Feb 20 at 15:56











    • So there is only one PC with a display attached, which runs CentOS without GUI. From there I need to open a Windows10 VM with GUI. I hope that answers your question :)

      – Mathias Egekvist
      Feb 21 at 11:59











    • You can't see a GUI without a workstation to run a virtual machine viewer on!

      – Michael Hampton
      Feb 21 at 14:02











    • So it is not possible to run a VM from the terminal on the same PC? Or do I need to install a virtual machine viewer? If that is the case do you have any recommendations?

      – Mathias Egekvist
      Feb 21 at 14:31
















    0














    I read that you have a hypervisor machine running Linux that will run a VM, and that VM needs to have a graphical environment. But the hypervisor does not have a graphical environment and probably doesn't even have a display.



    What you should do instead is to install virt-manager on your own workstation, and the configure virt-manager to make a connection (via ssh tunnel) to the hypervisor machine. You can then manage the VMs running on that machine from your workstation, including viewing the graphics console of the VM, with all data sent over the ssh tunnel.






    share|improve this answer
























    • Sorry for the bad description. The first paragraph is correct, but my idea is to run the client on the host, if that makes sense. The host do have a display but only terminal.

      – Mathias Egekvist
      Feb 20 at 13:17











    • How will you see it?

      – Michael Hampton
      Feb 20 at 15:56











    • So there is only one PC with a display attached, which runs CentOS without GUI. From there I need to open a Windows10 VM with GUI. I hope that answers your question :)

      – Mathias Egekvist
      Feb 21 at 11:59











    • You can't see a GUI without a workstation to run a virtual machine viewer on!

      – Michael Hampton
      Feb 21 at 14:02











    • So it is not possible to run a VM from the terminal on the same PC? Or do I need to install a virtual machine viewer? If that is the case do you have any recommendations?

      – Mathias Egekvist
      Feb 21 at 14:31














    0












    0








    0







    I read that you have a hypervisor machine running Linux that will run a VM, and that VM needs to have a graphical environment. But the hypervisor does not have a graphical environment and probably doesn't even have a display.



    What you should do instead is to install virt-manager on your own workstation, and the configure virt-manager to make a connection (via ssh tunnel) to the hypervisor machine. You can then manage the VMs running on that machine from your workstation, including viewing the graphics console of the VM, with all data sent over the ssh tunnel.






    share|improve this answer













    I read that you have a hypervisor machine running Linux that will run a VM, and that VM needs to have a graphical environment. But the hypervisor does not have a graphical environment and probably doesn't even have a display.



    What you should do instead is to install virt-manager on your own workstation, and the configure virt-manager to make a connection (via ssh tunnel) to the hypervisor machine. You can then manage the VMs running on that machine from your workstation, including viewing the graphics console of the VM, with all data sent over the ssh tunnel.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 18 at 15:17









    Michael HamptonMichael Hampton

    6,04812146




    6,04812146













    • Sorry for the bad description. The first paragraph is correct, but my idea is to run the client on the host, if that makes sense. The host do have a display but only terminal.

      – Mathias Egekvist
      Feb 20 at 13:17











    • How will you see it?

      – Michael Hampton
      Feb 20 at 15:56











    • So there is only one PC with a display attached, which runs CentOS without GUI. From there I need to open a Windows10 VM with GUI. I hope that answers your question :)

      – Mathias Egekvist
      Feb 21 at 11:59











    • You can't see a GUI without a workstation to run a virtual machine viewer on!

      – Michael Hampton
      Feb 21 at 14:02











    • So it is not possible to run a VM from the terminal on the same PC? Or do I need to install a virtual machine viewer? If that is the case do you have any recommendations?

      – Mathias Egekvist
      Feb 21 at 14:31



















    • Sorry for the bad description. The first paragraph is correct, but my idea is to run the client on the host, if that makes sense. The host do have a display but only terminal.

      – Mathias Egekvist
      Feb 20 at 13:17











    • How will you see it?

      – Michael Hampton
      Feb 20 at 15:56











    • So there is only one PC with a display attached, which runs CentOS without GUI. From there I need to open a Windows10 VM with GUI. I hope that answers your question :)

      – Mathias Egekvist
      Feb 21 at 11:59











    • You can't see a GUI without a workstation to run a virtual machine viewer on!

      – Michael Hampton
      Feb 21 at 14:02











    • So it is not possible to run a VM from the terminal on the same PC? Or do I need to install a virtual machine viewer? If that is the case do you have any recommendations?

      – Mathias Egekvist
      Feb 21 at 14:31

















    Sorry for the bad description. The first paragraph is correct, but my idea is to run the client on the host, if that makes sense. The host do have a display but only terminal.

    – Mathias Egekvist
    Feb 20 at 13:17





    Sorry for the bad description. The first paragraph is correct, but my idea is to run the client on the host, if that makes sense. The host do have a display but only terminal.

    – Mathias Egekvist
    Feb 20 at 13:17













    How will you see it?

    – Michael Hampton
    Feb 20 at 15:56





    How will you see it?

    – Michael Hampton
    Feb 20 at 15:56













    So there is only one PC with a display attached, which runs CentOS without GUI. From there I need to open a Windows10 VM with GUI. I hope that answers your question :)

    – Mathias Egekvist
    Feb 21 at 11:59





    So there is only one PC with a display attached, which runs CentOS without GUI. From there I need to open a Windows10 VM with GUI. I hope that answers your question :)

    – Mathias Egekvist
    Feb 21 at 11:59













    You can't see a GUI without a workstation to run a virtual machine viewer on!

    – Michael Hampton
    Feb 21 at 14:02





    You can't see a GUI without a workstation to run a virtual machine viewer on!

    – Michael Hampton
    Feb 21 at 14:02













    So it is not possible to run a VM from the terminal on the same PC? Or do I need to install a virtual machine viewer? If that is the case do you have any recommendations?

    – Mathias Egekvist
    Feb 21 at 14:31





    So it is not possible to run a VM from the terminal on the same PC? Or do I need to install a virtual machine viewer? If that is the case do you have any recommendations?

    – Mathias Egekvist
    Feb 21 at 14:31











    0














    From the sounds of it you are trying to run a windows VM on KVM with PCI pass-through of the graphics card, without the host OS taking control of it. I have not personally tried to run a set-up like this but I understand some people have had success with running two graphics cards and giving control of the second to the VM.



    https://heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/



    In the tutorial they mention that,the UEFI firmware initializes the GPU and loads a modified vBios from the GPU. This can cause problems if you try to pass through the only GPU attached to the computer.




    When booting these host platforms, the host UEFI initializes the GPU and makes a somewhat modified “shadow copy” of the GPU’s vBIOS. Later when you start the VM, Linux exposes this crippled shadow BIOS to the guests UEFI loader. The same happens when you try to passthrough your primary (and only) GPU to the guest. A telltale sign is the following error when running the VM start script:



    qemu-system-x86_64: -device vfio-pci,host=02:00.0,multifunction=on: Failed to mmap 0000:02:00.0 BAR 3. Performance may be slow







    share|improve this answer








    New contributor




    Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      From the sounds of it you are trying to run a windows VM on KVM with PCI pass-through of the graphics card, without the host OS taking control of it. I have not personally tried to run a set-up like this but I understand some people have had success with running two graphics cards and giving control of the second to the VM.



      https://heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/



      In the tutorial they mention that,the UEFI firmware initializes the GPU and loads a modified vBios from the GPU. This can cause problems if you try to pass through the only GPU attached to the computer.




      When booting these host platforms, the host UEFI initializes the GPU and makes a somewhat modified “shadow copy” of the GPU’s vBIOS. Later when you start the VM, Linux exposes this crippled shadow BIOS to the guests UEFI loader. The same happens when you try to passthrough your primary (and only) GPU to the guest. A telltale sign is the following error when running the VM start script:



      qemu-system-x86_64: -device vfio-pci,host=02:00.0,multifunction=on: Failed to mmap 0000:02:00.0 BAR 3. Performance may be slow







      share|improve this answer








      New contributor




      Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        From the sounds of it you are trying to run a windows VM on KVM with PCI pass-through of the graphics card, without the host OS taking control of it. I have not personally tried to run a set-up like this but I understand some people have had success with running two graphics cards and giving control of the second to the VM.



        https://heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/



        In the tutorial they mention that,the UEFI firmware initializes the GPU and loads a modified vBios from the GPU. This can cause problems if you try to pass through the only GPU attached to the computer.




        When booting these host platforms, the host UEFI initializes the GPU and makes a somewhat modified “shadow copy” of the GPU’s vBIOS. Later when you start the VM, Linux exposes this crippled shadow BIOS to the guests UEFI loader. The same happens when you try to passthrough your primary (and only) GPU to the guest. A telltale sign is the following error when running the VM start script:



        qemu-system-x86_64: -device vfio-pci,host=02:00.0,multifunction=on: Failed to mmap 0000:02:00.0 BAR 3. Performance may be slow







        share|improve this answer








        New contributor




        Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        From the sounds of it you are trying to run a windows VM on KVM with PCI pass-through of the graphics card, without the host OS taking control of it. I have not personally tried to run a set-up like this but I understand some people have had success with running two graphics cards and giving control of the second to the VM.



        https://heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/



        In the tutorial they mention that,the UEFI firmware initializes the GPU and loads a modified vBios from the GPU. This can cause problems if you try to pass through the only GPU attached to the computer.




        When booting these host platforms, the host UEFI initializes the GPU and makes a somewhat modified “shadow copy” of the GPU’s vBIOS. Later when you start the VM, Linux exposes this crippled shadow BIOS to the guests UEFI loader. The same happens when you try to passthrough your primary (and only) GPU to the guest. A telltale sign is the following error when running the VM start script:



        qemu-system-x86_64: -device vfio-pci,host=02:00.0,multifunction=on: Failed to mmap 0000:02:00.0 BAR 3. Performance may be slow








        share|improve this answer








        New contributor




        Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 49 mins ago









        MarkMark

        1




        1




        New contributor




        Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Mark is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f501305%2frun-vm-gui-on-headless-machine-with-kvm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...