rcu-test-image.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. This document describes one way to created the rcu-test-image file
  2. that contains the filesystem used by the guest-OS kernel. There are
  3. probably much better ways of doing this, and this filesystem could no
  4. doubt be smaller. It is probably also possible to simply download
  5. an appropriate image from any number of places.
  6. That said, here are the commands:
  7. ------------------------------------------------------------------------
  8. dd if=/dev/zero of=rcu-test-image bs=400M count=1
  9. mkfs.ext3 ./rcu-test-image
  10. sudo mount -o loop ./rcu-test-image /mnt
  11. # Replace "precise" below with your favorite Ubuntu release.
  12. # Empirical evidence says this image will work for 64-bit, but...
  13. # Note that debootstrap does take a few minutes to run. Or longer.
  14. sudo debootstrap --verbose --arch i386 precise /mnt http://archive.ubuntu.com/ubuntu
  15. cat << '___EOF___' | sudo dd of=/mnt/etc/fstab
  16. # UNCONFIGURED FSTAB FOR BASE SYSTEM
  17. #
  18. /dev/vda / ext3 defaults 1 1
  19. dev /dev tmpfs rw 0 0
  20. tmpfs /dev/shm tmpfs defaults 0 0
  21. devpts /dev/pts devpts gid=5,mode=620 0 0
  22. sysfs /sys sysfs defaults 0 0
  23. proc /proc proc defaults 0 0
  24. ___EOF___
  25. sudo umount /mnt
  26. ------------------------------------------------------------------------
  27. References:
  28. http://sripathikodi.blogspot.com/2010/02/creating-kvm-bootable-fedora-system.html
  29. https://help.ubuntu.com/community/KVM/CreateGuests
  30. https://help.ubuntu.com/community/JeOSVMBuilder
  31. http://wiki.libvirt.org/page/UbuntuKVMWalkthrough
  32. http://www.moe.co.uk/2011/01/07/pci_add_option_rom-failed-to-find-romfile-pxe-rtl8139-bin/ -- "apt-get install kvm-pxe"
  33. http://www.landley.net/writing/rootfs-howto.html
  34. http://en.wikipedia.org/wiki/Initrd
  35. http://en.wikipedia.org/wiki/Cpio
  36. http://wiki.libvirt.org/page/UbuntuKVMWalkthrough