LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-06-2012, 02:14 AM   #1
severus21
LQ Newbie
 
Registered: Dec 2011
Posts: 6

Rep: Reputation: Disabled
Guest machine on xen boots from cdrom though boot order is specified as hard disk.


I am trying to create a guest machine on xen virtualized environment through libvirt and install rhel on it by booting from cdrom.
I face a issue in booting device. I gave boot order as hd,cdrom. When doing maiden installation, it will find nothing in hard disk and boots from cd.
Once installation is completed and when it boots next time it boots from hard disk. It is the expected behaviour. But it fails to boot from hard disk and again boots from cdrom.

I also tried specifying per boot device option. I specified disk image as boot order 1 and cd image as boot order 2. But when i power on for the first time, it tries to boot from harddisk and finds nothing there and says " No bootable device. Going to power off in 30 seconds". But expected is, it should boot from cd after trying hard disk.

Below is my domain configuration xml file i used to create guest domain.

<domain type='xen'>
<name>vm-2</name>
<memory>1048576</memory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<boot dev='hd' />
<boot dev='cdrom'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/vm-2.img'/>
<target dev='xvda' bus='ide' />
<!-- <boot order='1'/> -->
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<source file='/var/lib/libvirt/images/Rhel53.iso'/>
<target dev='hda' bus='ide' />
<!-- <boot order='2'/> -->
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0' />
</disk>
<interface type='bridge'>
<source bridge='br0'/>
</interface>
<graphics type='vnc' port='-1' autoport='yes'/>
</devices>
</domain>


I don't know where i am going wrong. So need help in resolving this issue.
Also like to know how these devices are sorted by libvirt and naming of devices in xen virtualization.

Thanks
 
Old 09-27-2012, 07:19 PM   #2
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
I believe that the problem lies on the virtual hardware denomination.
You xvda should be hda and cdrom should be hdc or something else.

Try this:
Code:
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/vm-2.img'/>
<target dev='hda' bus='ide' />

<disk type='file' device='cdrom'>
<source file='/var/lib/libvirt/images/Rhel53.iso'/>
<target dev='hdc' bus='ide' />
 
1 members found this post helpful.
Old 09-28-2012, 10:43 AM   #3
severus21
LQ Newbie
 
Registered: Dec 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks..!!! That worked fine. I also came to know that per device boot option doesn't work properly with xen and its a bug with libvirt.
 
Old 09-28-2012, 03:06 PM   #4
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Remember to tag it as solved
 
  


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
Xen PV Machine crashing. Is it the guest's fault? FonHN Linux - Virtualization and Cloud 3 12-24-2011 02:14 AM
OCFS2 at a Xen Guest Machine ThiagoMZ Linux - Server 3 07-30-2008 09:15 AM
How do I create a boot disk that boots the CDROM? Omni Linux - General 2 07-06-2007 12:58 AM
Unable to boot from hard disk, but cdrom kinda works georgel_2004 Slackware - Installation 5 10-26-2004 09:20 PM

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

All times are GMT -5. The time now is 02:26 AM.

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