How to change location path disk by default

This is for discussing general topics about how to use VirtualBox.
Post Reply
Izi92
Posts: 15
Joined: 25. Oct 2017, 14:58

How to change location path disk by default

Post 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 !!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change location path disk by default

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Izi92
Posts: 15
Joined: 25. Oct 2017, 14:58

Re: How to change location path disk by default

Post 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
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change location path disk by default

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Izi92
Posts: 15
Joined: 25. Oct 2017, 14:58

Re: How to change location path disk by default

Post 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.
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: How to change location path disk by default

Post 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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change location path disk by default

Post 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.
???
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Izi92
Posts: 15
Joined: 25. Oct 2017, 14:58

Re: How to change location path disk by default

Post 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
Izi92
Posts: 15
Joined: 25. Oct 2017, 14:58

Re: How to change disk controller location/address on the PCI bus.

Post 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)
Izi92
Posts: 15
Joined: 25. Oct 2017, 14:58

How to change disk controller location/address on the PCI bus.

Post 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
towo2099
Volunteer
Posts: 362
Joined: 18. Aug 2014, 21:53
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Android, Linux

Re: How to change disk controller location/address on the PCI bus.

Post 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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to change location path disk by default

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply