Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I've installed a virtual machine on my computer. and I want to boot from its hard disk(which is on my /home/xen/domains/test1/disk.img). what I need is create a grub entry for this. please tell me the steps
By /home/xen/domains/test1/disk.img I may assume you are using Xen for Virtualization.
If you have already installed the VM, then boot it by pressing POWERON button if you are using Virtual machine manager. I could not really understand what is your difficulty in switching on the VM ?
You need to boot through xen kernel when your machine boots.
Please try to give more details about your problem. By the by which distro are you using ?
I've installed a virtual machine on my computer. and I want to boot from its hard disk(which is on my /home/xen/domains/test1/disk.img). what I need is create a grub entry for this. please tell me the steps
Do you mean that you want to boot the .img file on the real hardware?
ISOLinux offers some the ability to boot from a Linux hard drive image. I am not sure if you could manipulate it to boot your VM image but i think it is about your best shot.
ISOLinux offers some the ability to boot from a Linux hard drive image. I am not sure if you could manipulate it to boot your VM image but i think it is about your best shot.
If it can be done, there may be issues with the OS in the .img file finding itself running on different hardware depending on whether it is booted in the real computer or a virtual machine. If the OS is Windows, these issues will be significant; if it is Linux it will probably be OK perhaps with a few small adjustments, depending on how generic the kernel is. It would be prudent to back up the .img file before experimenting.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 2,612
Rep:
theoretically possible but probably not feasable, though if the /boot partition and initrd were on a real partition maybe possible in theory if you could make linux think the disk image were a block device but probably would require far more work then it's worth to accomplish if even possible
Ok. Do any one know how ubuntu boots when it is installed inside windows. If you have installed like that please post the menu.lst or grub.cfg so we can see how it is done in grub.
Ok. Do any one know how ubuntu boots when it is installed inside windows. If you have installed like that please post the menu.lst or grub.cfg so we can see how it is done in grub.
A lot of information here. Ask again if you get stuck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.