tamalsaha / learn-firecracker

1 stars 0 forks source link

block device #5

Open tamalsaha opened 1 year ago

tamalsaha commented 1 year ago

File based block device

tamalsaha commented 1 year ago

https://gruchalski.com/posts/2021-02-14-firecracker-vmm-with-additional-disks/

tamalsaha commented 1 year ago
tamalsaha commented 1 year ago
tamalsaha commented 1 year ago
tamalsaha commented 1 year ago

GH actions disk size

Run sudo fdisk -l
Disk /dev/loop0: 63.23 MiB, 66293760 bytes, 1294[8](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:9)0 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop1: 67.83 MiB, 71106560 bytes, 138880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop2: 47.102 MiB, 50323456 bytes, [9](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:10)8288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sda: 86 GiB, 92341796864 bytes, 180355072 sectors
Disk model: Virtual Disk    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 594B3D04-3E9E-4A98-993A-5B951F81E98B

Device      Start       End   Sectors  Size Type
/dev/sda1  227328 180355038 180127711 85.9G Linux filesystem
/dev/sda14   2048     [10](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:11)239      8192    4M BIOS boot
/dev/sda15  10240    227327    217088  106M EFI System

Partition table entries are not in disk order.

Disk /dev/sdb: 14 GiB, 15032385536 bytes, 29360128 sectors
Disk model: Virtual Disk    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2e554064

Device     Boot Start      End  Sectors Size Id Type
/dev/sdb1        2048 29358079 29356032  [14](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:15)G  7 HPFS/NTFS/exFAT
---------------
NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0     7:0    0 63.2M  1 loop /snap/core20/1623
loop1     7:1    0 67.8M  1 loop /snap/lxd/22753
loop2     7:2    0   48M  1 loop /snap/snapd/16778
sda       8:0    0   86G  0 disk 
├─sda1    8:1    0 85.9G  0 part /
├─sda14   8:14   0    4M  0 part 
└─sda[15](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:16)   8:15   0  106M  0 part /boot/efi
sdb       8:[16](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:17)   0   14G  0 disk 
└─sdb1    8:[17](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:18)   0   14G  0 part /mnt
---------------
# CLOUD_IMG: This file was created/modified by the Cloud Image build process
UUID=745074e2-ea29-4[26](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:27)0-baf1-526a6a7ea84b /    ext4   defaults,discard    0 1
UUID=[38](https://github.com/tamalsaha/gh-actions-demo/actions/runs/3131963889/jobs/5083822673#step:5:39)0B-0A81    /boot/efi   vfat    umask=0077  0 1
/dev/disk/cloud/azure_resource-part1    /mnt    auto    defaults,nofail,x-systemd.requires=cloud-init.service,_netdev,comment=cloudconfig   0   2
tamalsaha commented 1 year ago

Firecracker Limitation

KVM Block Device Physical Disk