Skip to contentSkip to conversation

Running KVM inside a KVM guest.

DISCUSSION jd 2 participants 5 messages Oct 13, 2008 – Nov 17, 2008 KVM

lore
Share & tools
lore

jd

author
#0 lore raw

Hi
Is it possible to install and use KVM in a guest VM ? I need this for testing so, a reasonable performance is fine.

Anyone who has tried this ? Any known gotchas, workarounds ? Any particular version of KVM required ?

Thanks
/Jd

#1 lore raw

Hi jd,

Quoted 3 lines · jd

Hi
Is it possible to install and use KVM in a guest VM ? I need this
for testing so, a reasonable performance is fine.

Yes, with AMD CPUs and my "nested KVM" patchset. I am planning to improve it this week (if my tooth operation goes well :-(), so we can finally get it upstream :-). I sent v3 about 3 weeks ago, just search for it in the archives. You also need to take Joerg's patch to emulate the VM_CR MSR. That particular patch is in a follow-up mail of v3.

Quoted 2 lines

Anyone who has tried this ? Any known gotchas, workarounds ? Any
particular version of KVM required ?

SMP doesn't work and Ubuntu's timestamp stays at 0 on bootup. That's all issues that should concern you atm.

Alex

author
#2 lore raw

Hi Alex,
Wish u good luck for your operation.
Good to hear that this is possible and on AMD, as I have one AMD machine that I can play around with. I will try it out when I get a chance.

Thanks
/Jd

Quoted 34 lines · Alexander Graf

From: Alexander Graf <[email protected]>
Subject: Re: Running KVM inside a KVM guest.
To: [email protected]
Cc: "KVM List" <[email protected]>
Date: Tuesday, October 14, 2008, 12:58 AM Hi jd,

Quoted 2 lines · jd

Hi
Is it possible to install and use KVM in a guest VM ?

I need this

Quoted 1 line

for testing so, a reasonable performance is fine.

Yes, with AMD CPUs and my "nested KVM" patchset.
I am planning to
improve it this week (if my tooth operation goes well :-(), so we can
finally get it upstream :-). I sent v3 about 3 weeks ago, just search
for it in the archives.
You also need to take Joerg's patch to emulate the VM_CR MSR. That
particular patch is in a follow-up mail of v3.

Quoted 1 line

Anyone who has tried this ? Any known gotchas,

workarounds ? Any

Quoted 1 line

particular version of KVM required ?

SMP doesn't work and Ubuntu's timestamp stays at 0 on bootup. That's
all issues that should concern you atm.

Alex

author
#3 lore raw
In reply to Alexander Graf

Hi Alex
Hope your tooth op went smoothly.
Did u get a chance to put up your new version of the nested KVM patch ?
I am on KVM-70... can u tell me in bit more details on how I can go about getting your patches and Joerg's patch applied.
-- What versions of KVM are these patches expected to work with ?
-- Any sequencing or they are non-overlapping.
-- Do I need to upgrade to some later version of KVM ?
-- Are these patches already part of KVM-78 ?

Thanks
/Jd

Quoted 37 lines · Alexander Graf

From: Alexander Graf <[email protected]>
Subject: Re: Running KVM inside a KVM guest.
To: [email protected]
Cc: "KVM List" <[email protected]>
Date: Tuesday, October 14, 2008, 12:58 AM
Hi jd,

Quoted 2 lines · jd

Hi
Is it possible to install and use KVM in a guest VM ?

I need this for testing so, a reasonable performance is fine.

Yes, with AMD CPUs and my "nested KVM" patchset.
I am planning to improve it this week (if my tooth operation goes well :-(), so we can finally get it upstream :-). I sent v3 about 3 weeks ago, just search for it in the archives.
You also need to take Joerg's patch to emulate the VM_CR MSR. That particular patch is in a follow-up mail of v3.

Quoted 1 line

Anyone who has tried this ? Any known gotchas,

workarounds ? Any particular version of KVM required ?

SMP doesn't work and Ubuntu's timestamp stays at 0 on bootup. That's all issues that should concern you atm.

Alex
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html

#4 lore raw

Hey Jd,

Quoted 4 lines · jd

Hi Alex
Hope your tooth op went smoothly.
Did u get a chance to put up your new version of the nested KVM
patch ?

I'm still working on it. I'll post a new version this week that I'll try to accelerate a bit further.

Quoted 3 lines

I am on KVM-70... can u tell me in bit more details on how I can
go about getting your patches and Joerg's patch applied.
-- What versions of KVM are these patches expected to work with ?

Always against current git. But with a bit of fiddling you should be able to get it working with "moderately recent" versions too. The SVM code hasn't changed that much for quite a while - the files just moved.

Quoted 1 line

-- Any sequencing or they are non-overlapping.

Sequencing is in the subjects.

Quoted 2 lines

-- Do I need to upgrade to some later version of KVM ? -- Are these patches already part of KVM-78 ?

No. As soon as they are merged to git, they'll show up in the next snapshot.

Alex

Quoted 48 lines

Thanks
/Jd

Quoted 37 lines · Alexander Graf

From: Alexander Graf <[email protected]>
Subject: Re: Running KVM inside a KVM guest.
To: [email protected]
Cc: "KVM List" <[email protected]>
Date: Tuesday, October 14, 2008, 12:58 AM
Hi jd,

Quoted 2 lines · jd

Hi
Is it possible to install and use KVM in a guest VM ?

I need this for testing so, a reasonable performance is fine.

Yes, with AMD CPUs and my "nested KVM" patchset.
I am planning to improve it this week (if my tooth operation goes well :-(), so we can finally get it upstream :-). I sent v3 about 3 weeks ago, just search for it in the archives.
You also need to take Joerg's patch to emulate the VM_CR MSR. That particular patch is in a follow-up mail of v3.

Quoted 1 line

Anyone who has tried this ? Any known gotchas,

workarounds ? Any particular version of KVM required ?

SMP doesn't work and Ubuntu's timestamp stays at 0 on bootup. That's all issues that should concern you atm.

Alex
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html