Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- [ $# -eq 2 ] || exec echo "Usage: $0 <install.iso> <disk.img>"
- root=/tmp/${0##*/}.$$
- mkdir $root
- sudo mount -r -oloop "$1" $root
- kvm -m 512 -no-reboot -nographic -boot d -cdrom "$1" "$2" -kernel $root/install.*/vmlinuz -initrd $root/install.*/initrd.gz -append console=ttyS0
- sudo umount $root
- rmdir $root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement