Accessing raw partitions with VMDK (VirtualBox 1.4)

This is for discussing general topics about how to use VirtualBox.
kilou
Posts: 53
Joined: 14. May 2007, 10:16

Post by kilou »

But if I use chmod 666 /dev/sda* it will change the permissions on all partitions on /dev/sda, including the one on which the Linux system is installed... Or does the * only change the permission on the MBR of /dev/sda?
Vladsharp
Posts: 3
Joined: 7. Jun 2007, 21:31

Post by Vladsharp »

I get a hard kernel lockup when trying to use this feature - both under Vmware and VirtualBox. No log to speak of unfortunately, but the virtual hard disk that I'm trying to access is under lvm2 (and consequently, device-mapper is used). The XP Cd hangs at probing the hard drive.

As this post was being written in Firefox , creating a virtual disk (vdi) also failed at that stage (again, hard lockup in kernel, Alt-SysRq-b for me...) [fortunately firefox saves posts] (using ext2 as backing fs, on lvm2). It's all very strange...
nuudles
Posts: 9
Joined: 6. Jun 2007, 16:39

Post by nuudles »

That command is setting permissions to the "device nodes," not to the actual partitions themselves. Using /dev/sda* will set the permissions to /dev/sda, /dev/sda1, /dev/sda2, etc. I'm pretty sure once you restart the permissions will be reset anyway, so you can perform that just to try and see if it'll work.
kilou
Posts: 53
Joined: 14. May 2007, 10:16

Post by kilou »

Thanks for the help. The chmod 666 /dev/sda* did work! As you said after rebooting the chmod 666 /dev/sda* is gone and must be redone. Probably that this command must be started in a startup script then.

I had to set permission to the second vmdk file as well and now I can access the file in the virtual disk manager:

chown kilou /home/kilou/.VirtualBox/WinXP.vmdk
AND
chown kilou /home/kilou/.VirtualBox/WinXP-pt.vmdk

I could start the VM but it locked when loading Grub with error 17. Probably this is because Grub files are in /boot/grub which is on the host system. I will have to look at the -mbr winxp.mbr option but I don't have any winxp.mbr file on my system. Does anyone have this mbr file? According to the manual any mbr file from windows should work, no matter the partition setup.

However I also tried to access the whole disk (not only sda2) with using:
VBoxManage internalcommands createrawvmdk -filename /home/kilou/.VirtualBox/WindowsXP.vmdk -rawdisk /dev/sda

and giving the vmdk file the permissions. Building a VM on this virtual disk, I could boot on the disk and access grub. I selected XP and it started to boot (I had created a separate hardware profile for the VM and it asked me on which hardware profile I wanted to boot). But after that: Black screen! It didn't boot any further and I had to stop the VM. No matter which hardware profile I select, I get a black screen :( I tried to launch XP in safemode with command prompt to see where the lockup occurs and it happens after loading \windows\system32\drivers\Mup.sys
Any idea what that means?
kilou
Posts: 53
Joined: 14. May 2007, 10:16

Post by kilou »

One step after the other: I had to enable both ACPI and IO ACPI in VirtualBox to allow to boot XP a step further. Now I can see the bootscreen but then I get a BSOD asking me to check for viruses, remove newly installed harddrive controllers, run CHKDSK /F etc. Even after doing that (I don't know what to do about harddrive controllers though) I always get that same screen.
Devport
Posts: 6
Joined: 30. May 2007, 03:58

Post by Devport »

kilou wrote:One step after the other: I had to enable both ACPI and IO ACPI in VirtualBox to allow to boot XP a step further. Now I can see the bootscreen but then I get a BSOD asking me to check for viruses, remove newly installed harddrive controllers, run CHKDSK /F etc. Even after doing that (I don't know what to do about harddrive controllers though) I always get that same screen.
This is a harddisk driver issue I believe - it has been a while since I did this with vmware so I can`t tell you the exact steps how to do it. However, as far as I remember there is a hard disk driver I needed to download ( I think I got it somewhere from vmware site ) and install on Windows first so that Windows XP was able to use the virtual harddisk.

A more detailed explanation : There are different types of harddisks : SCSI, IDE, SATA and they all are driven by different drivers. When you install Windows it expects its (boot)harddisk to be used with the current harddisk driver and when the driver required to access the boot drive changes it pops out the error message. This will happen in particular for SATA drives because they are accessed differently on Windows / Linux and will thus need a different driver in a virtual machine than native ( this is all out of memory so maybe partially incorrect ).

See this post and the whole topic for some hints on how to do it : http://forums.gentoo.org/viewtopic-p-21 ... e7#2104789

Search for "raw disk vmware SATA" to find more docs.

Good results are e.g. :

http://www.vmware.com/community/thread. ... eID=354464
http://www.motin.eu/www/mirror/physvmware/

I am not sure if this will work for virtualbox, too, because the SCSI driver maybe only works with vmware.

Most importantly before you try to run Windows off a raw disk remember to create hardware profiles ( one for virtual machine one for native, which is there already ). Otherwise Windows will change drivers whenever you switch between virtual / native resulting in heavy system workload, maybe if system destructive events and the need for calling Microsoft to reregister Windows because of the many hardware changes ...
achimha
Volunteer
Posts: 217
Joined: 10. May 2007, 09:24

Post by achimha »

kilou
Posts: 53
Joined: 14. May 2007, 10:16

Post by kilou »

Thanks everyone! The MergeIDE utility solved the problem and I can now boot into my existing XP install. Great!!

I now have to figure out how to do the same with the -partitions option in VBoxManage command so that it can make only sda2 available and boot on XP immediately (with -mbr option). Does anybody have a winxp.mbr file to share?

Also is it possible to immediately boot on a specific hardware profile in the VM while boot on the other (standard) hardware profile when dualbooting XP normally (Like telling the VM to use the non-default hardware profile only)?
klaus
Oracle Corporation
Posts: 1436
Joined: 10. May 2007, 14:57

Post by klaus »

We can't provide you with winxp.mbr (at least not the very original one, as that's binary code (C) Microsoft). You can either boot some Windows PE from CD in that VM and do "fdisk /mbr", which removes GRUB (happens only on the disk image visible for the VM, and not on the host disk, just like the -mbr option) or use some Linux live CD on some Windows-only install and get winxp.mbr yourself with "dd if=/dev/sda of=winxp.mbr count=1".

An alternative (which may or may not work, haven't tried) is using the open source MBR code from the install-mbr utility (usually located in a package named install-mbr or just mbr). Create a MBR file usable for the -mbr option with "install-mbr --force opensource.mbr". Another alternative (again haven't tried) is to use the mbr.bin file that comes with syslinux. That file is usually located in /usr/lib/syslinux/mbr.bin.
bguan
Posts: 3
Joined: 2. Jun 2007, 22:05

Having same problem on XP host

Post by bguan »

Seems like the thread led to successful resolution for a user with linux host. I have the same issue as zyzgak i.e. running on XP host, trying to boot VBox with raw linux partitions.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS>vboxmanage internalcommands listpartitions -rawdisk //./PhysicalDrive0
VirtualBox Command Line Management Interface Version 1.4.0
(C) 2005-2007 innotek GmbH
All rights reserved.

Number Type StartCHS EndCHS Size (MiB) Start (Sect)
1 0x07 0 /1 /1 1023/254/63 20002 63
2 0x83 1023/254/63 1023/254/63 24003 40965750
3 0x83 1023/254/63 1023/254/63 23846 90124650
5 0x0c 0 /1 /1 1023/254/63 58204 138962313
7 0x83 1023/254/63 1023/254/63 20002 258164613
6 0x82 0 /1 /1 1023/254/63 2047 299130363

C:\WINDOWS>
D:\virtualbox>dir
Volume in drive D is DATA
Volume Serial Number is 45EF-BF6C

Directory of D:\virtualbox

06/01/2007 03:37 PM <DIR> .
06/01/2007 03:37 PM <DIR> ..
06/14/2007 08:46 AM 281,059,840 DamnSmallLinux.vdi
06/07/2007 05:44 PM 3,480,265,216 Ubuntu.vdi
2 File(s) 3,761,325,056 bytes
2 Dir(s) 22,649,094,144 bytes free

D:\virtualbox>vboxmanage internalcommands createrawvmdk -filename D:\virtualbox\gentoo-raw.vmdk -rawdisk \\.\PhysicalDrive0 -partitions 3,6,7 -register
VirtualBox Command Line Management Interface Version 1.4.0
(C) 2005-2007 innotek GmbH
All rights reserved.

ERROR: VMDK: could not create new partition data file 'D:\virtualbox\gentoo-raw-pt.vmdk'
Error code VERR_SHARING_VIOLATION at E:\vbox\w32-rel\src\VBox\Devices\Storage\VmdkHDDCore.cpp(2228) in function vmdkCreateImage
Error while creating the raw disk VMDK: VERR_SHARING_VIOLATION

D:\virtualbox>
Any ideas?
zyzgak wrote:I have similar problem. I'm trying to access my linux partition under XP:

Code: Select all

D:\xxx\pc\VirtualBox>VBoxManage internalcommands listpartitions -rawdisk \\.\Phys
icalDrive1
VirtualBox Command Line Management Interface Version 1.4.0
(C) 2005-2007 innotek GmbH
All rights reserved.

Number  Type   StartCHS       EndCHS      Size (MiB)  Start (Sect)
1       0x83  0   /1  /1   1023/254/63         16386           63
5       0x07  1023/1  /1   1023/254/63        131006     33559848
6       0x07  1023/1  /1   1023/254/63        131077    301861413

D:\xxx\pc\VirtualBox>VBoxManage internalcommands createrawvmdk -filename d:\test1
.vmdk -rawdisk \\.\PhysicalDrive1 -partitions 1
VirtualBox Command Line Management Interface Version 1.4.0
(C) 2005-2007 innotek GmbH
All rights reserved.

ERROR: VMDK: could not create new partition data file 'd:\test1-pt.vmdk'
Error code VERR_SHARING_VIOLATION at E:\vbox\w32-rel\src\VBox\Devices\Storage\Vmd
kHDDCore.cpp(2228) in function vmdkCreateImage
Error while creating the raw disk VMDK: VERR_SHARING_VIOLATION
Could somebody point my error? Or, if i have get privileges to access to that partition, how can i achieve this under XP?
klaus
Oracle Corporation
Posts: 1436
Joined: 10. May 2007, 14:57

Post by klaus »

There is no successful resolution possible for Windows hosts, unfortunately. It's a bug, and no way around it.
flyco
Posts: 2
Joined: 17. Jun 2007, 07:19

Post by flyco »

This thread has been very helpful so far. However, I'm still running into problems when trying to boot my Windows partition from inside Linux (I have a SATA drive).

What I did so far:
  • unmounted the Windows partition
    chmod 666 /dev/sda*
    Built a vmdk file having access to the whole disk (otherwise I ended up with a Grub error 17)
    chown the vmdk to my user account
    played around with the ACPI and IO APIC settings
I can access Grub and select to boot Windows. Right after the selection I get a black screen saying that a disk read error occurred. I'm aware of the issues with SATA disks, but the strange thing is that I don't even reach the stage where I'm able to select the different Windows hardware profiles.

Here's my VBox.log:
00:00:01.390 VirtualBox 1.4.0 (Jun 6 2007 05:56:10) release log
00:00:01.390 Log opened 2007-06-17T05:34:40.582161000Z
00:00:01.488 ************************* CFGM dump *************************
00:00:01.488 pRoot=083c9db8:{/}
00:00:01.488 [/] (level 0)
00:00:01.488 Name <string> = "WindowsXP" (cch=10)
00:00:01.488 RamSize <integer> = 0x0000000020000000 (536870912)
00:00:01.488 TimerMillies <integer> = 0x000000000000000a (10)
00:00:01.488 RawR3Enabled <integer> = 0x0000000000000001 (1)
00:00:01.488 RawR0Enabled <integer> = 0x0000000000000001 (1)
00:00:01.488 PATMEnabled <integer> = 0x0000000000000001 (1)
00:00:01.488 CSAMEnabled <integer> = 0x0000000000000001 (1)
00:00:01.488
00:00:01.488 [/PDM/] (level 1)
00:00:01.488
00:00:01.488 [/PDM/Drivers/] (level 2)
00:00:01.488
00:00:01.488 [/PDM/Drivers/VBoxC/] (level 3)
00:00:01.488 Path <string> = "/opt/VirtualBox-1.4.0/components/VBoxC" (cch=39)
00:00:01.488
00:00:01.488 [/Devices/] (level 1)
00:00:01.488
00:00:01.488 [/Devices/pcarch/] (level 2)
00:00:01.488
00:00:01.488 [/Devices/pcarch/0/] (level 3)
00:00:01.488 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.488
00:00:01.488 [/Devices/pcarch/0/Config/] (level 4)
00:00:01.488
00:00:01.488 [/Devices/pcbios/] (level 2)
00:00:01.488
00:00:01.488 [/Devices/pcbios/0/] (level 3)
00:00:01.488 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.488
00:00:01.488 [/Devices/pcbios/0/Config/] (level 4)
00:00:01.488 RamSize <integer> = 0x0000000020000000 (536870912)
00:00:01.488 HardDiskDevice <string> = "piix3ide" (cch=9)
00:00:01.488 FloppyDevice <string> = "i82078" (cch=7)
00:00:01.488 IOAPIC <integer> = 0x0000000000000001 (1)
00:00:01.488 BootDevice0 <string> = "FLOPPY" (cch=7)
00:00:01.488 BootDevice1 <string> = "DVD" (cch=4)
00:00:01.488 BootDevice2 <string> = "IDE" (cch=4)
00:00:01.488 BootDevice3 <string> = "NONE" (cch=5)
00:00:01.488 FadeIn <integer> = 0x0000000000000001 (1)
00:00:01.488 FadeOut <integer> = 0x0000000000000001 (1)
00:00:01.488 LogoTime <integer> = 0x0000000000000000 (0)
00:00:01.488 LogoFile <string> = "" (cch=1)
00:00:01.488 ShowBootMenu <integer> = 0x0000000000000002 (2)
00:00:01.488
00:00:01.488 [/Devices/acpi/] (level 2)
00:00:01.488
00:00:01.488 [/Devices/acpi/0/] (level 3)
00:00:01.488 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.488 PCIDeviceNo <integer> = 0x0000000000000007 (7)
00:00:01.488 PCIFunctionNo <integer> = 0x0000000000000000 (0)
00:00:01.488
00:00:01.488 [/Devices/acpi/0/Config/] (level 4)
00:00:01.488 RamSize <integer> = 0x0000000020000000 (536870912)
00:00:01.488 IOAPIC <integer> = 0x0000000000000001 (1)
00:00:01.488
00:00:01.488 [/Devices/acpi/0/LUN#0/] (level 4)
00:00:01.488 Driver <string> = "ACPIHost" (cch=9)
00:00:01.488
00:00:01.488 [/Devices/acpi/0/LUN#0/Config/] (level 5)
00:00:01.488
00:00:01.488 [/Devices/8237A/] (level 2)
00:00:01.488
00:00:01.488 [/Devices/8237A/0/] (level 3)
00:00:01.488 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.488
00:00:01.488 [/Devices/pci/] (level 2)
00:00:01.488
00:00:01.488 [/Devices/pci/0/] (level 3)
00:00:01.489 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/pci/0/Config/] (level 4)
00:00:01.489 IOAPIC <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/pckbd/] (level 2)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/] (level 3)
00:00:01.489 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/Config/] (level 4)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#0/] (level 4)
00:00:01.489 Driver <string> = "KeyboardQueue" (cch=14)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#0/Config/] (level 5)
00:00:01.489 QueueSize <integer> = 0x0000000000000040 (64)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#0/AttachedDriver/] (level 5)
00:00:01.489 Driver <string> = "MainKeyboard" (cch=13)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#0/AttachedDriver/Config/] (level 6)
00:00:01.489 Object <integer> = 0x0000000008387b48 (137919304)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#1/] (level 4)
00:00:01.489 Driver <string> = "MouseQueue" (cch=11)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#1/Config/] (level 5)
00:00:01.489 QueueSize <integer> = 0x0000000000000080 (128)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#1/AttachedDriver/] (level 5)
00:00:01.489 Driver <string> = "MainMouse" (cch=10)
00:00:01.489
00:00:01.489 [/Devices/pckbd/0/LUN#1/AttachedDriver/Config/] (level 6)
00:00:01.489 Object <integer> = 0x0000000008387c68 (137919592)
00:00:01.489
00:00:01.489 [/Devices/i82078/] (level 2)
00:00:01.489
00:00:01.489 [/Devices/i82078/0/] (level 3)
00:00:01.489 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/i82078/0/Config/] (level 4)
00:00:01.489 IRQ <integer> = 0x0000000000000006 (6)
00:00:01.489 DMA <integer> = 0x0000000000000002 (2)
00:00:01.489 MemMapped <integer> = 0x0000000000000000 (0)
00:00:01.489 IOBase <integer> = 0x00000000000003f0 (1008)
00:00:01.489
00:00:01.489 [/Devices/i82078/0/LUN#999/] (level 4)
00:00:01.489 Driver <string> = "MainStatus" (cch=11)
00:00:01.489
00:00:01.489 [/Devices/i82078/0/LUN#999/Config/] (level 5)
00:00:01.489 papLeds <integer> = 0x000000000838761c (137917980)
00:00:01.489 First <integer> = 0x0000000000000000 (0)
00:00:01.489 Last <integer> = 0x0000000000000000 (0)
00:00:01.489
00:00:01.489 [/Devices/i82078/0/LUN#0/] (level 4)
00:00:01.489 Driver <string> = "Block" (cch=6)
00:00:01.489
00:00:01.489 [/Devices/i82078/0/LUN#0/Config/] (level 5)
00:00:01.489 Type <string> = "Floppy 1.44" (cch=12)
00:00:01.489 Mountable <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/i8254/] (level 2)
00:00:01.489
00:00:01.489 [/Devices/i8254/0/] (level 3)
00:00:01.489
00:00:01.489 [/Devices/i8254/0/Config/] (level 4)
00:00:01.489
00:00:01.489 [/Devices/i8259/] (level 2)
00:00:01.489
00:00:01.489 [/Devices/i8259/0/] (level 3)
00:00:01.489 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/i8259/0/Config/] (level 4)
00:00:01.489
00:00:01.489 [/Devices/apic/] (level 2)
00:00:01.489
00:00:01.489 [/Devices/apic/0/] (level 3)
00:00:01.489 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/apic/0/Config/] (level 4)
00:00:01.489 IOAPIC <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/ioapic/] (level 2)
00:00:01.489
00:00:01.489 [/Devices/ioapic/0/] (level 3)
00:00:01.489 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.489
00:00:01.489 [/Devices/ioapic/0/Config/] (level 4)
00:00:01.489
00:00:01.489 [/Devices/mc146818/] (level 2)
00:00:01.489
00:00:01.489 [/Devices/mc146818/0/] (level 3)
00:00:01.489
00:00:01.489 [/Devices/mc146818/0/Config/] (level 4)
00:00:01.490
00:00:01.490 [/Devices/vga/] (level 2)
00:00:01.490
00:00:01.490 [/Devices/vga/0/] (level 3)
00:00:01.490 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.490 PCIDeviceNo <integer> = 0x0000000000000002 (2)
00:00:01.490 PCIFunctionNo <integer> = 0x0000000000000000 (0)
00:00:01.490
00:00:01.490 [/Devices/vga/0/Config/] (level 4)
00:00:01.490 VRamSize <integer> = 0x0000000000800000 (8388608)
00:00:01.490 MonitorCount <integer> = 0x0000000000000001 (1)
00:00:01.490 CustomVideoModes <integer> = 0x0000000000000000 (0)
00:00:01.490 HeightReduction <integer> = 0x0000000000000000 (0)
00:00:01.490
00:00:01.490 [/Devices/vga/0/LUN#0/] (level 4)
00:00:01.490 Driver <string> = "MainDisplay" (cch=12)
00:00:01.490
00:00:01.490 [/Devices/vga/0/LUN#0/Config/] (level 5)
00:00:01.490 Object <integer> = 0x0000000008387db0 (137919920)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/] (level 2)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/] (level 3)
00:00:01.490 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.490 PCIDeviceNo <integer> = 0x0000000000000001 (1)
00:00:01.490 PCIFunctionNo <integer> = 0x0000000000000001 (1)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/Config/] (level 4)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#999/] (level 4)
00:00:01.490 Driver <string> = "MainStatus" (cch=11)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#999/Config/] (level 5)
00:00:01.490 papLeds <integer> = 0x0000000008387624 (137917988)
00:00:01.490 First <integer> = 0x0000000000000000 (0)
00:00:01.490 Last <integer> = 0x0000000000000003 (3)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#0/] (level 4)
00:00:01.490 Driver <string> = "Block" (cch=6)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#0/Config/] (level 5)
00:00:01.490 Type <string> = "HardDisk" (cch=9)
00:00:01.490 Mountable <integer> = 0x0000000000000000 (0)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#0/AttachedDriver/] (level 5)
00:00:01.490 Driver <string> = "VD" (cch=3)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#0/AttachedDriver/Config/] (level 6)
00:00:01.490 Path <string> = "/home/m/.VirtualBox/WindowsXP.vmdk" (cch=40)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#2/] (level 4)
00:00:01.490 Driver <string> = "Block" (cch=6)
00:00:01.490
00:00:01.490 [/Devices/piix3ide/0/LUN#2/Config/] (level 5)
00:00:01.490 Type <string> = "DVD" (cch=4)
00:00:01.490 Mountable <integer> = 0x0000000000000001 (1)
00:00:01.490
00:00:01.490 [/Devices/pcnet/] (level 2)
00:00:01.490
00:00:01.490 [/Devices/pcnet/0/] (level 3)
00:00:01.490 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.490 PCIDeviceNo <integer> = 0x0000000000000003 (3)
00:00:01.490 PCIFunctionNo <integer> = 0x0000000000000000 (0)
00:00:01.490
00:00:01.490 [/Devices/pcnet/0/Config/] (level 4)
00:00:01.490 Am79C973 <integer> = 0x0000000000000001 (1)
00:00:01.490 MAC <bytes> = "08 00 27 65 63 0b" (cb=6)
00:00:01.490 CableConnected <integer> = 0x0000000000000001 (1)
00:00:01.490
00:00:01.490 [/Devices/pcnet/0/LUN#999/] (level 4)
00:00:01.490 Driver <string> = "MainStatus" (cch=11)
00:00:01.490
00:00:01.490 [/Devices/pcnet/0/LUN#999/Config/] (level 5)
00:00:01.490 papLeds <integer> = 0x0000000008387634 (137918004)
00:00:01.490
00:00:01.490 [/Devices/pcnet/0/LUN#0/] (level 4)
00:00:01.490 Driver <string> = "NAT" (cch=4)
00:00:01.490
00:00:01.490 [/Devices/pcnet/0/LUN#0/Config/] (level 5)
00:00:01.490
00:00:01.490 [/Devices/VMMDev/] (level 2)
00:00:01.490
00:00:01.490 [/Devices/VMMDev/0/] (level 3)
00:00:01.490 Trusted <integer> = 0x0000000000000001 (1)
00:00:01.490 PCIDeviceNo <integer> = 0x0000000000000004 (4)
00:00:01.490 PCIFunctionNo <integer> = 0x0000000000000000 (0)
00:00:01.490
00:00:01.490 [/Devices/VMMDev/0/Config/] (level 4)
00:00:01.490
00:00:01.490 [/Devices/VMMDev/0/LUN#0/] (level 4)
00:00:01.491 Driver <string> = "MainVMMDev" (cch=11)
00:00:01.491
00:00:01.491 [/Devices/VMMDev/0/LUN#0/Config/] (level 5)
00:00:01.491 Object <integer> = 0x0000000008388220 (137921056)
00:00:01.491
00:00:01.491 [/Devices/AudioSniffer/] (level 2)
00:00:01.491
00:00:01.491 [/Devices/AudioSniffer/0/] (level 3)
00:00:01.491
00:00:01.491 [/Devices/AudioSniffer/0/Config/] (level 4)
00:00:01.491
00:00:01.491 [/Devices/AudioSniffer/0/LUN#0/] (level 4)
00:00:01.491 Driver <string> = "MainAudioSniffer" (cch=17)
00:00:01.491
00:00:01.491 [/Devices/AudioSniffer/0/LUN#0/Config/] (level 5)
00:00:01.491 Object <integer> = 0x0000000008387850 (137918544)
00:00:01.491
00:00:01.491 [/TM/] (level 1)
00:00:01.491 UTCOffset <integer> = 0x0000000000000000 (0)
00:00:01.491
00:00:01.491 ********************* End of CFGM dump **********************
00:00:01.492 Logical host processors: 2, processor active mask: 00000003
00:00:01.492 ************************* CPUID dump ************************
00:00:01.492 RAW Standard CPUIDs
00:00:01.492 Function eax ebx ecx edx
00:00:01.492 Gst: 00000000 00000002 756e6547 6c65746e 49656e69
00:00:01.492 Hst: 0000000a 756e6547 6c65746e 49656e69
00:00:01.492 Gst: 00000001 000006f6 0000ffff 00000008 0780a1bf
00:00:01.492 Hst: 000006f6 00020800 0000e3bd bfebfbff
00:00:01.492 Gst: 00000002 05b0b101 005657f0 00000000 2cb4307d
00:00:01.492 Hst: 05b0b101 005657f0 00000000 2cb4307d
00:00:01.492 Gst: 00000003 07280202 00000000 00000000 00000000*
00:00:01.492 Hst: 00000000 00000000 00000000 00000000
00:00:01.492 Gst: 00000004 07280202 00000000 00000000 00000000*
00:00:01.492 Hst: 00000000 00000000 00000000 00000000
00:00:01.492 Gst: 00000005 80000004 00000000 00000000 00000000*
00:00:01.492 Hst: 00000040 00000040 00000003 00022220
00:00:01.492 Name: GenuineIntel
00:00:01.492 Supports: 0-2
00:00:01.492 Family: 6 Extended: 0 Effectiv: 6
00:00:01.492 Model: 15 Extended: 0 Effectiv: 15
00:00:01.492 Stepping: 6
00:00:01.492 APIC ID: 0x00
00:00:01.492 Logical CPUs: 0
00:00:01.492 CLFLUSH Size: 255
00:00:01.492 Brand ID: 0xff
00:00:01.492 Mnemonic - Description = guest (host)
00:00:01.492 FPU - x87 FPU on Chip = 1 (1)
00:00:01.492 VME - Virtual 8086 Mode Enhancements = 1 (1)
00:00:01.492 DE - Debugging extensions = 1 (1)
00:00:01.492 PSE - Page Size Extension = 1 (1)
00:00:01.492 TSC - Time Stamp Counter = 1 (1)
00:00:01.492 MSR - Model Specific Registers = 1 (1)
00:00:01.492 PAE - Physical Address Extension = 0 (1)
00:00:01.492 MCE - Machine Check Exception = 1 (1)
00:00:01.492 CX8 - CMPXCHG8B instruction = 1 (1)
00:00:01.492 APIC - APIC On-Chip = 0 (1)
00:00:01.492 Reserved = 0 (0)
00:00:01.492 SEP - SYSENTER and SYSEXIT = 0 (1)
00:00:01.492 MTRR - Memory Type Range Registers = 0 (1)
00:00:01.492 PGE - PTE Global Bit = 1 (1)
00:00:01.492 MCA - Machine Check Architecture = 0 (1)
00:00:01.492 CMOV - Conditional Move Instructions = 1 (1)
00:00:01.492 PAT - Page Attribute Table = 0 (1)
00:00:01.492 PSE-36 - 36-bit Page Size Extention = 0 (1)
00:00:01.492 PSN - Processor Serial Number = 0 (0)
00:00:01.492 CLFSH - CLFLUSH Instruction. = 0 (1)
00:00:01.492 Reserved = 0 (0)
00:00:01.492 DS - Debug Store = 0 (1)
00:00:01.492 ACPI - Thermal Mon. & Soft. Clock Ctrl.= 0 (1)
00:00:01.492 MMX - Intel MMX Technology = 1 (1)
00:00:01.492 FXSR - FXSAVE and FXRSTOR Instructions = 1 (1)
00:00:01.492 SSE - SSE Support = 1 (1)
00:00:01.492 SSE2 - SSE2 Support = 1 (1)
00:00:01.492 SS - Self Snoop = 0 (1)
00:00:01.492 HTT - Hyper-Threading Technolog = 0 (1)
00:00:01.492 TM - Thermal Monitor = 0 (1)
00:00:01.492 30 - Reserved = 0 (0)
00:00:01.492 PBE - Pending Break Enable = 0 (1)
00:00:01.492 Supports SSE3 or not = 0 (1)
00:00:01.492 Reserved = 0 (2)
00:00:01.492 Supports MONITOR/MWAIT = 1 (1)
00:00:01.492 CPL-DS - CPL Qualified Debug Store = 0 (1)
00:00:01.492 VMX - Virtual Machine Technology = 0 (1)
00:00:01.492 Reserved = 0 (0)
00:00:01.492 Enh. SpeedStep Tech = 0 (1)
00:00:01.492 Terminal Monitor 2 = 0 (1)
00:00:01.492 Reserved = 0 (1)
00:00:01.492 L1 Context ID = 0 (0)
00:00:01.492 Reserved = 0x0 (0x0)
00:00:01.492 L1 Context ID = 0 (0)
00:00:01.492 Reserved = 0x0 (0x3)
00:00:01.492
00:00:01.492 RAW Extended CPUIDs
00:00:01.492 Function eax ebx ecx edx
00:00:01.492 Gst: 80000000 80000004 00000000 00000000 00000000
00:00:01.492 Hst: 80000008 00000000 00000000 00000000
00:00:01.492 Gst: 80000001 00000000 00000000 00000000 00000000
00:00:01.492 Hst: 00000000 00000000 00000001 20100000
00:00:01.493 Gst: 80000002 65746e49 2952286c 726f4320 4d542865
00:00:01.493 Hst: 65746e49 2952286c 726f4320 4d542865
00:00:01.493 Gst: 80000003 43203229 20205550 20202020 54202020
00:00:01.493 Hst: 43203229 20205550 20202020 54202020
00:00:01.493 Gst: 80000004 30303635 20402020 33382e31 007a4847
00:00:01.493 Hst: 30303635 20402020 33382e31 007a4847
00:00:01.493 Gst: 80000005 07280202 00000000 00000000 00000000*
00:00:01.493 Hst: 00000000 00000000 00000000 00000000
00:00:01.493 Gst: 80000006 07280202 00000000 00000000 00000000*
00:00:01.493 Hst: 00000000 00000000 08006040 00000000
00:00:01.493 Gst: 80000007 07280202 00000000 00000000 00000000*
00:00:01.493 Hst: 00000000 00000000 00000000 00000000
00:00:01.493 Gst: 80000008 07280202 00000000 00000000 00000000*
00:00:01.493 Hst: 00003024 00000000 00000000 00000000
00:00:01.493 Gst: 80000009 07280202 00000000 00000000 00000000*
00:00:01.493 Hst: 07280202 00000000 00000000 00000000
00:00:01.493 Gst: 8000000a 07280202 00000000 00000000 00000000*
00:00:01.493 Hst: 07280202 00000000 00000000 00000000
00:00:01.493 Ext Name:
00:00:01.493 Ext Supports: 0x80000000-0x80000004
00:00:01.493 Family: 0 Extended: 0 Effectiv: 0
00:00:01.493 Model: 0 Extended: 0 Effectiv: 0
00:00:01.493 Stepping: 0
00:00:01.493 Brand ID: 0x000
00:00:01.493 Mnemonic - Description = guest (host)
00:00:01.493 FPU - x87 FPU on Chip = 0 (0)
00:00:01.493 VME - Virtual 8086 Mode Enhancements = 0 (0)
00:00:01.493 DE - Debugging extensions = 0 (0)
00:00:01.493 PSE - Page Size Extension = 0 (0)
00:00:01.493 TSC - Time Stamp Counter = 0 (0)
00:00:01.493 MSR - K86 Model Specific Registers = 0 (0)
00:00:01.493 PAE - Physical Address Extension = 0 (0)
00:00:01.493 MCE - Machine Check Exception = 0 (0)
00:00:01.493 CX8 - CMPXCHG8B instruction = 0 (0)
00:00:01.493 APIC - APIC On-Chip = 0 (0)
00:00:01.493 10 - Reserved = 0 (0)
00:00:01.493 SEP - SYSCALL and SYSRET = 0 (0)
00:00:01.493 MTRR - Memory Type Range Registers = 0 (0)
00:00:01.493 PGE - PTE Global Bit = 0 (0)
00:00:01.493 MCA - Machine Check Architecture = 0 (0)
00:00:01.493 CMOV - Conditional Move Instructions = 0 (0)
00:00:01.493 PAT - Page Attribute Table = 0 (0)
00:00:01.493 PSE-36 - 36-bit Page Size Extention = 0 (0)
00:00:01.493 18 - Reserved = 0 (0)
00:00:01.493 19 - Reserved = 0 (0)
00:00:01.493 NX - No-Execute Page Protection = 0 (1)
00:00:01.493 DS - Debug Store = 0 (0)
00:00:01.493 AXMMX - AMD Extensions to MMX Instr. = 0 (0)
00:00:01.493 MMX - Intel MMX Technology = 0 (0)
00:00:01.493 FXSR - FXSAVE and FXRSTOR Instructions = 0 (0)
00:00:01.493 ?? - AMD fast FXSAVE and FXRSTOR Instr.= 0 (0)
00:00:01.493 26 - Reserved = 0 (0)
00:00:01.493 27 - Reserved = 0 (0)
00:00:01.493 28 - Reserved = 0 (0)
00:00:01.493 ?? - AMD Long Mode = 0 (1)
00:00:01.493 ?? - AMD Extensions to 3DNow = 0 (0)
00:00:01.493 ?? - AMD 3DNow = 0 (0)
00:00:01.493 LahfSahf - LAHF/SAHF in 64-bit mode = 0 (1)
00:00:01.493 CmpLegacy - Core MP legacy mode (depr) = 0 (0)
00:00:01.493 SVM - AMD VM Extensions = 0 (0)
00:00:01.493 3 - Reserved = 0 (0)
00:00:01.493 AltMovCR8 - LOCK MOV CR0 means MOV CR8 = 0 (0)
00:00:01.493 31:5 - Reserved = 0x0 (0x0)
00:00:01.493 Full Name: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
00:00:01.493
00:00:01.493 ******************** End of CPUID dump **********************
00:00:01.534 TM: cTSCTicksPerSecond=0x6d28aaf6 (1831381750) fTSCVirtualized=true fTSCUseRealTSC=false fMaybeUseOffsettedHostTSC=true
00:00:01.535 CoreCode: R3=b38a9000 R0=b38a9000 GC=a029a000 Phys=000000000a9c2000 cb=0x2000
00:00:01.546 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:01.546 Shared Folders service loaded.
00:00:01.562 PIIX3 ATA: LUN#0: disk, CHS=16383/16/63, total number of sectors 195371568
00:00:01.562 PIIX3 ATA: LUN#1: no unit
00:00:01.562 PIIX3 ATA: LUN#2: CD/DVD, total number of sectors 0, passthrough disabled
00:00:01.562 PIIX3 ATA: LUN#3: no unit
00:00:01.562 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:01.667 PIIX3 ATA: Ctl#1: finished processing RESET
00:00:01.771 NAT: DNS address: 208.67.222.222
00:00:01.771 NAT: ignored DNS address: 208.67.220.220
00:00:01.838 Changing the VM state from 'CREATING' to 'CREATED'.
00:00:01.838 Changing the VM state from 'CREATED' to 'RUNNING'.
00:00:01.849 Guest Log: BIOS: VirtualBox 1.4.0
00:00:01.849 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:01.870 PIT: mode=2 count=0x48d3 (18643) - 64.00 Hz (ch=0)
00:00:01.879 Display::handleDisplayResize(): pvVRAM=b2840000 w=640 h=480 bpp=8 cbLine=0x280
00:00:04.000 PIT: mode=2 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:00:04.001 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x00 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)
00:00:04.005 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:04.006 Guest Log: BIOS: ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
00:00:04.006 PIIX3 ATA: Ctl#1: RESET, DevSel=0 AIOIf=0 CmdIf0=0x00 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)
00:00:04.006 PIIX3 ATA: Ctl#1: finished processing RESET
00:00:04.008 Guest Log: BIOS: Boot from Floppy 0 failed
00:00:04.008 Guest Log: BIOS: CDROM boot failure code : 0003
00:00:04.008 Guest Log: BIOS: Boot from CD-ROM failed
00:00:04.009 Guest Log: BIOS: Booting from Hard Disk...
00:00:04.011 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x20 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)
00:00:04.011 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:04.018 Display::handleDisplayResize(): pvVRAM=00000000 w=720 h=400 bpp=0 cbLine=0x0
00:00:04.161 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x20 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)
00:00:04.161 PIIX3 ATA: Ctl#0: finished processing RESET
00:00:04.169 Guest Log: BIOS: int13_harddisk: function 41, unmapped device for ELDL=81
00:00:04.169 Guest Log: BIOS: int13_harddisk: function 08, unmapped device for ELDL=81
klaus
Oracle Corporation
Posts: 1436
Joined: 10. May 2007, 14:57

Post by klaus »

That sounds like a hard disk geometry problem. We have some reports from users that the current code causes problems like this, but no hint how to work around it.

From your log I see PCHS=16383/16/63 (which is correct) and LCHS=1024/255/63 (which might be incorrect). Can you give me the output of

Code: Select all

fdisk -l /dev/sda
on your host? Might give the clue I need.
flyco
Posts: 2
Joined: 17. Jun 2007, 07:19

Post by flyco »

The output you requested is:
fdisk -l /dev/sda

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972820 7 HPFS/NTFS
/dev/sda2 2612 2624 104420 83 Linux
/dev/sda3 2625 12161 76605952+ f W95 Ext'd (LBA)
/dev/sda5 2625 4582 15727603+ 83 Linux
/dev/sda6 4583 11900 58781803+ 83 Linux
/dev/sda7 11901 12161 2096451 82 Linux swap / Solaris
klaus
Oracle Corporation
Posts: 1436
Joined: 10. May 2007, 14:57

Post by klaus »

No clue then. the /255/63 in the detected LCHS is correct after all. The fact that the cylinders are clipped to 1024 in that geometry is irrelevant.
Post Reply