1 |
------------ |
2 |
QEMU NOTES |
3 |
------------ |
4 |
|
5 |
Since the qemu docs blow, I'll make some quick notes here for how to get a |
6 |
system running for baselayout testing. |
7 |
|
8 |
- create rootfs (feel free to tweak 500M): |
9 |
$ dd if=/dev/zero of=root.img bs=1M count=500M |
10 |
$ mke2fs -F -j root.img |
11 |
- install Gentoo stage3: |
12 |
$ mkdir loop |
13 |
$ mount -o loop root.img loop |
14 |
$ sudo tar pjxf stage3-x86.tar.bz2 -C loop |
15 |
$ sudo chroot loop |
16 |
<all you really need to configure is like /etc/fstab> |
17 |
/dev/hda / ext3 noatime 0 1 |
18 |
$ umount loop |
19 |
- create an x86 kernel from a vanilla tarball: |
20 |
- make sure you enable serial console support |
21 |
- you shouldn't need any modifications, just grab a recent vanilla |
22 |
- run qemu: |
23 |
$ qemu \ |
24 |
-hda root.img \ |
25 |
-append "root=/dev/hda console=ttyS0" \ |
26 |
-kernel your-compiled-vmlinux \ |
27 |
-nographic |