From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 17:58:41 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DE06106564A for ; Fri, 6 Jan 2012 17:58:41 +0000 (UTC) (envelope-from alessandro.baggi@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D9EB88FC15 for ; Fri, 6 Jan 2012 17:58:40 +0000 (UTC) Received: by werb13 with SMTP id b13so1879532wer.13 for ; Fri, 06 Jan 2012 09:58:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=dvJUc18JR0ZR82oqg3oYmr+rojDwgV5AJXaGfowqou8=; b=rYVKSHz/w2OzZo2/i2MHTXPD+UOe3GQC+bdKzuEruxkqRkC9JPvEBOTtcANflR4Moj M/nMJn7zfCaCZPLxx9q/x2lYtlmB+uwsCn3tgbv/aYT9ZSyznoVMr6gEpFluT7Y+Fko8 j4nPMhGPuAsp7U5ZcCa89LytEeBneMs3b2BVE= Received: by 10.216.133.74 with SMTP id p52mr3522555wei.39.1325872718260; Fri, 06 Jan 2012 09:58:38 -0800 (PST) Received: from [10.1.4.58] (ip-157-125-ull.customer.panservice.it. [212.66.125.157]) by mx.google.com with ESMTPS id ex2sm28952601wib.1.2012.01.06.09.58.36 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Jan 2012 09:58:37 -0800 (PST) Message-ID: <4F07354B.9040802@gmail.com> Date: Fri, 06 Jan 2012 18:54:19 +0100 From: Alessandro Baggi User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F06D041.4050702@gmail.com> <4F06E011.40305@my.gd> <4F0710C0.5030405@gmail.com> <4F07240C.4070803@my.gd> <4F072661.8060804@gmail.com> <4F072B7D.30901@my.gd> <4F072D6A.40204@gmail.com> <4F072F51.7090204@my.gd> In-Reply-To: <4F072F51.7090204@my.gd> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD on kvm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 17:58:41 -0000 On 01/06/2012 06:28 PM, Damien Fleuriot wrote: > > On 1/6/12 6:20 PM, Alessandro Baggi wrote: >> On 01/06/2012 06:12 PM, Damien Fleuriot wrote: >>> On 1/6/12 5:50 PM, Alessandro Baggi wrote: >>>> On 01/06/2012 05:40 PM, Damien Fleuriot wrote: >>>>> On 1/6/12 4:18 PM, Alessandro Baggi wrote: >>>>>> On 01/06/2012 12:50 PM, Damien Fleuriot wrote: >>>>>>> On 1/6/12 11:43 AM, Alessandro Baggi wrote: >>>>>>>> Hi list, >>>>>>>> i've a problem running freebsd as a guest on linux+kvm. The only >>>>>>>> problem >>>>>>>> is that sometimes, when I boot the system it dies and this happens >>>>>>>> also >>>>>>>> if I run the vm with and without -nographic option. Using the qemu >>>>>>>> GUI I >>>>>>>> can see the it stops on the boot loader menu after the countdown >>>>>>>> and the >>>>>>>> only mode to resume the system is reboot the vm. I've reduced the >>>>>>>> autoboot delay to 1 without no result. >>>>>>>> >>>>>>>> >>>>>>>> Someone know something about this problem? >>>>>>>> >>>>>>>> Thanks in advance. >>>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> >>>>>>> This is exactly how to *not* ask a question. >>>>>>> Please take the time to read this very informative article: >>>>>>> http://www.catb.org/~esr/faqs/smart-questions.html#beprecise >>>>>>> >>>>>>> >>>>>>> For instance, you've omitted important information such as: >>>>>>> >>>>>>> - linux version >>>>>>> - qemu version >>>>>>> - freebsd version >>>>>>> - freebsd error message when "it dies", if any >>>>>>> - KVM configuration options (disk mode and such) >>>>>>> >>>>>>> >>>>>>> We've been running FreeBSD 7 then 8 as a guest in Debian linux/KVM >>>>>>> for >>>>>>> over 3 years now for our pre-production environment and are very >>>>>>> happy >>>>>>> with it. >>>>>>> >>>>>>> Please post some more details, that we might be able to actually >>>>>>> help. >>>>>>> _______________________________________________ >>>>>>> freebsd-questions@freebsd.org mailing list >>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>>>>> To unsubscribe, send any mail >>>>>>> to"freebsd-questions-unsubscribe@freebsd.org" >>>>>>> >>>>>> True, I'm sorry, too few informations. >>>>>> >>>>>> The host system is Slackware64 Linux 13.37 >>>>>> QEMU emulator version 0.14.0 (qemu-kvm-0.14.0), Copyright (c) >>>>>> 2003-2008 >>>>>> Fabrice Bellard >>>>>> FreeBSD 8.2-RELEASE-p3 >>>>>> >>>>>> >>>>>> >>>>>> kvm option: /usr/bin/qemu-system-x86_64 -pidfile $PIDFILE -cpu host >>>>>> -smp >>>>>> $NCPU -m $MRAM -k $KB -enable-kvm -drive >>>>>> file=$IMAGE,media=disk,index=0,cache=writeback -net >>>>>> nic,model=$NICMODEL,macaddr=$MAC -net >>>>>> tap,ifname=$TAP,script=no,downscript=no -runas $USER -monitor >>>>>> unix:$SOCKET,server,nowait -nographic -daemonize >>>>>> >>>>>> There are not errors. When there is the countdown it seems to die.For >>>>>> example it stops to 9 seconds or 6 and stop (die) No boot line, >>>>>> only the >>>>>> boot loader menu blocked. To avoid this >>>>>> I want say that freebsd work very well under kvm, the problem is >>>>>> presented every 2/3 startup of this virtual machine. >>>>>> >>>>> What disk format do you use, with KVM ? >>>>> QCOW2, RAW, VirtIO ? >>>>> >>>>> We're running with QCOW2 here, emulating IDE drives and we don't have >>>>> any problem. >>>>> >>>>> _______________________________________________ >>>>> freebsd-questions@freebsd.org mailing list >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>>>> To unsubscribe, send any mail to >>>>> "freebsd-questions-unsubscribe@freebsd.org" >>>>> >>>> I'm using QCOW2. >>>> For ide drives do you give -hda? >>>> >>>> Info: if I give Enter during the countdown, it starts, if i leave the >>>> countdown to finish, it crash. >>>> But running with -nographic there isn't sense to give "enter" >>>> >>>> Leaving delay boot to 10 sec, always block. Set delay boot to 1, it give >>>> me some "crash". >>>> There is a possibility to run directly the system instead print the >>>> menu? I must install lilo/grub? >>>> >>>> Thanks in advance. >>> QEMU emulator version 0.15.0 (qemu-kvm-devel), Copyright (c) 2003-2008 >>> Fabrice Bellard >>> >>> >>> Find below the resulting command-line used to run a typical FreeBSD KVM >>> from our Proxmox interface: >>> >>> /usr/bin/kvm -monitor unix:/var/run/qemu-server/141.mon,server,nowait >>> -vnc unix:/var/run/qemu-server/141.vnc,password -pidfile >>> /var/run/qemu-server/141.pid -daemonize -usbdevice tablet -name >>> yournamehere -smp sockets=2,cores=2 -nodefaults -boot menu=on -vga >>> cirrus -tdf -k fr -drive >>> file=/var/lib/vz/images/141/vm-141-disk-1.qcow2,if=ide,index=0 -m 512 >>> -netdev >>> type=tap,id=vlan18d0,ifname=tap141i18d0,script=/var/lib/qemu-server/bridge-vlan >>> >>> -device e1000,romfile=,mac=9E:6C:42:78:98:E2,netdev=vlan18d0 -netdev >>> type=tap,id=vlan730d0,ifname=tap141i730d0,script=/var/lib/qemu-server/bridge-vlan >>> >>> -device e1000,romfile=,mac=E6:BA:DA:56:C9:66,netdev=vlan730d0 -netdev >>> type=tap,id=vlan731d0,ifname=tap141i731d0,script=/var/lib/qemu-server/bridge-vlan >>> >>> -device e1000,romfile=,mac=8E:B5:8F:30:F2:C1,netdev=vlan731d0 -id 141 >>> -cpuunits 1000 >>> >>> Also find below the contents of the config file for the guest: >>> -> cat /etc/qemu-server/141.conf >>> name: [snip] >>> bootdisk: virtio0 >>> ostype: other >>> memory: 512 >>> onboot: 1 >>> sockets: 2 >>> ide0: local:141/vm-141-disk-1.qcow2 >>> vlan18: e1000=9E:6C:42:78:98:E2 >>> cores: 2 >>> vlan730: e1000=E6:BA:DA:56:C9:66 >>> vlan731: e1000=8E:B5:8F:30:F2:C1 >>> >>> Do not pay attention to "bootdisk: virtio0", we use "ide0" for other >>> FreeBSD KVMs just as well. >>> >>> >>> I'm beginning to think your VM might be crashing while/because it's >>> actually probing for other devices. >>> >>> What's the full list of devices you have attached to your VM ? >>> >>> >>> >>> Do we have any boot stages expert on the list ? >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> "freebsd-questions-unsubscribe@freebsd.org" >>> >> This is all that I've included: >> >> /usr/bin/qemu-system-x86_64 -pidfile $PIDFILE -cpu host -smp >> $NCPU -m $MRAM -k $KB -enable-kvm -drive >> file=$IMAGE,media=disk,index=0,cache=writeback -net >> nic,model=$NICMODEL,macaddr=$MAC -net >> tap,ifname=$TAP,script=no,downscript=no -runas $USER -monitor >> unix:$SOCKET,server,nowait -nographic -daemonize >> >> I run the vm with this command.. >> >> I repeat, the problem is strange because it dies on the menu countdown >> before start, not during the real boot... >> >> >> Thanks in advance >> > That's my point. > > I'm starting to think the loader is probing for devices during this > early boot stage, and dies. > > > Can you report the output from "ps aufx | grep kvm" for this particular VM ? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > This is the ps for the process of this specified vm. It has stopped on 6 sec. kvm 14733 8.3 6.4 1204904 1066328 pts/3 Sl+ 18:22 2:26 | \_ /usr/bin/qemu-system-x86_64 -pidfile /var/tmp/kvm/freebsd.pid -cpu host -smp 1 -m 1024M -k it -enable-kvm -drive file=/mnt/mirrored/qemu-system/FREEBSD/freebsd.img,media=disk,index=0,cache=writeback -net nic,model=rtl8139,macaddr=52:54:00:12:34:58 -net tap,ifname=tap2,script=no,downscript=no -runas kvm -monitor unix:/mnt/mirrored/qemu-system/socktmp/freebsd.sock,server,nowait