Skip to content

Instantly share code, notes, and snippets.

@limepanda
limepanda / kvm-migration.txt
Last active January 26, 2024 23:26
migrate qcow2 image to zfs volume
qemu-img convert -O raw <infile.(vdi|vmdk|$whatever)> /dev/zvol/rpool/data/<vmid>-disk0
@limepanda
limepanda / e820
Created August 2, 2013 06:45
debian bios e820
BIOS-e820: 000000000 00000000000a0000 (reserved)
[ 0.0000] BIOS-e820: 000000000010000000bf3b0000 (reserved)
[ 0.0000BIOS-e820: 00000000bf5af000 000bf5cb000 (usable)
[ 0.000000] BS-e820: 00000000bf5cf000 - 05e1000 (reserved)
[ 0.000000] BIOS0: 00000000bf5f2000 - 00000000 (usable)
[ 0.000000] BIOS-e82000000000bf6bf000 - 00000000b(ACPI data)
[ 0.000000] BIOS-e82000000bf800000 - 00000000c000reserved)
[ 0.000000] BIOS-e820: 000000fec00000 - 00000000fec0eserved)
[ 0.000000] BIO0000000fee00000 - 00000000fereserved)
[ 0.000000] BIOS-e820: 0000000100000000 - 0000000840000000 (usable)
@limepanda
limepanda / e820
Created August 2, 2013 06:45
debian bios e820
BIOS-e820: 000000000 00000000000a0000 (reserved)
[ 0.0000] BIOS-e820: 000000000010000000bf3b0000 (reserved)
[ 0.0000BIOS-e820: 00000000bf5af000 000bf5cb000 (usable)
[ 0.000000] BS-e820: 00000000bf5cf000 - 05e1000 (reserved)
[ 0.000000] BIOS0: 00000000bf5f2000 - 00000000 (usable)
[ 0.000000] BIOS-e82000000000bf6bf000 - 00000000b(ACPI data)
[ 0.000000] BIOS-e82000000bf800000 - 00000000c000reserved)
[ 0.000000] BIOS-e820: 000000fec00000 - 00000000fec0eserved)
[ 0.000000] BIO0000000fee00000 - 00000000fereserved)
[ 0.000000] BIOS-e820: 0000000100000000 - 0000000840000000 (usable)
@limepanda
limepanda / pxegrub
Created August 2, 2013 06:26
PXEGRUB & OpenSolaris Legacy
PXEGRUB & OpenSolaris Legacy
OpenSolaris traditionally was netbooted using PXEGRUB. The procedure was to copy the boot framework from the OpenSolaris ISO to /tftpboot and symlink /tftpboot/I86PC.Solaris_11-XXX/grub/pxegrub to /tftpboot/nbp.SUNW.i86pc. The grub menu would be found in /tftboot/boot/grub/menu.lst.
Booting SmartOS using PXEGRUB is now obsolete. You certainly can do it if you wish, particularly for compatibility with existing deployments, but we strongly recommend using iPXE for all new deployments.
For those who insist on using GRUB, here is an example GRUB menu.lst:
default=0
timeout=5