notes:vbox
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes:vbox [2025/01/21 07:53] – azman | notes:vbox [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== VirtualBox Stuff ====== | ||
| - | |||
| - | ===== Disk Image Management ===== | ||
| - | |||
| - | **Create Disk Image** | ||
| - | |||
| - | <code bash> | ||
| - | $ VBoxManage createmedium disk --filename < | ||
| - | |||
| - | $ VBoxManage createmedium disk --filename=/ | ||
| - | --variant=RawDisk --format=VMDK --property RawDrive=/ | ||
| - | </ | ||
| - | |||
| - | **Convert Image to Disk** | ||
| - | |||
| - | <code bash>$ VBoxManage convertfromraw -format VDI < | ||
| - | |||
| - | **Compact Disk Image** | ||
| - | |||
| - | <code bash>$ VBoxManage modifymedium --compact < | ||
| - | |||
| - | ===== Dumping Ground ===== | ||
| - | |||
| - | Dumping this here... from my blog... | ||
| - | |||
| - | VirtualBox EFI Screen Resolution <file text vbox_screenres.txt> | ||
| - | The window of a VirtualBox VM with EFI boot simply cannot fit my laptop screen - and I hate running a VM with scrollbars. So, after looking around for while, I found the solution. Understandably, | ||
| - | |||
| - | VBoxManage setextradata LiveBox VBoxInternal2/ | ||
| - | |||
| - | I want the window for my VM (LiveBox) to be at most 800x600. We can check that value by running, | ||
| - | |||
| - | | ||
| - | |||
| - | While we are at it, to view the current firmware used by a VM, | ||
| - | |||
| - | VBoxManage showvminfo LiveBox | grep Firmware | ||
| - | |||
| - | And, finally, to actually select a firmware (options: bios / efi), | ||
| - | |||
| - | VBoxManage modifyvm LiveBox --firmware efi | ||
| - | |||
| - | That's about that. | ||
| - | </ | ||
| - | |||
| - | VirtualBox EFI Shell< | ||
| - | I am using VirtualBox quite a bit (I occasionally go qemu from time to time), especially to test my live Linux builds. I now mostly setup my virtual machines to have the EFI boot enabled. However, whenever I do an installation, | ||
| - | |||
| - | To boot the previously installed system, you need to identity your EFI partition (e.g. fs0) from the listed devices and look for the path to the bootloader (e.g. grubx64.efi). You can type (these are case insensitive), | ||
| - | |||
| - | FS0: | ||
| - | \EFI\ubuntu\grubx64.efi | ||
| - | |||
| - | It should now boot. But, you will still get that prompt on the next boot. To make it permanent, | ||
| - | |||
| - | FS0: | ||
| - | edit startup.nsh | ||
| - | |||
| - | That will start a text editor. Write exactly what we typed before to boot. Press < | ||
| - | </ | ||
| - | |||
| - | //more coming soon...// | ||
notes/vbox.1737417206.txt.gz · Last modified: by azman
