How to install a version of qemu and libvirt that doesn't come with apt-get
I need to install QEMU 2.5.0 and libvirt 1.3.3 to get around Nvidia driver issues (Code 43) when doing GPU passthrough on a windows VM. See first article under troubleshooting in src for details.
I've installed KVM using sudo apt-get install qemu-kvm qemu-utils qemu-efi ovmf libvirt-bin libvirt-de
, they this gives me older versions.
With virsh the version
command prints out:
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
I've fairly new to Ubuntu, so could someone explain how I upgrade or install QEMU 2.5.0 and libvirt 1.3.3 (or a later version)?
apt virtualization kvm versions qemu
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I need to install QEMU 2.5.0 and libvirt 1.3.3 to get around Nvidia driver issues (Code 43) when doing GPU passthrough on a windows VM. See first article under troubleshooting in src for details.
I've installed KVM using sudo apt-get install qemu-kvm qemu-utils qemu-efi ovmf libvirt-bin libvirt-de
, they this gives me older versions.
With virsh the version
command prints out:
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
I've fairly new to Ubuntu, so could someone explain how I upgrade or install QEMU 2.5.0 and libvirt 1.3.3 (or a later version)?
apt virtualization kvm versions qemu
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Maybe try a PPA like launchpad.net/~jacob/+archive/ubuntu/virtualisation, also see askubuntu.com/questions/4983/…
– muru
Aug 4 '17 at 8:08
Thanks, that worked, I added the ppa and upgraded the packages.
– smuseus
Aug 11 '17 at 10:40
add a comment |
I need to install QEMU 2.5.0 and libvirt 1.3.3 to get around Nvidia driver issues (Code 43) when doing GPU passthrough on a windows VM. See first article under troubleshooting in src for details.
I've installed KVM using sudo apt-get install qemu-kvm qemu-utils qemu-efi ovmf libvirt-bin libvirt-de
, they this gives me older versions.
With virsh the version
command prints out:
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
I've fairly new to Ubuntu, so could someone explain how I upgrade or install QEMU 2.5.0 and libvirt 1.3.3 (or a later version)?
apt virtualization kvm versions qemu
I need to install QEMU 2.5.0 and libvirt 1.3.3 to get around Nvidia driver issues (Code 43) when doing GPU passthrough on a windows VM. See first article under troubleshooting in src for details.
I've installed KVM using sudo apt-get install qemu-kvm qemu-utils qemu-efi ovmf libvirt-bin libvirt-de
, they this gives me older versions.
With virsh the version
command prints out:
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
I've fairly new to Ubuntu, so could someone explain how I upgrade or install QEMU 2.5.0 and libvirt 1.3.3 (or a later version)?
apt virtualization kvm versions qemu
apt virtualization kvm versions qemu
asked Aug 4 '17 at 8:01
smuseussmuseus
1613
1613
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Maybe try a PPA like launchpad.net/~jacob/+archive/ubuntu/virtualisation, also see askubuntu.com/questions/4983/…
– muru
Aug 4 '17 at 8:08
Thanks, that worked, I added the ppa and upgraded the packages.
– smuseus
Aug 11 '17 at 10:40
add a comment |
Maybe try a PPA like launchpad.net/~jacob/+archive/ubuntu/virtualisation, also see askubuntu.com/questions/4983/…
– muru
Aug 4 '17 at 8:08
Thanks, that worked, I added the ppa and upgraded the packages.
– smuseus
Aug 11 '17 at 10:40
Maybe try a PPA like launchpad.net/~jacob/+archive/ubuntu/virtualisation, also see askubuntu.com/questions/4983/…
– muru
Aug 4 '17 at 8:08
Maybe try a PPA like launchpad.net/~jacob/+archive/ubuntu/virtualisation, also see askubuntu.com/questions/4983/…
– muru
Aug 4 '17 at 8:08
Thanks, that worked, I added the ppa and upgraded the packages.
– smuseus
Aug 11 '17 at 10:40
Thanks, that worked, I added the ppa and upgraded the packages.
– smuseus
Aug 11 '17 at 10:40
add a comment |
1 Answer
1
active
oldest
votes
It's probably not an issue related to the version you have/had. There's a few changes to your VM's config (xml file) you have to make to workaround nvidia's deliberate attempt to brick VM functionality on their mainstream/non workstation cards. Make sure there's no virtual display attached to the VM with the virt-manager tool, then
Shut down your vm and virt manager
Open up a command prompt and type:
sudo virsh edit vmnamehere
Replace the very first line with:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Scroll to the very end of the config file and right before
</domain>
, insert:
<qemu:commandline>
<qemu:arg value='-cpu'/>
<qemu:arg value='host,hv_time,kvm=off,hv_vendor,hv_vendor_id=null'/>
</qemu:commandline>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Save + exit whatever editor you used
Restart the virt-manager application
This works for me every time. Hope you didn't give up on this, as I see this is an old post. A good way to see if you're doing things right is to try GPU passthrough on an OS that will for sure work, like a Linux / Ubuntu / Debian VM.
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%2f942916%2fhow-to-install-a-version-of-qemu-and-libvirt-that-doesnt-come-with-apt-get%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
It's probably not an issue related to the version you have/had. There's a few changes to your VM's config (xml file) you have to make to workaround nvidia's deliberate attempt to brick VM functionality on their mainstream/non workstation cards. Make sure there's no virtual display attached to the VM with the virt-manager tool, then
Shut down your vm and virt manager
Open up a command prompt and type:
sudo virsh edit vmnamehere
Replace the very first line with:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Scroll to the very end of the config file and right before
</domain>
, insert:
<qemu:commandline>
<qemu:arg value='-cpu'/>
<qemu:arg value='host,hv_time,kvm=off,hv_vendor,hv_vendor_id=null'/>
</qemu:commandline>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Save + exit whatever editor you used
Restart the virt-manager application
This works for me every time. Hope you didn't give up on this, as I see this is an old post. A good way to see if you're doing things right is to try GPU passthrough on an OS that will for sure work, like a Linux / Ubuntu / Debian VM.
add a comment |
It's probably not an issue related to the version you have/had. There's a few changes to your VM's config (xml file) you have to make to workaround nvidia's deliberate attempt to brick VM functionality on their mainstream/non workstation cards. Make sure there's no virtual display attached to the VM with the virt-manager tool, then
Shut down your vm and virt manager
Open up a command prompt and type:
sudo virsh edit vmnamehere
Replace the very first line with:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Scroll to the very end of the config file and right before
</domain>
, insert:
<qemu:commandline>
<qemu:arg value='-cpu'/>
<qemu:arg value='host,hv_time,kvm=off,hv_vendor,hv_vendor_id=null'/>
</qemu:commandline>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Save + exit whatever editor you used
Restart the virt-manager application
This works for me every time. Hope you didn't give up on this, as I see this is an old post. A good way to see if you're doing things right is to try GPU passthrough on an OS that will for sure work, like a Linux / Ubuntu / Debian VM.
add a comment |
It's probably not an issue related to the version you have/had. There's a few changes to your VM's config (xml file) you have to make to workaround nvidia's deliberate attempt to brick VM functionality on their mainstream/non workstation cards. Make sure there's no virtual display attached to the VM with the virt-manager tool, then
Shut down your vm and virt manager
Open up a command prompt and type:
sudo virsh edit vmnamehere
Replace the very first line with:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Scroll to the very end of the config file and right before
</domain>
, insert:
<qemu:commandline>
<qemu:arg value='-cpu'/>
<qemu:arg value='host,hv_time,kvm=off,hv_vendor,hv_vendor_id=null'/>
</qemu:commandline>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Save + exit whatever editor you used
Restart the virt-manager application
This works for me every time. Hope you didn't give up on this, as I see this is an old post. A good way to see if you're doing things right is to try GPU passthrough on an OS that will for sure work, like a Linux / Ubuntu / Debian VM.
It's probably not an issue related to the version you have/had. There's a few changes to your VM's config (xml file) you have to make to workaround nvidia's deliberate attempt to brick VM functionality on their mainstream/non workstation cards. Make sure there's no virtual display attached to the VM with the virt-manager tool, then
Shut down your vm and virt manager
Open up a command prompt and type:
sudo virsh edit vmnamehere
Replace the very first line with:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Scroll to the very end of the config file and right before
</domain>
, insert:
<qemu:commandline>
<qemu:arg value='-cpu'/>
<qemu:arg value='host,hv_time,kvm=off,hv_vendor,hv_vendor_id=null'/>
</qemu:commandline>
(You can find the code here: https://paste.ubuntu.com/p/HtXhxTTvjS/)
Save + exit whatever editor you used
Restart the virt-manager application
This works for me every time. Hope you didn't give up on this, as I see this is an old post. A good way to see if you're doing things right is to try GPU passthrough on an OS that will for sure work, like a Linux / Ubuntu / Debian VM.
edited Oct 14 '18 at 0:48
pomsky
31.3k1194127
31.3k1194127
answered Oct 14 '18 at 0:22
Daniel Van DonselDaniel Van Donsel
11
11
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.
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%2f942916%2fhow-to-install-a-version-of-qemu-and-libvirt-that-doesnt-come-with-apt-get%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
Maybe try a PPA like launchpad.net/~jacob/+archive/ubuntu/virtualisation, also see askubuntu.com/questions/4983/…
– muru
Aug 4 '17 at 8:08
Thanks, that worked, I added the ppa and upgraded the packages.
– smuseus
Aug 11 '17 at 10:40