User Tools

Site Tools


notes:vbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:vbox [2021/07/20 23:14] – created - external edit 127.0.0.1notes:vbox [2025/01/21 07:55] (current) – [Dumping Ground] azman
Line 1: Line 1:
 ====== VirtualBox Stuff ====== ====== VirtualBox Stuff ======
 +
 +===== Disk Image Management =====
 +
 +**Create Disk Image**
 +
 +<code bash>
 +$ VBoxManage createmedium disk --filename <file.vdi> --size <megabytes>
 +
 +$ VBoxManage createmedium disk --filename=/path/to/rawdisk.vmdk \
 +  --variant=RawDisk --format=VMDK --property RawDrive=/dev/sda
 +</code>
 +
 +**Convert Image to Disk**
 +
 +<code bash>$ VBoxManage convertfromraw -format VDI <file.img> <file.vdi></code>
 +
 +**Compact Disk Image**
 +
 +<code bash>$ VBoxManage modifymedium --compact <file.vdi></code>
 +
 +===== Dumping Ground =====
  
 Dumping this here... from my blog... Dumping this here... from my blog...
Line 37: Line 58:
  
 That will start a text editor. Write exactly what we typed before to boot. Press <Ctrl+s> and <Enter> to save, and <Ctrl+q> to quit. Now, your bootloader should execute when the system starts. That will start a text editor. Write exactly what we typed before to boot. Press <Ctrl+s> and <Enter> to save, and <Ctrl+q> to quit. Now, your bootloader should execute when the system starts.
 +</file>
 +
 +VirtualBox Serial Port<file text vbox_serial_port.txt>
 +We can actually use minicom to connect... 
 +$ minicom -D unix\#/tmp/xxx
 +where /tmp/xxx is the host pipe 8-)
 </file> </file>
  
 //more coming soon...// //more coming soon...//
  
notes/vbox.1626794099.txt.gz · Last modified: by 127.0.0.1