LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-09-2015, 08:50 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
Using QEMU for the first time


I have CentOS 6.6 installed on my notebook and would like to use QEMU to build a RHEL 6 machine. I created the OS tree under pub/rhel6. I can use a browser to get to that location. After I set up my configuration and start the install, the new machine starts to boot, but ends up stopping when it can't find:

ftp://xxx.xxx.xxx.xxx/pub/rhel6/images/install.img


Though I can browse to that location and can find it under:

/var/ftp/pub/rhel6/images

I am thinking I have overlooked something simple.
 
Old 03-10-2015, 04:57 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
To use qemu, normally you will have downloaded a CD/DVD disk image.
You use this CD image as the -cdrom part when starting qemu.
If you want to create a HDD image, use qemu-img to create an empty disk image, then use that as -hda part when starting.
Then you have to tell it which disk to boot from, the -boot option.
 
Old 03-10-2015, 04:49 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Good point fatmac.

Just to be sure however, brownwrap, are you saying that you booted to some media like a network install or other booted client and then tried to access this resource?
 
Old 03-10-2015, 10:55 PM   #4
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Original Poster
Rep: Reputation: 16
Here is what happened

I don't have the book in front of me at the moment, but I followed the directions three times, each ending in deleting the VM. What I did was create a directory under the ftp server. I had previously installed vsftpd. So I mounted the ISO and copied everything to /var/ftp/pub/rhel6 and another for rhel7. I was following the directory, installed QEMU allocated resources and then booted the machine. Things started to go until the actually install started. I mean I followed the VM booting, etc. but it couldn't find the ftp site after that. I looked up the book errata and it said if one had trouble to turn of IPTables, which I did and it worked. I surprised it got that far if IPTables was blocking it, unless another protocol was used up to that point.
 
Old 03-11-2015, 02:53 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Thanks for the update and solution.
 
  


Reply



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
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
qemu: hardware error: qemu: could not load PowerPC bios 'openbios-ppc' Skaperen Linux - Virtualization and Cloud 8 06-09-2011 07:15 AM
Is it possible to be able to decrease the time in booting on OS takes to boot in QEMU tkmsr Linux - Virtualization and Cloud 6 05-24-2010 02:34 AM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM
Could Qemu be programed so that it uses not 100pct of the CPU all the time? frenchn00b Programming 1 06-01-2008 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration