* Nested Virtualization Of Hyper-V 2K8R2
@ 2011-10-18 11:34 Jim
2011-10-18 11:43 ` Avi Kivity
2011-10-18 16:34 ` Joerg Roedel
0 siblings, 2 replies; 11+ messages in thread
From: Jim @ 2011-10-18 11:34 UTC (permalink / raw)
To: kvm@vger.kernel.org
Hi,
I've worked with KVM for quite a while now but have come across a
problem when trying to run some W2K8R2 VMs where I want to also run
Hyper-V on those VMs - nested virtualization.
I've researched and checked the obvious AMD processor with the enable
nested flag, running a kvm guest with the nesting support enabled etc.
which did allow me to add the Hyper-V role to the VM but when it
reboots, the machine hardware lists a problem with the VM machine bus
and no hyper-v VMs can be created.
From what I've read through from lurking on the list and reading the
archives, I'm not sure whether the problem is that KVM is not ready to
support Hyper-V yet or if I'm doing it wrong.
I'd be very thankful if someone could say if I'm hoping for too much
right now or point me where to go to find some details on what I'm
doing wrong and how to do it right.
Thanks
Jim
----------------------------------------------------------------------
All e-mail and telephone communications are subject to Suresafe Terms
And Conditions and may be monitored, recorded and processed for the
purposes contained therein and adherence to regulatory and legal
requirements.
Your further communication or reply to this e-mail indicates your
acceptance of this.
Any views or opinions expressed are the responsibility of the author
and may not reflect those of Suresafe Protection Limited.
Suresafe Protection Limited is registered in Scotland, number SC132827
The registered office is at 8 Kelvin Road, Cumbernauld, G67 2BA.
Telephone: 01236 727792 Fax: 01236 723301 VAT Number: 556 6950 02
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-18 11:34 Nested Virtualization Of Hyper-V 2K8R2 Jim
@ 2011-10-18 11:43 ` Avi Kivity
2011-10-18 12:00 ` Jim
2011-10-18 16:34 ` Joerg Roedel
1 sibling, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2011-10-18 11:43 UTC (permalink / raw)
To: Jim; +Cc: kvm@vger.kernel.org
On 10/18/2011 01:34 PM, Jim wrote:
> Hi,
>
> I've worked with KVM for quite a while now but have come across a
> problem when trying to run some W2K8R2 VMs where I want to also run
> Hyper-V on those VMs - nested virtualization.
>
> I've researched and checked the obvious AMD processor with the enable
> nested flag, running a kvm guest with the nesting support enabled etc.
> which did allow me to add the Hyper-V role to the VM but when it
> reboots, the machine hardware lists a problem with the VM machine bus
> and no hyper-v VMs can be created.
What's the error message?
>
> From what I've read through from lurking on the list and reading the
> archives, I'm not sure whether the problem is that KVM is not ready to
> support Hyper-V yet or if I'm doing it wrong.
>
> I'd be very thankful if someone could say if I'm hoping for too much
> right now or point me where to go to find some details on what I'm
> doing wrong and how to do it right.
It's likely a kvm bug.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-18 11:43 ` Avi Kivity
@ 2011-10-18 12:00 ` Jim
2011-10-18 13:22 ` Avi Kivity
0 siblings, 1 reply; 11+ messages in thread
From: Jim @ 2011-10-18 12:00 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm@vger.kernel.org
Hi Avi,
There are 2 errors listed on the device manager.
1. Virtual Machine Bus : Windows cannot load the device driver for this
hardware. The driver may be corrupted or missing (Code 39)
Driver details are listed as version 6.1.7601.17617, date 6/21/2006
signed by Microsoft
2. Virtualization Infrastructure Driver : Windows cannot load the device
driver for this hardware. The driver may be corrupted or missing (Code 39)
Driver details are listed as version 6.1.7601.17514, date 6/21/2006
signed by Microsoft
Jim
On 18/10/2011 12:43, Avi Kivity wrote:
> On 10/18/2011 01:34 PM, Jim wrote:
>> Hi,
>>
>> I've worked with KVM for quite a while now but have come across a
>> problem when trying to run some W2K8R2 VMs where I want to also run
>> Hyper-V on those VMs - nested virtualization.
>>
>> I've researched and checked the obvious AMD processor with the enable
>> nested flag, running a kvm guest with the nesting support enabled etc.
>> which did allow me to add the Hyper-V role to the VM but when it
>> reboots, the machine hardware lists a problem with the VM machine bus
>> and no hyper-v VMs can be created.
> What's the error message?
>
>> From what I've read through from lurking on the list and reading the
>> archives, I'm not sure whether the problem is that KVM is not ready to
>> support Hyper-V yet or if I'm doing it wrong.
>>
>> I'd be very thankful if someone could say if I'm hoping for too much
>> right now or point me where to go to find some details on what I'm
>> doing wrong and how to do it right.
> It's likely a kvm bug.
>
>
----------------------------------------------------------------------
All e-mail and telephone communications are subject to Suresafe Terms
And Conditions and may be monitored, recorded and processed for the
purposes contained therein and adherence to regulatory and legal
requirements.
Your further communication or reply to this e-mail indicates your
acceptance of this.
Any views or opinions expressed are the responsibility of the author
and may not reflect those of Suresafe Protection Limited.
Suresafe Protection Limited is registered in Scotland, number SC132827
The registered office is at 8 Kelvin Road, Cumbernauld, G67 2BA.
Telephone: 01236 727792 Fax: 01236 723301 VAT Number: 556 6950 02
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-18 12:00 ` Jim
@ 2011-10-18 13:22 ` Avi Kivity
[not found] ` <CAH-QgcacEPF_9QCsrmi-1bH_xC76nrUE8EPuDqSBhnDH6OQeaQ@mail.gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2011-10-18 13:22 UTC (permalink / raw)
To: Jim; +Cc: kvm@vger.kernel.org
On 10/18/2011 02:00 PM, Jim wrote:
> Hi Avi,
>
> There are 2 errors listed on the device manager.
>
> 1. Virtual Machine Bus : Windows cannot load the device driver for
> this hardware. The driver may be corrupted or missing (Code 39)
>
> Driver details are listed as version 6.1.7601.17617, date 6/21/2006
> signed by Microsoft
>
> 2. Virtualization Infrastructure Driver : Windows cannot load the
> device driver for this hardware. The driver may be corrupted or
> missing (Code 39)
>
> Driver details are listed as version 6.1.7601.17514, date 6/21/2006
> signed by Microsoft
Well, no idea. It will have to wait until someone takes the time to
debug it.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
[not found] ` <CAH-QgcacEPF_9QCsrmi-1bH_xC76nrUE8EPuDqSBhnDH6OQeaQ@mail.gmail.com>
@ 2011-10-18 15:46 ` Avi Kivity
2011-10-18 16:21 ` Jim
0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2011-10-18 15:46 UTC (permalink / raw)
To: Brian Kelly; +Cc: Jim, kvm@vger.kernel.org
On 10/18/2011 04:57 PM, Brian Kelly wrote:
> From msft - hyperv cpu requirements:
> *Processor *: x64 compatible processor with Intel VT or AMD-V
> technology enabled.
> Hardware Data Execution Prevention (DEP), specifically Intel XD bit
> (execute disable bit) or AMD NX bit (no execute bit), must be
> available and enabled.
>
> Are these enabled for guests when -enable-nesting is used?
>
Yes.
> On Tue, Oct 18, 2011 at 9:22 AM, Avi Kivity <avi@redhat.com
> <mailto:avi@redhat.com>> wrote:
>
> On 10/18/2011 02:00 PM, Jim wrote:
> > Hi Avi,
> >
> > There are 2 errors listed on the device manager.
> >
> > 1. Virtual Machine Bus : Windows cannot load the device driver for
> > this hardware. The driver may be corrupted or missing (Code 39)
> >
> > Driver details are listed as version 6.1.7601.17617, date 6/21/2006
> > signed by Microsoft
> >
> > 2. Virtualization Infrastructure Driver : Windows cannot load the
> > device driver for this hardware. The driver may be corrupted or
> > missing (Code 39)
> >
> > Driver details are listed as version 6.1.7601.17514, date 6/21/2006
> > signed by Microsoft
>
> Well, no idea. It will have to wait until someone takes the time to
> debug it.
>
> --
> error compiling committee.c: too many arguments to function
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> <mailto:majordomo@vger.kernel.org>
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
>
> --
> Email: kelly.brianx@gmail.com <mailto:kelly.brianx@gmail.com>
> Voice: (908) 514-8478
> Fax: (201) 221-8269
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-18 15:46 ` Avi Kivity
@ 2011-10-18 16:21 ` Jim
0 siblings, 0 replies; 11+ messages in thread
From: Jim @ 2011-10-18 16:21 UTC (permalink / raw)
To: kvm@vger.kernel.org
OK, this sounds like I am doing it wrong then.
The system is a Quad-Core AMD Opteron(tm) Processor 1354 running Ubuntu
11.04 server with kernel 2.6.38.
The KVM starts with -enable-nesting and a ps of the running process
shows this is set. The Hyper-V role would not install until the
-enable-nesting was appended to the command line, so I was using this as
the confirmation nested virtualization was active.
I have tried the VM with 1 vcpu and with 2 vcpu and also with the -no
options from http://www.linux-kvm.org/page/Bugs.
Is this the Ubuntu version of KVM is too old for what I am trying to do ?
Jim
On 18/10/2011 16:46, Avi Kivity wrote:
> On 10/18/2011 04:57 PM, Brian Kelly wrote:
>> From msft - hyperv cpu requirements:
>> *Processor *: x64 compatible processor with Intel VT or AMD-V
>> technology enabled.
>> Hardware Data Execution Prevention (DEP), specifically Intel XD bit
>> (execute disable bit) or AMD NX bit (no execute bit), must be
>> available and enabled.
>>
>> Are these enabled for guests when -enable-nesting is used?
>>
> Yes.
>
>> On Tue, Oct 18, 2011 at 9:22 AM, Avi Kivity<avi@redhat.com
>> <mailto:avi@redhat.com>> wrote:
>>
>> On 10/18/2011 02:00 PM, Jim wrote:
>> > Hi Avi,
>> >
>> > There are 2 errors listed on the device manager.
>> >
>> > 1. Virtual Machine Bus : Windows cannot load the device driver for
>> > this hardware. The driver may be corrupted or missing (Code 39)
>> >
>> > Driver details are listed as version 6.1.7601.17617, date 6/21/2006
>> > signed by Microsoft
>> >
>> > 2. Virtualization Infrastructure Driver : Windows cannot load the
>> > device driver for this hardware. The driver may be corrupted or
>> > missing (Code 39)
>> >
>> > Driver details are listed as version 6.1.7601.17514, date 6/21/2006
>> > signed by Microsoft
>>
>> Well, no idea. It will have to wait until someone takes the time to
>> debug it.
>>
>> --
>> error compiling committee.c: too many arguments to function
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> <mailto:majordomo@vger.kernel.org>
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>>
>>
>> --
>> Email: kelly.brianx@gmail.com<mailto:kelly.brianx@gmail.com>
>> Voice: (908) 514-8478
>> Fax: (201) 221-8269
>
----------------------------------------------------------------------
All e-mail and telephone communications are subject to Suresafe Terms
And Conditions and may be monitored, recorded and processed for the
purposes contained therein and adherence to regulatory and legal
requirements.
Your further communication or reply to this e-mail indicates your
acceptance of this.
Any views or opinions expressed are the responsibility of the author
and may not reflect those of Suresafe Protection Limited.
Suresafe Protection Limited is registered in Scotland, number SC132827
The registered office is at 8 Kelvin Road, Cumbernauld, G67 2BA.
Telephone: 01236 727792 Fax: 01236 723301 VAT Number: 556 6950 02
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-18 11:34 Nested Virtualization Of Hyper-V 2K8R2 Jim
2011-10-18 11:43 ` Avi Kivity
@ 2011-10-18 16:34 ` Joerg Roedel
2011-10-18 18:28 ` Jim
1 sibling, 1 reply; 11+ messages in thread
From: Joerg Roedel @ 2011-10-18 16:34 UTC (permalink / raw)
To: Jim; +Cc: kvm@vger.kernel.org
Hi Jim,
On Tue, Oct 18, 2011 at 12:34:23PM +0100, Jim wrote:
> I've worked with KVM for quite a while now but have come across a
> problem when trying to run some W2K8R2 VMs where I want to also run
> Hyper-V on those VMs - nested virtualization.
>
> I've researched and checked the obvious AMD processor with the enable
> nested flag, running a kvm guest with the nesting support enabled etc.
> which did allow me to add the Hyper-V role to the VM but when it
> reboots, the machine hardware lists a problem with the VM machine bus
> and no hyper-v VMs can be created.
Can you share the qemu command line you used to start the VM?
> From what I've read through from lurking on the list and reading the
> archives, I'm not sure whether the problem is that KVM is not ready to
> support Hyper-V yet or if I'm doing it wrong.
>
> I'd be very thankful if someone could say if I'm hoping for too much
> right now or point me where to go to find some details on what I'm
> doing wrong and how to do it right.
I also had issues with Hyper-V. But at least the root-domain should boot
up without problems. I also started a Linux guest inside but that got
stuck at some point in the kernel boot process. I havn't debugged that
further yet, though.
Joerg
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-18 16:34 ` Joerg Roedel
@ 2011-10-18 18:28 ` Jim
2011-10-19 14:19 ` Joerg Roedel
0 siblings, 1 reply; 11+ messages in thread
From: Jim @ 2011-10-18 18:28 UTC (permalink / raw)
To: Joerg Roedel; +Cc: kvm@vger.kernel.org
Hi Joerg,
Sure, the KVM command is :
/usr/bin/kvm -enable-nesting -no-kvm-irqchip -S -M pc-0.14 -enable-kvm
-m 2048 -smp 2,sockets=2,cores=1,threads=1 -name hyperv1 -uuid
8c5d8f1f-5767-b388-d408-1b53a1b66e72 -nodefconfig -nodefaults -chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/hyperv1.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=readline -rtc base=localtime
-no-reboot -boot d -drive
file=/srv/hyperv/hyperv1.vmimg,if=none,id=drive-ide0-0-0,format=raw
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
-drive
file=/srv/virtual-machines/fromiscsi/iso/W2K8ENTR2SP1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
-drive
file=/srv/virtual-machines/fromiscsi/iso/virtio-win-1.1.16.iso,if=none,media=cdrom,id=drive-ide0-1-1,readonly=on,format=raw
-device ide-drive,bus=ide.1,unit=1,drive=drive-ide0-1-1,id=ide0-1-1
-netdev tap,fd=17,id=hostnet0 -device
rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:2a:be:2f,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device
isa-serial,chardev=charserial0,id=serial0 -usb -device
usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga std -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
This is started via virsh.
Jim
On 18/10/2011 17:34, Joerg Roedel wrote:
> Hi Jim,
>
> On Tue, Oct 18, 2011 at 12:34:23PM +0100, Jim wrote:
>> I've worked with KVM for quite a while now but have come across a
>> problem when trying to run some W2K8R2 VMs where I want to also run
>> Hyper-V on those VMs - nested virtualization.
>>
>> I've researched and checked the obvious AMD processor with the enable
>> nested flag, running a kvm guest with the nesting support enabled etc.
>> which did allow me to add the Hyper-V role to the VM but when it
>> reboots, the machine hardware lists a problem with the VM machine bus
>> and no hyper-v VMs can be created.
> Can you share the qemu command line you used to start the VM?
>
>> From what I've read through from lurking on the list and reading the
>> archives, I'm not sure whether the problem is that KVM is not ready to
>> support Hyper-V yet or if I'm doing it wrong.
>>
>> I'd be very thankful if someone could say if I'm hoping for too much
>> right now or point me where to go to find some details on what I'm
>> doing wrong and how to do it right.
> I also had issues with Hyper-V. But at least the root-domain should boot
> up without problems. I also started a Linux guest inside but that got
> stuck at some point in the kernel boot process. I havn't debugged that
> further yet, though.
>
>
> Joerg
>
>
----------------------------------------------------------------------
All e-mail and telephone communications are subject to Suresafe Terms
And Conditions and may be monitored, recorded and processed for the
purposes contained therein and adherence to regulatory and legal
requirements.
Your further communication or reply to this e-mail indicates your
acceptance of this.
Any views or opinions expressed are the responsibility of the author
and may not reflect those of Suresafe Protection Limited.
Suresafe Protection Limited is registered in Scotland, number SC132827
The registered office is at 8 Kelvin Road, Cumbernauld, G67 2BA.
Telephone: 01236 727792 Fax: 01236 723301 VAT Number: 556 6950 02
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-18 18:28 ` Jim
@ 2011-10-19 14:19 ` Joerg Roedel
[not found] ` <4E9EE787.30700@suresafe.co.uk>
0 siblings, 1 reply; 11+ messages in thread
From: Joerg Roedel @ 2011-10-19 14:19 UTC (permalink / raw)
To: Jim; +Cc: kvm@vger.kernel.org
Hi Jim,
On Tue, Oct 18, 2011 at 07:28:52PM +0100, Jim wrote:
> Sure, the KVM command is :
>
> /usr/bin/kvm -enable-nesting -no-kvm-irqchip -S -M pc-0.14 -enable-kvm
> -m 2048 -smp 2,sockets=2,cores=1,threads=1 -name hyperv1 -uuid
> 8c5d8f1f-5767-b388-d408-1b53a1b66e72 -nodefconfig -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/hyperv1.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=localtime
> -no-reboot -boot d -drive
> file=/srv/hyperv/hyperv1.vmimg,if=none,id=drive-ide0-0-0,format=raw
> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
> -drive
> file=/srv/virtual-machines/fromiscsi/iso/W2K8ENTR2SP1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw
> -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
> -drive
> file=/srv/virtual-machines/fromiscsi/iso/virtio-win-1.1.16.iso,if=none,media=cdrom,id=drive-ide0-1-1,readonly=on,format=raw
> -device ide-drive,bus=ide.1,unit=1,drive=drive-ide0-1-1,id=ide0-1-1
> -netdev tap,fd=17,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:2a:be:2f,bus=pci.0,addr=0x3
> -chardev pty,id=charserial0 -device
> isa-serial,chardev=charserial0,id=serial0 -usb -device
> usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga std -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
This is missing a -cpu parameter. Please try again with adding
'-cpu phenom,-hv'. This is the combination I used during testing and
development.
Joerg
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
[not found] ` <4E9EE787.30700@suresafe.co.uk>
@ 2011-10-19 15:07 ` Jim
2011-10-24 11:13 ` Jim
0 siblings, 1 reply; 11+ messages in thread
From: Jim @ 2011-10-19 15:07 UTC (permalink / raw)
To: kvm@vger.kernel.org
On 19/10/2011 16:06, Jim wrote:
> Hi Joerg,
>
> I added the -cpu phenom,-hv but it made no difference. I then tried
> to call it from the command line (rather then via virsh) and get this :
>
> # /usr/bin/kvm -cpu phenom,-hv
> *CPU feature hv not found*
>
>
> I played around a little and found 'svm' seemed to be a supported cpu
> flag but both +svm and -svm made no difference either. Alas kvm -cpu
> ? only listed CPUs and not the options the various ones support.
>
> Am I on too low a version of kvm perhaps ? This is an Ubuntu 11.04
> server system and I've just used the Ubuntu packages - I did not build
> kvm myself.
>
> Thanks
> Jim
>
> My CPU reports as :
>
> *processor : 0-3 i.e. 4 cores*
> vendor_id : AuthenticAMD
> cpu family : 16
> model : 2
> model name : Quad-Core AMD Opteron(tm) Processor 1354
> stepping : 3
> cpu MHz : 1100.000
> cache size : 512 KB
> physical id : 0
> siblings : 4
> core id : 3
> cpu cores : 4
> apicid : 3
> initial apicid : 3
> fpu : yes
> fpu_exception : yes
> cpuid level : 5
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl
> nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm
> extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs npt
> lbrv svm_lock
> bogomips : 4400.04
> TLB size : 1024 4K pages
> clflush size : 64
> cache_alignment : 64
> address sizes : 48 bits physical, 48 bits virtual
> power management: ts ttp tm stc 100mhzsteps hwpstate
>
>
>
> On 19/10/2011 15:19, Joerg Roedel wrote:
>> Hi Jim,
>>
>> On Tue, Oct 18, 2011 at 07:28:52PM +0100, Jim wrote:
>>> Sure, the KVM command is :
>>>
>>> /usr/bin/kvm -enable-nesting -no-kvm-irqchip -S -M pc-0.14 -enable-kvm
>>> -m 2048 -smp 2,sockets=2,cores=1,threads=1 -name hyperv1 -uuid
>>> 8c5d8f1f-5767-b388-d408-1b53a1b66e72 -nodefconfig -nodefaults -chardev
>>> socket,id=charmonitor,path=/var/lib/libvirt/qemu/hyperv1.monitor,server,nowait
>>> -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=localtime
>>> -no-reboot -boot d -drive
>>> file=/srv/hyperv/hyperv1.vmimg,if=none,id=drive-ide0-0-0,format=raw
>>> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
>>> -drive
>>> file=/srv/virtual-machines/fromiscsi/iso/W2K8ENTR2SP1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw
>>> -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
>>> -drive
>>> file=/srv/virtual-machines/fromiscsi/iso/virtio-win-1.1.16.iso,if=none,media=cdrom,id=drive-ide0-1-1,readonly=on,format=raw
>>> -device ide-drive,bus=ide.1,unit=1,drive=drive-ide0-1-1,id=ide0-1-1
>>> -netdev tap,fd=17,id=hostnet0 -device
>>> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:2a:be:2f,bus=pci.0,addr=0x3
>>> -chardev pty,id=charserial0 -device
>>> isa-serial,chardev=charserial0,id=serial0 -usb -device
>>> usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga std -device
>>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
>> This is missing a -cpu parameter. Please try again with adding
>> '-cpu phenom,-hv'. This is the combination I used during testing and
>> development.
>>
>>
>> Joerg
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message tomajordomo@vger.kernel.org
>> More majordomo info athttp://vger.kernel.org/majordomo-info.html
>>
----------------------------------------------------------------------
All e-mail and telephone communications are subject to Suresafe Terms
And Conditions and may be monitored, recorded and processed for the
purposes contained therein and adherence to regulatory and legal
requirements.
Your further communication or reply to this e-mail indicates your
acceptance of this.
Any views or opinions expressed are the responsibility of the author
and may not reflect those of Suresafe Protection Limited.
Suresafe Protection Limited is registered in Scotland, number SC132827
The registered office is at 8 Kelvin Road, Cumbernauld, G67 2BA.
Telephone: 01236 727792 Fax: 01236 723301 VAT Number: 556 6950 02
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Nested Virtualization Of Hyper-V 2K8R2
2011-10-19 15:07 ` Jim
@ 2011-10-24 11:13 ` Jim
0 siblings, 0 replies; 11+ messages in thread
From: Jim @ 2011-10-24 11:13 UTC (permalink / raw)
To: kvm@vger.kernel.org
Hi
Anyone got any further ideas on how I get the Hyper-V guest to work ?
My kvm is 0.14 (Ubuntu 11.04 Server) - is this just too old ?
Jim
On 19/10/2011 16:07, Jim wrote:
>
>
> On 19/10/2011 16:06, Jim wrote:
>> Hi Joerg,
>>
>> I added the -cpu phenom,-hv but it made no difference. I then tried
>> to call it from the command line (rather then via virsh) and get this :
>>
>> # /usr/bin/kvm -cpu phenom,-hv
>> *CPU feature hv not found*
>>
>>
>> I played around a little and found 'svm' seemed to be a supported cpu
>> flag but both +svm and -svm made no difference either. Alas kvm -cpu
>> ? only listed CPUs and not the options the various ones support.
>>
>> Am I on too low a version of kvm perhaps ? This is an Ubuntu 11.04
>> server system and I've just used the Ubuntu packages - I did not
>> build kvm myself.
>>
>> Thanks
>> Jim
>>
>> My CPU reports as :
>>
>> *processor : 0-3 i.e. 4 cores*
>> vendor_id : AuthenticAMD
>> cpu family : 16
>> model : 2
>> model name : Quad-Core AMD Opteron(tm) Processor 1354
>> stepping : 3
>> cpu MHz : 1100.000
>> cache size : 512 KB
>> physical id : 0
>> siblings : 4
>> core id : 3
>> cpu cores : 4
>> apicid : 3
>> initial apicid : 3
>> fpu : yes
>> fpu_exception : yes
>> cpuid level : 5
>> wp : yes
>> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
>> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
>> fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl
>> nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy
>> svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
>> npt lbrv svm_lock
>> bogomips : 4400.04
>> TLB size : 1024 4K pages
>> clflush size : 64
>> cache_alignment : 64
>> address sizes : 48 bits physical, 48 bits virtual
>> power management: ts ttp tm stc 100mhzsteps hwpstate
>>
>>
>>
>> On 19/10/2011 15:19, Joerg Roedel wrote:
>>> Hi Jim,
>>>
>>> On Tue, Oct 18, 2011 at 07:28:52PM +0100, Jim wrote:
>>>> Sure, the KVM command is :
>>>>
>>>> /usr/bin/kvm -enable-nesting -no-kvm-irqchip -S -M pc-0.14 -enable-kvm
>>>> -m 2048 -smp 2,sockets=2,cores=1,threads=1 -name hyperv1 -uuid
>>>> 8c5d8f1f-5767-b388-d408-1b53a1b66e72 -nodefconfig -nodefaults -chardev
>>>> socket,id=charmonitor,path=/var/lib/libvirt/qemu/hyperv1.monitor,server,nowait
>>>>
>>>> -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=localtime
>>>> -no-reboot -boot d -drive
>>>> file=/srv/hyperv/hyperv1.vmimg,if=none,id=drive-ide0-0-0,format=raw
>>>> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
>>>> -drive
>>>> file=/srv/virtual-machines/fromiscsi/iso/W2K8ENTR2SP1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw
>>>>
>>>> -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
>>>> -drive
>>>> file=/srv/virtual-machines/fromiscsi/iso/virtio-win-1.1.16.iso,if=none,media=cdrom,id=drive-ide0-1-1,readonly=on,format=raw
>>>>
>>>> -device ide-drive,bus=ide.1,unit=1,drive=drive-ide0-1-1,id=ide0-1-1
>>>> -netdev tap,fd=17,id=hostnet0 -device
>>>> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:2a:be:2f,bus=pci.0,addr=0x3
>>>>
>>>> -chardev pty,id=charserial0 -device
>>>> isa-serial,chardev=charserial0,id=serial0 -usb -device
>>>> usb-tablet,id=input0 -vnc 127.0.0.1:0 -vga std -device
>>>> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
>>> This is missing a -cpu parameter. Please try again with adding
>>> '-cpu phenom,-hv'. This is the combination I used during testing and
>>> development.
>>>
>>>
>>> Joerg
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>>> the body of a message tomajordomo@vger.kernel.org
>>> More majordomo info athttp://vger.kernel.org/majordomo-info.html
>>>
----------------------------------------------------------------------
All e-mail and telephone communications are subject to Suresafe Terms
And Conditions and may be monitored, recorded and processed for the
purposes contained therein and adherence to regulatory and legal
requirements.
Your further communication or reply to this e-mail indicates your
acceptance of this.
Any views or opinions expressed are the responsibility of the author
and may not reflect those of Suresafe Protection Limited.
Suresafe Protection Limited is registered in Scotland, number SC132827
The registered office is at 8 Kelvin Road, Cumbernauld, G67 2BA.
Telephone: 01236 727792 Fax: 01236 723301 VAT Number: 556 6950 02
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-10-24 11:13 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 11:34 Nested Virtualization Of Hyper-V 2K8R2 Jim
2011-10-18 11:43 ` Avi Kivity
2011-10-18 12:00 ` Jim
2011-10-18 13:22 ` Avi Kivity
[not found] ` <CAH-QgcacEPF_9QCsrmi-1bH_xC76nrUE8EPuDqSBhnDH6OQeaQ@mail.gmail.com>
2011-10-18 15:46 ` Avi Kivity
2011-10-18 16:21 ` Jim
2011-10-18 16:34 ` Joerg Roedel
2011-10-18 18:28 ` Jim
2011-10-19 14:19 ` Joerg Roedel
[not found] ` <4E9EE787.30700@suresafe.co.uk>
2011-10-19 15:07 ` Jim
2011-10-24 11:13 ` Jim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).