From owner-freebsd-virtualization@FreeBSD.ORG Tue Jul 2 23:54:13 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9C0812D0 for ; Tue, 2 Jul 2013 23:54:13 +0000 (UTC) (envelope-from avollmerhaus@googlemail.com) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) by mx1.freebsd.org (Postfix) with ESMTP id 31E701C86 for ; Tue, 2 Jul 2013 23:54:12 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id f11so5210650wgh.27 for ; Tue, 02 Jul 2013 16:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=JFwFLzn3mMQoIC36TU9ZrfAcfsh/gc1tt1DwuJV8RyU=; b=rVfVUGm/fJwBZ+LQbYlfT3xHCFHvsvpfrzxU7GQ8gokbIXbNhjcCOY7kqhCRPzpgvr seazwBP1NDpyCATK696hOEfvqNMpFdN0YVxGZLOmrjT4OUwVbL5vikBIF1yTodYGq18d 7ZhphteualrBUkv3VzQPPQxV2k2j9l0+Hh9zqkZPhIYb5+1RPGjnp+T6Ca9kMM1nb7F/ rAV6S4UEppA+QBO2T28OMGEAqJGKtFM3qVPE9XsjcvhYUuhDv1IdYgFOSVeydUYlJKaM qzkR8tKxE10pH1h5kIsjDeLTnbm+LYTroLoBg/VmEwsZCsA5HS01j3QFtFmNLMQ7Imzg OcJQ== X-Received: by 10.194.243.226 with SMTP id xb2mr20500890wjc.67.1372809251426; Tue, 02 Jul 2013 16:54:11 -0700 (PDT) Received: from [192.168.0.64] (p4FF12BF4.dip0.t-ipconnect.de. [79.241.43.244]) by mx.google.com with ESMTPSA id h8sm25761577wie.1.2013.07.02.16.54.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Jul 2013 16:54:10 -0700 (PDT) Message-ID: <51D36820.3050006@googlemail.com> Date: Wed, 03 Jul 2013 01:54:08 +0200 From: Aljoscha Vollmerhaus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130521 Thunderbird/17.0.6 MIME-Version: 1.0 To: Vincent Hoffman Subject: Re: Problem with KVM / FreeBSD Guest References: <51D33631.6030807@googlemail.com> <51D33E55.3010906@googlemail.com> <51D355FC.7090205@unsane.co.uk> In-Reply-To: <51D355FC.7090205@unsane.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 23:54:13 -0000 On 07/03/2013 12:36 AM, Vincent Hoffman wrote: > For what is worth I have -CURRENT and 9-STABLE KVM guests on a centos > 6.4 KVM host. > > qemu-kvm-0.12.1.2-2.355.0.1.el6.centos.5.x86_64 > libvirt-0.10.2-18.el6_4.8.x86_64 > [root@nodule.namesco.net ~]# uname -a > Linux nodule.unsane.co.uk 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed Jun 12 > 03:34:52 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux My libvirt is at 1.0.5.2, forgot to mention that. > > So it certainly can work. I havent tested more than 4 CPUs that I can > think of. Havent had to do anything special. > > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.1-STABLE #1 r252202: Tue Jun 25 12:30:35 BST 2013 > root@ipamtest.unsane.co.uk:/usr/obj/usr/src/sys/GENERIC amd64 > gcc version 4.2.1 20070831 patched [FreeBSD] > CPU: QEMU Virtual CPU version (cpu64-rhel6) (2333.39-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x6d3 Family = 0x6 Model = 0xd > Stepping = 3 > > Features=0x783f3fd > Features2=0x80002001 > AMD Features=0x20100800 > AMD Features2=0x1 When booted with a single cpu, it looks like this here: CPU: Intel Core 2 Duo P9xxx (Penryn Class Core 2) (2493.74-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x623 Family = 6 Model = 2 Stepping = 3 Features=0x1f83fbff Features2=0x80082201 AMD Features=0x20100800 AMD Features2=0x1 I used libvirts "copy host configuration" feature. (The CPUs are Xeon E5420, libvirt just seems to like to call them Core 2 Duo) Translates into this command: /usr/bin/qemu-system-x86_64 -machine accel=kvm -name iscsitarget -S -machine pc-i440fx-1.4,accel=kvm,usb=off -cpu Penryn,+dca,+pdcm,+xtpr,+tm2,+est,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -m 512 -smp 1,maxcpus=2,sockets=1,cores=2,threads=1 -uuid d7a0c1ec-3446-5bb9-57eb-dc081b3c7ddb -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/iscsitarget.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/dev/VMs/iscsitarget,if=none,id=drive-ide0-0-0,format=raw,cache=none,aio=native -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/var/lib/libvirt/images/FreeBSD-9.1-STABLE-amd64-20130630-r252387-bootonly.iso,if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=2 -netdev tap,fd=22,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:71:94:0f,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:6 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 (sorry for the mess) I have tried to manually set the cpu configuration to 1 socket, 2 cores, hoping this would fix it (shotgun debugging), but no luck. I tried setting cpu to cpu64-rhel6 in libvirt, too - didn't help either. > ACPI APIC Table: At this point, the machine hangs for 1, 2sec when booting multi-cpu while with only one cpu, it goes straight on. > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 2 package(s) x 1 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > acpi0: Power Button (fixed) > cpu0: on acpi0 > cpu1: on acpi0 > atrtc0: port 0x70-0x71,0x72-0x77 irq 8 on acpi0 > Event timer "RTC" frequency 32768 Hz quality 0 > > > Vince A. V.