Page 1 of 1
How to change location path disk by default
Posted: 25. Oct 2017, 15:06
by Izi92
Dear All,
I try to change the location path using by default by Virtualbox using Vboxmanage.
When i create a VM with script, i would like set this location path "PCIROOT(0)#PCI(1F05)#ATA(C00T00L00)" but by default, i have disk "PCIROOT(0)#PCI(0101)#ATA(C00T00L00)"
Is it possible?
Thanks for your help !!
Re: How to change location path disk by default
Posted: 25. Oct 2017, 15:32
by socratis
When someone hears/reads "default location path" they tend to think "default location path for VMs". That's not the problem in your case (the PCI part gave it away).
What is it that you want to do? In complete and full details please...
Re: How to change location path disk by default
Posted: 25. Oct 2017, 16:34
by Izi92
Hi socratis,
"Disk Location Path" is used by diskpart that's why i used this. Is based on the physical connection to the computer.
By default-->Location Path : PCIROOT(0)#PCI(0100)#ATA(C00T00L00)
My need -->Location Path : PCIROOT(0)#PCI(1F05)#ATA(C00T00L00)
Using Vboxmanage is it possible to change this ?
Please see the result of diskpart cmd
DISKPART> detail disk
HITACHI HTS722016K9SA00
Disk ID: 5E27161A
Type : ATA
Bus : 0
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(0100)#ATA(C00T00L00)
Read-only : No
Boot Disk : Yes
PagefileDisk : Yes
Hibernation File Disk : No
CrashdumpDisk : Yes
Clustered Disk : No
My need
DISKPART> detail disk
HITACHI HTS722016K9SA00
Disk ID: 5E27161A
Type : ATA
Bus : 0
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(1F05)#ATA(C00T00L00)
Read-only : No
Boot Disk : Yes
PagefileDisk : Yes
Hibernation File Disk : No
CrashdumpDisk : Yes
Clustered Disk : No
Re: How to change location path disk by default
Posted: 25. Oct 2017, 19:12
by socratis
There is not a place somewhere that VirtualBox uses the PCI root devices. Unless you're talking about raw access. So, I'm asking again:
socratis wrote:What is it that you want to do? In complete and full details please...
Re: How to change location path disk by default
Posted: 26. Oct 2017, 11:29
by Izi92
ok
I want to set a custom Location Path:
I am using a script to a physical computer and in this script i am using the Location Path is PCIROOT(0)#PCI(1F05)#ATA(C00T00L00) to create partitions. It is the physical link between the motherboard and the physical disk drive.
When i install a VM with VB and i used diskpart to see by default the Location Path allows by VB is PCIROOT(0)#PCI(0100)#ATA(C00T00L00). It is the virtual link between the virtual motherboard and the virtual disk drive.
Before to modify all my scripts, i just knew if it is possible to modify PCI parameters.
Re: How to change location path disk by default
Posted: 26. Oct 2017, 15:52
by Martin
If I read this correctly you don't want to change the disk location but the the disk controller location/address on the PCI bus.
Re: How to change location path disk by default
Posted: 26. Oct 2017, 15:59
by socratis
Izi92 wrote:It is the physical link between the motherboard and the physical disk drive.
???
Izi92 wrote:It is the virtual link between the virtual motherboard and the virtual disk drive.
???
Re: How to change location path disk by default
Posted: 26. Oct 2017, 17:59
by Izi92
Martin wrote:If I read this correctly you don't want to change the disk location but the the disk controller location/address on the PCI bus.
Of course
location path is the term used by diskpart
Re: How to change disk controller location/address on the PCI bus.
Posted: 2. Nov 2017, 12:46
by Izi92
Hi all,
I have changed the title to being more "clear"
There is a solution to change the virtual disk controller location/address on the PCI bus?
from PCIROOT(0)#PCI(0100)#ATA(C00T00L00)
to PCIROOT(0)#PCI(1F05)#ATA(C00T00L00)
How to change disk controller location/address on the PCI bus.
Posted: 3. Nov 2017, 12:06
by Izi92
Hi,
When i install VM, by default, Vbox allow PCI address "PCIROOT(0)#PCI(0100)#ATA(C00T00L00)" to the system disk.
See the result with diskpart.exe
DISKPART> detail disk
HITACHI HTS722016K9SA00
Disk ID: 5E27161A
Type : ATA
Bus : 0
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(0100)#ATA(C00T00L00)
Read-only : No
Boot Disk : Yes
PagefileDisk : Yes
Hibernation File Disk : No
CrashdumpDisk : Yes
Clustered Disk : No
Using VboxManage.exe it is possible to change PCI values ?
-->from PCIROOT(0)#PCI(0100)#ATA(C00T00L00)
-->to PCIROOT(0)#PCI(1F05)#ATA(C00T00L00)
i found to the documentation
VBoxManage modifyvm --pciattach <host PCI address [@ guest PCI bus address] but i do not understand if i can used this feature.
Thanks for your help
Re: How to change disk controller location/address on the PCI bus.
Posted: 3. Nov 2017, 12:59
by towo2099
i found to the documentation
VBoxManage modifyvm --pciattach <host PCI address [@ guest PCI bus address] but i do not understand if i can used this feature.
No, you can't. That (experimental) feature is for pci passthrough and only available on linux hosts.
Re: How to change location path disk by default
Posted: 3. Nov 2017, 20:19
by socratis
@Izi92
Keep in mind that according to the forum rules,
duplicate posts are not allowed. It's not good etiquette. For the moment I simply merged your two topics.