From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Subject: Re: Nested Virtualization Of Hyper-V 2K8R2 Date: Wed, 19 Oct 2011 16:07:47 +0100 Message-ID: <4E9EE7C3.70407@suresafe.co.uk> References: <4E9D643F.5070608@suresafe.co.uk> <20111018163433.GI1512@8bytes.org> <4E9DC564.8010003@suresafe.co.uk> <20111019141908.GJ1512@8bytes.org> <4E9EE787.30700@suresafe.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: "kvm@vger.kernel.org" Return-path: Received: from mail.networksystemssolutions.co.uk ([84.234.21.55]:48529 "EHLO mail.networksystemssolutions.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752839Ab1JSPII (ORCPT ); Wed, 19 Oct 2011 11:08:08 -0400 Received: from gate (unknown [192.168.1.25]) by mail.networksystemssolutions.co.uk (Postfix) with ESMTP id 32A3C20199DE for ; Wed, 19 Oct 2011 16:07:48 +0100 (BST) Received: from office.local.site (unknown [192.168.2.3]) by gate (Postfix) with ESMTP id DFC9B1A70B for ; Wed, 19 Oct 2011 16:07:47 +0100 (BST) Received: from [192.168.35.35] (unknown [192.168.35.35]) by office.local.site (Postfix) with ESMTP id 9F369E8B49A08 for ; Wed, 19 Oct 2011 16:07:47 +0100 (BST) In-Reply-To: <4E9EE787.30700@suresafe.co.uk> Sender: kvm-owner@vger.kernel.org List-ID: 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.