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;
}
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
add a comment |
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
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 likelibvirt
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
add a comment |
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
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
virtual-machine kvm
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 likelibvirt
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
add a comment |
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 likelibvirt
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
add a comment |
3 Answers
3
active
oldest
votes
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.
Thank you for the explanation! Which tools fx?
– Mathias Egekvist
Feb 20 at 13:17
@MathiasEgekvist I don't know them all, butxdotool
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
add a comment |
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.
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
|
show 1 more comment
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
New contributor
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Thank you for the explanation! Which tools fx?
– Mathias Egekvist
Feb 20 at 13:17
@MathiasEgekvist I don't know them all, butxdotool
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
add a comment |
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.
Thank you for the explanation! Which tools fx?
– Mathias Egekvist
Feb 20 at 13:17
@MathiasEgekvist I don't know them all, butxdotool
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
add a comment |
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.
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.
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, butxdotool
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
add a comment |
Thank you for the explanation! Which tools fx?
– Mathias Egekvist
Feb 20 at 13:17
@MathiasEgekvist I don't know them all, butxdotool
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
add a comment |
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.
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
|
show 1 more comment
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.
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
|
show 1 more comment
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.
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.
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
|
show 1 more comment
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
|
show 1 more comment
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
New contributor
answered 49 mins ago
MarkMark
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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