Getting a virtual LWP under KVM

Jurjen Bokma


  1.   kvm-img create -f qcow2 vdisk.img 80G
    Formatting 'vdisk.img', fmt=qcow2 size=85899345920 encryption=off cluster_size=0

    1. Surf to (you may want to use a newer version, if any)

      Select USB Keychain disk image (.usb) as the output format.

    2. Click the Customize button.

      Surf to and copy the entire script you find there.

      Paste it into the Embedded Script box on the ROM-o-matic page.

    3. Click the Get Image button to fetch the boot image. Mine was called gpxe-1.0.0-gpxe.usb

  2.   kvm -net nic -net user -m 2000 -smp 2 -name pxe_boot_test -drive file=./vdisk.img,if=ide,index=0 -drive file=./gpxe-1.0.0-gpxe.usb,if=ide,index=1,boot=on

    That should give you a VM and start the LWP installer inside it.

  3. The virtual machine so installed can be used with:

    kvm -net nic -net user -m 2000 -smp 2 -name pxe_boot_test -drive file=./vdisk.img,if=ide,index=0,boot=on