Date: Thu, 22 Jan 2009 02:21:47 -0600 From: Scot Hetzel <swhetzel@gmail.com> To: Doug Barton <dougb@freebsd.org> Cc: freebsd-emulation@freebsd.org Subject: Re: [Qemu-devel] RE: testing qemu svn r6367 on FreeBSD - sigev_signo; vmmouse, -vga vmware broken, slirp... Message-ID: <790a9fff0901220021y203a6e51wd1802e6d9d71ae26@mail.gmail.com> In-Reply-To: <49780EF6.9060301@FreeBSD.org> References: <790a9fff0901212135h29f9ad00jfd68676a92c827a3@mail.gmail.com> <49780EF6.9060301@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 22, 2009 at 12:15 AM, Doug Barton <dougb@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0901220021y203a6e51wd1802e6d9d71ae26>