From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 22 08:21:48 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DDDB106564A for ; Thu, 22 Jan 2009 08:21:48 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.179]) by mx1.freebsd.org (Postfix) with ESMTP id 567818FC17 for ; Thu, 22 Jan 2009 08:21:48 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so556982ele.13 for ; Thu, 22 Jan 2009 00:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=oweWrN3tQ6ZWbDb+pCPdjgRXEaizNjzA4C/7hbKPh3U=; b=abUpCIEKAoUjez0xDTzfjTCoxXWOjcArA/CNM0eplKzK7TZADpw7bf+XLZG81kQBf3 FWQFXqhjPEz/2cGUHwiWb+oMSbQ0n01ahebXUnNLNxBygJD8c28pSSYRT3AY+Ew4h2nQ EMIEOqd9Ary3cG3T6bylW4mpke8j+SEcKR2GY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=L261v1JNXcN0Dtrlz61iiRemGnEyw7oxdboh4ZRU6DqmkoO9eu15RQrdYitPFSmM62 s10yg6rq371BKlGJKR3x5js1RzSBZOvbNLqWjjGzB2IqylyBztQ87Nik8Oyx/RAMml5z TO7lhIfadEToOV7OOHQegU2lipt51yKdhk2Qw= MIME-Version: 1.0 Received: by 10.90.84.1 with SMTP id h1mr2578312agb.70.1232612507664; Thu, 22 Jan 2009 00:21:47 -0800 (PST) In-Reply-To: <49780EF6.9060301@FreeBSD.org> References: <790a9fff0901212135h29f9ad00jfd68676a92c827a3@mail.gmail.com> <49780EF6.9060301@FreeBSD.org> Date: Thu, 22 Jan 2009 02:21:47 -0600 Message-ID: <790a9fff0901220021y203a6e51wd1802e6d9d71ae26@mail.gmail.com> From: Scot Hetzel To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: [Qemu-devel] RE: testing qemu svn r6367 on FreeBSD - sigev_signo; vmmouse, -vga vmware broken, slirp... X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2009 08:21:48 -0000 On Thu, Jan 22, 2009 at 12:15 AM, Doug Barton wrote: >> I have been able to use qemu to boot both a Fedora 10/i386 and Windows >> XP without them crashing. > > That sounds very cool, I would like to have a go at that myself. Care > to share the process you used to get the XP guest up and running? > Tap Network Setup: 1. Setup tap* networking in rc.conf: cloned_interfaces="bridge0 tap0 tap1" ifconfig_bridge0="adm rl10 addm tap0 addm tap1" ifconfig_tap0="up" ifconfig_tap0="up" 2. modify /etc/sysctl.conf net.link.tap.up_on_open=1 net.link.tap.user_open=1 3. create a tap group in /etc/group and add the users who can access the /dev/tap* to the tap group. 4. add entry to /etc/devfs.conf for tap* # /dev/tap* perm tap0 0660 own tap0 root:tap perm tap1 0660 own tap1 root:tap 5. reboot system Installing Windows XP on QEMU: 1. Create disk image: qemu-img create -f raw Windows_XP.img 8G 2. start qemu to install Windows XP: Place the Windows XP CD into the cdrom drive, and execute qemu: qemu -name windows_xp -localtime -m 512 -net nic,macaddr=52:54:DE:AD:BE:EF,model=rtl8139 -net tap,ifname=tap0,script=no -hda Windows_XP.img -cdrom /dev/acd0 -boot d NOTE: 1. /dev/acd0 can be replaced with path to a cdrom iso image 2. to use user mode networking just drop -net tap* and/or -net nic*. I use this script to start the qemu Windows XP guest. #!/bin/sh QEMU="qemu -kernel-kqemu" NAME="-name windows_xp" MEMORY="-m 512" # BOOT="-boot d" CDROM="-cdrom ../iso/WINXP_CD.iso" # qemu: Supported ISA NICs: ne2k_isa # qemu: Supported PCI NICs: i82551 i82557b i82559er ne2k_pci pcnet rtl8139 NETWORK="-net nic,macaddr=52:54:DE:AD:BE:EF,model=rtl8139 -net tap,ifname=tap0,script=no" HDA="-hda Windows_XP.img" #HDB="-hdb Windows_XP_SP.img" # the usb tablet device allows the mouse to move easily between X and qemu guest # NOTE: I haven't been able to get it to grab the mouse input since using # svn revison 6367 through 6391. Instead input is redirected to the PS/2 Mouse. #USB="-usb -usbdevice tablet" ${QEMU} ${NAME} -localtime ${MEMORY} ${NETWORK} ${USB} ${HDA} ${HDB} ${CDROM} ${BOOT} Scot