mirror of
https://bitbucket.org/mangelo/snippets.git
synced 2024-11-21 18:31:00 +02:00
Virtualbox.
This commit is contained in:
parent
f8f1055a9b
commit
c9bed8e5d0
@ -87,6 +87,12 @@
|
||||
# Create a hdd disk.
|
||||
VBoxManage createmedium disk --filename hdddisk.vdi --size 2048 --format VDI --variant Standard
|
||||
|
||||
# Compact a hdd disk.
|
||||
VBoxManage modifymedium hdddisk.vdi --compact
|
||||
|
||||
# Change hdd disk uuid.
|
||||
VBoxManage internalcommands sethduuid hdddisk.vdi
|
||||
|
||||
# Add hdd to vm.
|
||||
VBoxManage storageattach VMNAME --storagectl sata --port 0 --type hdd --mtype normal --medium FILENAME.vdi
|
||||
|
||||
@ -112,9 +118,6 @@
|
||||
# Boot from hdd only.
|
||||
VBoxManage modifyvm VMNAME --boot1 disk --boot2 none --boot3 none --boot4 none
|
||||
|
||||
# Compact a hdd.
|
||||
VBoxManage modifymedium FILENAME.vdi --compact
|
||||
|
||||
|
||||
#----- Serial port to host pipe -----
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user