All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim <jim@suresafe.co.uk>
To: Joerg Roedel <joro@8bytes.org>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Nested Virtualization Of Hyper-V 2K8R2
Date: Tue, 18 Oct 2011 19:28:52 +0100	[thread overview]
Message-ID: <4E9DC564.8010003@suresafe.co.uk> (raw)
In-Reply-To: <20111018163433.GI1512@8bytes.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.


  reply	other threads:[~2011-10-18 18:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E9DC564.8010003@suresafe.co.uk \
    --to=jim@suresafe.co.uk \
    --cc=joro@8bytes.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.