Re: [blfs-support] running lfs as guestOS on virtulisation setup
On Friday 07 March 2014 12:39:31 Pierre Labastie wrote: For (ii), you can: - copy an existing LFS/BLFS to a virtual disk (using for example qemu-img), or - use qemu-nbd to see a virtual disk as a system disk, and build to that disk (you need the nbd kernel module, and the nbd-client utility). thanks a lot for this. I did not know about qemu-img nor qemu-nbd (Indicently do you know of any documentation on these utilities I can read ? ) = ps I had already managed to install qemu on lfs which I intend to be a host. thanks again. -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Hello, There is a wiki site available for the use of qemu-img: http://en.wikibooks.org/wiki/QEMU/Images#Creating_an_image Regards, Christopher -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] running lfs as guestOS on virtulisation setup
On Friday 07 March 2014 12:39:31 Pierre Labastie wrote: For (ii), you can: - copy an existing LFS/BLFS to a virtual disk (using for example qemu-img), or - use qemu-nbd to see a virtual disk as a system disk, and build to that disk (you need the nbd kernel module, and the nbd-client utility). thanks a lot for this. I did not know about qemu-img nor qemu-nbd (Indicently do you know of any documentation on these utilities I can read ? ) = ps I had already managed to install qemu on lfs which I intend to be a host. thanks again. -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] running lfs as guestOS on virtulisation setup
On Friday 07 March 2014 17:07:12 Bruce Dubbs wrote: You could probably boot to a live iso and copy files from a LFS/BLFS partition to the virtual disk. Note that the kernel drivers will be different, so you would need to rebuild the kernel. Other files such as ifconfig.eth0, hostname, etc would be different, but could be changed after boot. thanks for the info will give it a whirl sometime -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] running lfs as guestOS on virtulisation setup
Le 07/03/2014 16:42, lux-integ a écrit : I did not know about qemu-img nor qemu-nbd (Indicently do you know of any documentation on these utilities I can read ? ) The html documentation shipped with qemu,and the man page for qemu-img are good for qemu-img (I think you need qemu-img convert). For qemu-nbd. I used: http://blog.vmsplice.net/2011/02/how-to-access-virtual-machine-image.html with thesse 2 differences: - I did not use kpartx - the command for disconnection is nbd-client -d /dev/nbd0. Pierre -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] running lfs as guestOS on virtulisation setup
Le 07/03/2014 10:11, lux-integ a écrit : Greetings, I have recently been dabbling with 2 virtualiisation programs on linux. These are qemu/kvm ( http://www.qemu.org http://www.linux-kvm.org ) and VirtualBox ( http://www.virtualbox.org ). Both install as host on a typical LFS setup I use ( cpu =amd64, pure 64bit build, kernel-3.10.something ).. Both have 'menus' for installing standard linux 'distros' (i.e. from opticalDisks as guest-OS. BUT I want to use lfs/blfs as a guest. I am spoilt by its stability and knowing-where-things-are etc.. Here are some questions. to which aswers and comments to would be welcomed:- --Is there a way to install lfs/blfs as guestOS on typcal virtualisation setups using say qemu or virtualBox? I do not know much about virtualbox, but can give some pointers about qemu: I do not know exactly what you mean with the item above: Do you want to: (i) build LFS/BLFS in the virtual machine, or (ii) just have it as a guest OS, after building it on the host machine? For (i), the best is to install a standard distro on the virtual machine, then build LFS/BLFS with this distro. For (ii), you can: - copy an existing LFS/BLFS to a virtual disk (using for example qemu-img), or - use qemu-nbd to see a virtual disk as a system disk, and build to that disk (you need the nbd kernel module, and the nbd-client utility). --is it possible to install the guest blfsOS first then install the hostOS then somehow containorise the guest to run as a user process I think qemu as a user mode, which does just that. I have not much played with it. Regards Pierre -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] running lfs as guestOS on virtulisation setup
lux-integ wrote: Greetings, I have recently been dabbling with 2 virtualiisation programs on linux. These are qemu/kvm ( http://www.qemu.org http://www.linux-kvm.org ) and VirtualBox ( http://www.virtualbox.org ). Both install as host on a typical LFS setup I use ( cpu =amd64, pure 64bit build, kernel-3.10.something ).. Both have 'menus' for installing standard linux 'distros' (i.e. from opticalDisks as guest-OS. BUT I want to use lfs/blfs as a guest. I am spoilt by its stability and knowing-where-things-are etc.. Here are some questions. to which aswers and comments to would be welcomed:- --Is there a way to install lfs/blfs as guestOS on typcal virtualisation setups using say qemu or virtualBox? I've only used qemu as in the book, but you can certainly build LFS there. --is it possible to install the guest blfsOS first then install the hostOS then somehow containorise the guest to run as a user process You could probably boot to a live iso and copy files from a LFS/BLFS partition to the virtual disk. Note that the kernel drivers will be different, so you would need to rebuild the kernel. Other files such as ifconfig.eth0, hostname, etc would be different, but could be changed after boot. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page