LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 01-11-2013, 05:37 AM   #1
ssanthshtech
Member
 
Registered: Jan 2013
Location: bangalore,india
Distribution: Ubuntu 12.4
Posts: 35

Rep: Reputation: Disabled
creating virtual disk and installing grub and use with qemu


hi..
this is my first thread... completed building linux from scratch with help of lfs7.2 book on my host ubuntu 12.4 .now i want to load the lfs source in qemu for that i followed this link https://github.com/xvisor/xvisor/blo...disk-howto.txt

1. Create disk image
2. Partitioning the disk
2.2 Creating primary partition
3 Setting up loopback device
3.2 Formatting with ext2
3.3 Mounting the virtual drive
4. Installing grub
==================
For this step please ensure that you have grub installed on your box

in this fourth step i dont know how to install in my virtual drive

i tried like sudo grub-install /dev/loop0
error as /dev/loop0 does not have any corresponding BIOS drive.
how to solve this ........
linuxubuntu ssanthshtech is online now Edit/Delete Message
 
Old 01-11-2013, 09:14 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,317

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
See these two posts. Between them I think you can get it installed.

http://superuser.com/questions/13095...to-an-img-file

http://ebroder.net/2009/08/04/instal...-a-disk-image/


And welcome to LQ.
 
Old 01-12-2013, 02:56 AM   #3
ssanthshtech
Member
 
Registered: Jan 2013
Location: bangalore,india
Distribution: Ubuntu 12.4
Posts: 35

Original Poster
Rep: Reputation: Disabled
i dont know wr i did mistake it also gives error that two links are good but can u give some other suggestions based on my link ...
 
Old 01-15-2013, 01:18 AM   #4
ssanthshtech
Member
 
Registered: Jan 2013
Location: bangalore,india
Distribution: Ubuntu 12.4
Posts: 35

Original Poster
Rep: Reputation: Disabled
need to load lfs root filesyatem on qemu for that i need to create a virtual harddisk for that i want to install grub in virtual disk i tried lot getting errors give me som more suggustions new to linux struggling to learn....
 
Old 01-15-2013, 07:20 AM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 11,317

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
You don't need to create a virtual hard drive for qemu. Just dd the disk if you want and use it as a raw image. Otherwise you may try other tools like clonezilla or maybe partimage/gparted sort of copies or tar cpio and rsync.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating virtual disk and installing grub and use with qemu ssanthshtech Linux - Newbie 4 01-14-2013 11:13 PM
Mount the QEmu virtual disk/Access CD Rom Iresh Ubuntu 2 07-18-2007 06:08 PM
Old Windows 98 Disk not being recognized when installing XP upgrade - in Ubuntu QEMU linuxnewbie153 Ubuntu 1 07-03-2007 06:40 PM
Old Windows 98 Disk not being recognized when installing XP upgrade - in Ubuntu QEMU linuxnewbie153 Ubuntu 1 07-03-2007 04:01 PM
Creating Boot loader disks rather then installing GRUB to hard disk?? barry237 Fedora 1 06-19-2004 10:52 AM


All times are GMT -5. The time now is 07:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration