Skip to content

Instantly share code, notes, and snippets.

@marineam
Created September 12, 2013 02:22
Show Gist options
  • Save marineam/6532450 to your computer and use it in GitHub Desktop.
Save marineam/6532450 to your computer and use it in GitHub Desktop.
Testing Xen with PXE CoreOS images
#!/bin/bash
XEN=$HOME/xen-3.4.4
#XEN=$HOME/xen-4.2.2
KERNEL=$HOME/latest/coreos_developer_pxe.vmlinuz
INITRD=$HOME/latest/coreos_developer_pxe_image.cpio.gz
COREOS_ARGS="root=squashfs: state=tmpfs:"
XEN_ARGS="console=hvc0 earlyprintk=xen"
CPU=host
#CPU=qemu64,+avx
exec qemu-system-x86_64 -m 1024 \
-machine accel=kvm,kernel_irqchip=off -cpu $CPU \
-kernel $XEN -append "console=com1 noreboot" \
-initrd "$KERNEL $COREOS_ARGS $XEN_ARGS,$INITRD" \
-nographic "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment