Ubuntu Server and QEMU - “Could not initialize SDL”
I am following the instructions on RunningKVM.
My host runs Ubuntu Server 14.04.1 (64 bit)
I downloaded the Ubuntu Server ISO file:
wget -c http://old-releases.ubuntu.com/releases/14.04.2/ubuntu-14.04.1-server-amd64.iso
And then I ran:
qemu-img create -f qcow2 vdisk.img 10G
qemu-system-x86_64 -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
Error:
Could not initialize SDL(No available video device) - exiting
From what I understand, this is because I am not running it from X windows machine.
Then, after googling, I added -vga none
and I ran:
qemu-system-x86_64 -vga none -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And again I got the same error.
Then I ran with -nographic
:
qemu-system-x86_64 -nographic -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And this was stuck without any error (I waited over 10 minutes).
So I had to kill this process from a different machine.
What is the correct way to install when the host does not have x windows
with this setup?
14.04 virtualization kvm
add a comment |
I am following the instructions on RunningKVM.
My host runs Ubuntu Server 14.04.1 (64 bit)
I downloaded the Ubuntu Server ISO file:
wget -c http://old-releases.ubuntu.com/releases/14.04.2/ubuntu-14.04.1-server-amd64.iso
And then I ran:
qemu-img create -f qcow2 vdisk.img 10G
qemu-system-x86_64 -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
Error:
Could not initialize SDL(No available video device) - exiting
From what I understand, this is because I am not running it from X windows machine.
Then, after googling, I added -vga none
and I ran:
qemu-system-x86_64 -vga none -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And again I got the same error.
Then I ran with -nographic
:
qemu-system-x86_64 -nographic -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And this was stuck without any error (I waited over 10 minutes).
So I had to kill this process from a different machine.
What is the correct way to install when the host does not have x windows
with this setup?
14.04 virtualization kvm
Have you triedqemu -curses
? You may also want to try runninggksudo qemu-system-x86_64 <switches>
as well
– ThatGuy
Nov 28 '16 at 2:43
I had just tried qemu -curses...
– Kevin Wilson
Nov 28 '16 at 5:28
Poke: three weeks past by. Any ideas about the answer ?
– Kevin Wilson
Dec 13 '16 at 12:30
My previous comment from 28 of November was not sent fully, so I am repeating it in full: I had just tried qemu -curses, and I see one line on a black screen, saying: 1024x 768 Graphic mode (in blue). And I cannot do anything from this screen,
– Kevin Wilson
Dec 13 '16 at 16:05
add a comment |
I am following the instructions on RunningKVM.
My host runs Ubuntu Server 14.04.1 (64 bit)
I downloaded the Ubuntu Server ISO file:
wget -c http://old-releases.ubuntu.com/releases/14.04.2/ubuntu-14.04.1-server-amd64.iso
And then I ran:
qemu-img create -f qcow2 vdisk.img 10G
qemu-system-x86_64 -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
Error:
Could not initialize SDL(No available video device) - exiting
From what I understand, this is because I am not running it from X windows machine.
Then, after googling, I added -vga none
and I ran:
qemu-system-x86_64 -vga none -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And again I got the same error.
Then I ran with -nographic
:
qemu-system-x86_64 -nographic -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And this was stuck without any error (I waited over 10 minutes).
So I had to kill this process from a different machine.
What is the correct way to install when the host does not have x windows
with this setup?
14.04 virtualization kvm
I am following the instructions on RunningKVM.
My host runs Ubuntu Server 14.04.1 (64 bit)
I downloaded the Ubuntu Server ISO file:
wget -c http://old-releases.ubuntu.com/releases/14.04.2/ubuntu-14.04.1-server-amd64.iso
And then I ran:
qemu-img create -f qcow2 vdisk.img 10G
qemu-system-x86_64 -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
Error:
Could not initialize SDL(No available video device) - exiting
From what I understand, this is because I am not running it from X windows machine.
Then, after googling, I added -vga none
and I ran:
qemu-system-x86_64 -vga none -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And again I got the same error.
Then I ran with -nographic
:
qemu-system-x86_64 -nographic -hda vdisk.img -cdrom ubuntu-14.04.1-server-amd64.iso -boot d -m 384
And this was stuck without any error (I waited over 10 minutes).
So I had to kill this process from a different machine.
What is the correct way to install when the host does not have x windows
with this setup?
14.04 virtualization kvm
14.04 virtualization kvm
edited Nov 28 '16 at 2:27
wjandrea
8,47842259
8,47842259
asked Nov 27 '16 at 22:04
Kevin WilsonKevin Wilson
8126
8126
Have you triedqemu -curses
? You may also want to try runninggksudo qemu-system-x86_64 <switches>
as well
– ThatGuy
Nov 28 '16 at 2:43
I had just tried qemu -curses...
– Kevin Wilson
Nov 28 '16 at 5:28
Poke: three weeks past by. Any ideas about the answer ?
– Kevin Wilson
Dec 13 '16 at 12:30
My previous comment from 28 of November was not sent fully, so I am repeating it in full: I had just tried qemu -curses, and I see one line on a black screen, saying: 1024x 768 Graphic mode (in blue). And I cannot do anything from this screen,
– Kevin Wilson
Dec 13 '16 at 16:05
add a comment |
Have you triedqemu -curses
? You may also want to try runninggksudo qemu-system-x86_64 <switches>
as well
– ThatGuy
Nov 28 '16 at 2:43
I had just tried qemu -curses...
– Kevin Wilson
Nov 28 '16 at 5:28
Poke: three weeks past by. Any ideas about the answer ?
– Kevin Wilson
Dec 13 '16 at 12:30
My previous comment from 28 of November was not sent fully, so I am repeating it in full: I had just tried qemu -curses, and I see one line on a black screen, saying: 1024x 768 Graphic mode (in blue). And I cannot do anything from this screen,
– Kevin Wilson
Dec 13 '16 at 16:05
Have you tried
qemu -curses
? You may also want to try running gksudo qemu-system-x86_64 <switches>
as well– ThatGuy
Nov 28 '16 at 2:43
Have you tried
qemu -curses
? You may also want to try running gksudo qemu-system-x86_64 <switches>
as well– ThatGuy
Nov 28 '16 at 2:43
I had just tried qemu -curses...
– Kevin Wilson
Nov 28 '16 at 5:28
I had just tried qemu -curses...
– Kevin Wilson
Nov 28 '16 at 5:28
Poke: three weeks past by. Any ideas about the answer ?
– Kevin Wilson
Dec 13 '16 at 12:30
Poke: three weeks past by. Any ideas about the answer ?
– Kevin Wilson
Dec 13 '16 at 12:30
My previous comment from 28 of November was not sent fully, so I am repeating it in full: I had just tried qemu -curses, and I see one line on a black screen, saying: 1024x 768 Graphic mode (in blue). And I cannot do anything from this screen,
– Kevin Wilson
Dec 13 '16 at 16:05
My previous comment from 28 of November was not sent fully, so I am repeating it in full: I had just tried qemu -curses, and I see one line on a black screen, saying: 1024x 768 Graphic mode (in blue). And I cannot do anything from this screen,
– Kevin Wilson
Dec 13 '16 at 16:05
add a comment |
1 Answer
1
active
oldest
votes
Try with -vga qxl
(you must modprobe
the qxl
module first), or -vga virtio
.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f854335%2fubuntu-server-and-qemu-could-not-initialize-sdl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try with -vga qxl
(you must modprobe
the qxl
module first), or -vga virtio
.
add a comment |
Try with -vga qxl
(you must modprobe
the qxl
module first), or -vga virtio
.
add a comment |
Try with -vga qxl
(you must modprobe
the qxl
module first), or -vga virtio
.
Try with -vga qxl
(you must modprobe
the qxl
module first), or -vga virtio
.
edited Jan 17 '17 at 2:55
Eliah Kagan
81.5k21227364
81.5k21227364
answered Jan 16 '17 at 23:07
Rami RosenRami Rosen
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2faskubuntu.com%2fquestions%2f854335%2fubuntu-server-and-qemu-could-not-initialize-sdl%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
Have you tried
qemu -curses
? You may also want to try runninggksudo qemu-system-x86_64 <switches>
as well– ThatGuy
Nov 28 '16 at 2:43
I had just tried qemu -curses...
– Kevin Wilson
Nov 28 '16 at 5:28
Poke: three weeks past by. Any ideas about the answer ?
– Kevin Wilson
Dec 13 '16 at 12:30
My previous comment from 28 of November was not sent fully, so I am repeating it in full: I had just tried qemu -curses, and I see one line on a black screen, saying: 1024x 768 Graphic mode (in blue). And I cannot do anything from this screen,
– Kevin Wilson
Dec 13 '16 at 16:05