Lvm und virtualbox
Zur Navigation springen
Zur Suche springen
First, I created the lvm volume
lvcreate --name www --size 10G images
Next, I created a vmdk file which describes the disk properties using the VBoxManage command:
VBoxManage internalcommands createrawvmdk -filename /vbox/www.vmdk -rawdisk /dev/images/www
Here are the contents of the vmdk file after running that command:
# Disk DescriptorFile version=1 CID=e5ee218c parentCID=ffffffff createType="fullDevice" # Extent description RW 20971520 FLAT "/dev/images/www" 0
# The disk Data Base #DDB ddb.virtualHWVersion = "4" ddb.adapterType="ide" ddb.geometry.cylinders="16383" ddb.geometry.heads="16" ddb.geometry.sectors="63" ddb.uuid.image="46527bd3-f962-43cc-8a43-11aafd3425aa" ddb.uuid.parent="00000000-0000-0000-0000-000000000000" ddb.uuid.modification="00000000-0000-0000-0000-000000000000" ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000" ddb.geometry.biosCylinders="1024" ddb.geometry.biosHeads="255" ddb.geometry.biosSectors="63"