On Fri, Jan 20, 2012 at 11:52 AM, Bruce Dubbs <[email protected]> wrote: > Has anyone done a kvm or qemu installation in LFS? Right now I'm > working on dracut so I can put in instruction for an initramfs in the > filesystems section of the book, but the testing wants either a kvm or > qemu installation to run. > > I can back up and research these and put them in the book, but I am > hoping someone else has already done at least one of them and will share > the instructions/notes. > > -- Bruce > -- > http://linuxfromscratch.org/mailman/listinfo/blfs-dev > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page
./configure --prefix=/usr \ --audio-drv-list=alsa && make && make install will install qemu. (BTW, make -j# uses up a ton of ram for some reason) Some of the kvm have been upstreamed into qemu, so I usually just use that these days. To create an image qemu-img create -f qcow2 filename.img 20G (There are other formats, including raw which seems to be quite popular) and to run w/ paravirtualized hardware qemu-system-x86_64 \ -drive file=filename.img,if=virtio \ -net nic,model=virtio -net tap \ -m 1024 -localtime -soundhw hda \ -enable-kvm simplified a bit... qemu-system-x86_64 \ -drive file=filename.img \ -net nic -net tap \ -m 1024 -localtime -soundhw hda \ -enable-kvm I had -cpu host at one point, but I think they changed that (was supose to present the same CPU that your host had). -boot c boots the first drive, -boot d boots the 2nd one See the bridgeutils thread for my bridgeutils integration -- Nathan Coulson (conathan) ------ Location: British Columbia, Canada Timezone: PST (-8) Webpage: http://www.nathancoulson.com -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
