Raw-partition VMDK not working as emulated SCSI or SATA?
Posted: 16. Oct 2010, 10:09
Hi,
I'm a Virtualbox newbie; I just installed (and am trying to learn how to use) 3.2.1.0 (not OSE) on OS X 10.6.4. I've noticed that when I create a raw-partition VMDK, it only seems to work if I attach it to an IDE controller, not a SCSI or a SATA one. I haven't tried SAS yet.
I searched the forums and found this: http://forums.virtualbox.org/viewtopic. ... 5&p=146390 -- which doesn't really help. I'd rather not have to use IDE since if this works I plan to give my VM a 4 TB raw partition on my (the host computer's) RAID, and I doubt if that big of a virtual disk will work with an emulated IDE controller.
Here's what I'm doing: (output from commands deleted as it is a LOT of text -- I can post the output from the commands if people want to see it, though)
VBoxManage createvm --name test1 --ostype FreeBSD_64 --register
VBoxManage modifyvm test1 --memory 512 --rtcuseutc on --nic1 bridged --bridgeadapter1 en0:
VBoxManage storagectl test1 --name sata_1 --add sata --hostiocache off
VBoxManage internalcommands createrawvmdk -filename /Volumes/corridor_vms/disks/test1_1.vmdk -rawdisk /dev/disk1s2 -register
VBoxManage modifyhd /Volumes/corridor_vms/disks/test1_1.vmdk -type writethrough
VBoxManage storageattach test1 --storagectl sata_1 --port 0 --device 0 --type hdd --medium /Volumes/corridor_vms/disks/test1_1.vmdk
VBoxManage storagectl test1 --name ide_1 --add ide
VBoxManage openmedium dvd ~/FreeBSD-8.1-RELEASE-amd64-dvd1.iso
VBoxManage storageattach test1 --storagectl ide_1 --port 0 --device 1 --type dvddrive --medium ~/FreeBSD-8.1-RELEASE-amd64-dvd1.iso
VBoxManage setproperty vrdpauthlibrary VRDPAuthSimple
VBoxManage modifyvm test1 --vrdp on --vrdpport 7123 --vrdpaddress 127.0.0.1 --vrdpmulticon on --vrdpauthtype external
VBoxManage setextradata test1 VRDPAuthSimple/users/(redacted) (redacted)
> VBoxHeadless --startvm test1 --vrdp=config
Oracle VM VirtualBox Headless Interface 3.2.10
(C) 2008-2010 Oracle Corporation
All rights reserved.
Listening on port 7123.
Error: failed to start machine. Error message: VD: error VERR_NOT_SUPPORTED opening image file '/Volumes/corridor_vms/disks/test1_1.vmdk' (VERR_NOT_SUPPORTED).
VD: error VERR_NOT_SUPPORTED opening image file '/Volumes/corridor_vms/disks/test1_1.vmdk' (VERR_NOT_SUPPORTED).
Failed to open image '/Volumes/corridor_vms/disks/test1_1.vmdk' in read-write mode rc=VERR_NOT_SUPPORTED (VERR_NOT_SUPPORTED).
Failed to attach driver below us! Not supported. (VERR_NOT_SUPPORTED).
AHCI: Failed to attach drive to Port0 (VERR_NOT_SUPPORTED).
Unknown error creating VM (VERR_NOT_SUPPORTED)
However, when I then do this:
VBoxManage storageattach test1 --storagectl sata_1 --port 0 --device 0 --type hdd --medium none
VBoxManage storagectl test1 --name sata_1 --remove
VBoxManage storageattach test1 --storagectl ide_1 --port 0 --device 0 --type hdd --medium /Volumes/corridor_vms/disks/test1_1.vmdk
> VBoxHeadless --startvm test1 --vrdp=config
Oracle VM VirtualBox Headless Interface 3.2.10
(C) 2008-2010 Oracle Corporation
All rights reserved.
Listening on port 7123.
It works fine.
Any clues? Is there some better place I should post this? Should I file a bug?
Thanks!! BTW, the above is much further than I got with VMWare Fusion -- boy was that a waste of $50. So I'm glad to be in the VirtualBox camp. :-)
I'm a Virtualbox newbie; I just installed (and am trying to learn how to use) 3.2.1.0 (not OSE) on OS X 10.6.4. I've noticed that when I create a raw-partition VMDK, it only seems to work if I attach it to an IDE controller, not a SCSI or a SATA one. I haven't tried SAS yet.
I searched the forums and found this: http://forums.virtualbox.org/viewtopic. ... 5&p=146390 -- which doesn't really help. I'd rather not have to use IDE since if this works I plan to give my VM a 4 TB raw partition on my (the host computer's) RAID, and I doubt if that big of a virtual disk will work with an emulated IDE controller.
Here's what I'm doing: (output from commands deleted as it is a LOT of text -- I can post the output from the commands if people want to see it, though)
VBoxManage createvm --name test1 --ostype FreeBSD_64 --register
VBoxManage modifyvm test1 --memory 512 --rtcuseutc on --nic1 bridged --bridgeadapter1 en0:
VBoxManage storagectl test1 --name sata_1 --add sata --hostiocache off
VBoxManage internalcommands createrawvmdk -filename /Volumes/corridor_vms/disks/test1_1.vmdk -rawdisk /dev/disk1s2 -register
VBoxManage modifyhd /Volumes/corridor_vms/disks/test1_1.vmdk -type writethrough
VBoxManage storageattach test1 --storagectl sata_1 --port 0 --device 0 --type hdd --medium /Volumes/corridor_vms/disks/test1_1.vmdk
VBoxManage storagectl test1 --name ide_1 --add ide
VBoxManage openmedium dvd ~/FreeBSD-8.1-RELEASE-amd64-dvd1.iso
VBoxManage storageattach test1 --storagectl ide_1 --port 0 --device 1 --type dvddrive --medium ~/FreeBSD-8.1-RELEASE-amd64-dvd1.iso
VBoxManage setproperty vrdpauthlibrary VRDPAuthSimple
VBoxManage modifyvm test1 --vrdp on --vrdpport 7123 --vrdpaddress 127.0.0.1 --vrdpmulticon on --vrdpauthtype external
VBoxManage setextradata test1 VRDPAuthSimple/users/(redacted) (redacted)
> VBoxHeadless --startvm test1 --vrdp=config
Oracle VM VirtualBox Headless Interface 3.2.10
(C) 2008-2010 Oracle Corporation
All rights reserved.
Listening on port 7123.
Error: failed to start machine. Error message: VD: error VERR_NOT_SUPPORTED opening image file '/Volumes/corridor_vms/disks/test1_1.vmdk' (VERR_NOT_SUPPORTED).
VD: error VERR_NOT_SUPPORTED opening image file '/Volumes/corridor_vms/disks/test1_1.vmdk' (VERR_NOT_SUPPORTED).
Failed to open image '/Volumes/corridor_vms/disks/test1_1.vmdk' in read-write mode rc=VERR_NOT_SUPPORTED (VERR_NOT_SUPPORTED).
Failed to attach driver below us! Not supported. (VERR_NOT_SUPPORTED).
AHCI: Failed to attach drive to Port0 (VERR_NOT_SUPPORTED).
Unknown error creating VM (VERR_NOT_SUPPORTED)
However, when I then do this:
VBoxManage storageattach test1 --storagectl sata_1 --port 0 --device 0 --type hdd --medium none
VBoxManage storagectl test1 --name sata_1 --remove
VBoxManage storageattach test1 --storagectl ide_1 --port 0 --device 0 --type hdd --medium /Volumes/corridor_vms/disks/test1_1.vmdk
> VBoxHeadless --startvm test1 --vrdp=config
Oracle VM VirtualBox Headless Interface 3.2.10
(C) 2008-2010 Oracle Corporation
All rights reserved.
Listening on port 7123.
It works fine.
Any clues? Is there some better place I should post this? Should I file a bug?
Thanks!! BTW, the above is much further than I got with VMWare Fusion -- boy was that a waste of $50. So I'm glad to be in the VirtualBox camp. :-)