From owner-freebsd-stable@FreeBSD.ORG Mon Mar 29 11:25:23 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44BC4106566B for ; Mon, 29 Mar 2010 11:25:23 +0000 (UTC) (envelope-from eugen@kuzbass.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [62.231.161.221]) by mx1.freebsd.org (Postfix) with ESMTP id 823218FC1A for ; Mon, 29 Mar 2010 11:25:22 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.3/8.14.3) with ESMTP id o2TB8NEU054758 for ; Mon, 29 Mar 2010 19:08:23 +0800 (KRAST) (envelope-from eugen@kuzbass.ru) Message-ID: <4BB08A27.2000002@kuzbass.ru> Date: Mon, 29 Mar 2010 18:08:23 +0700 From: Eugene Grosbein User-Agent: Thunderbird 2.0.0.23 (X11/20090918) MIME-Version: 1.0 To: stable@freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: VirtualBox, RAW-disks and boot0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2010 11:25:23 -0000 Hi! I've built FreeBSD 8.0-STABLE "LiveUSB" image using nanobsd script, it works with real hardware. I'd like to test it with VirtualBox to avoid rebooting too often. So, I've installed virtualbox-ose 3.1.4 from ports and tested it: - it boots Windows XP guest installed to VDI-disk just fine; - it boots FreeBSD "LiveCD" I've built as ISO image fine too; - virtual machine hangs just after reading first 512 bytes from RAW-dist made this way (/dev/da0 is USB flash drive): # VBoxManage internalcommands createrawvmdk \ -filename $HOME/.VirtualBox/HardDisks/usbdisk.vmdk \ -rawdisk /dev/da0 -register I've copied first 512 bytes from VDI image containing WinXP to file 'mbr' and installed it to USB flash drive using 'fdisk -B -b mbr da0' command and now VirtualBox boots and runs this "LiveUSB" with FreeBSD from real USB flash just fine too. nanobsd uses BootEasy as boot0 loader and I use this configuration to build it: NANO_BOOTLOADER="boot/boot0" NANO_BOOT0CFG="-o packet -s 1 -m 3 -t 36" So there is something wrong in BootEasy+VirtualBox+"RAW-disk" triple. How do I debug this? Eugene Grosbein