Created
September 12, 2013 02:22
-
-
Save marineam/6532450 to your computer and use it in GitHub Desktop.
Testing Xen with PXE CoreOS images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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