<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 11/7/2012 8:40 PM, Daniel Molina
wrote:<br>
</div>
<blockquote
cite="mid:CAPvywewvzgcmfdNH-x_8Orqk7dGjHYXwYjNfiw1Acjcm9hK=fw@mail.gmail.com"
type="cite"><br>
<div class="gmail_extra">Hi,<br>
<br>
<div class="gmail_quote">On 30 October 2012 04:25, Hoàng Thái
Xuân Khoa <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:htxuankhoa@gmail.com" target="_blank">htxuankhoa@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p style="margin-bottom:0in">Hello everyone, </p>
<p style="margin-bottom:0in">I use OpenNebula 3.6 &
Ubuntu 12.04 (desktop & server). I was successfully
deploy & log on into ttylinux virtual machine. After
that, I decided deploy Windows XP to cluster nodes, the
WinXP virtual machine in “runn” state. But, when I try
to log on into Windows XP after deployed via OpenNebula,
I got the error: <br>
“Boot failed: could not boot into hard disk. <br>
Fatal error: no bootable device”. <br>
</p>
<p style="margin-bottom:0in">So, I decided to log on
Windows XP not via OpenNebula, I used this command: <br>
kvm -m 1024 /path/to/WinXP.img <br>
and I successfully logged on Windows XP and used it
normally. I don't understand why? Why when i used
OpenNebula to deploy to cluster nodes, it's state is
"runn" but i can't log on. Can someone give me a hint
for this problem?</p>
<p style="margin-bottom:0in">I installed Windows XP by
these command:<br>
qemu-img create -f raw WinXP.img 6G<br>
kvm -cdrom /path/toWinXP.iso -m 1024 -boot d
/path/to/WinXP.img</p>
<p style="margin-bottom:0in">This is my image template
& virtual machine template:</p>
<p style="margin-bottom:0in">// IMAGE TEMPLATE<br>
NAME = "WinXP"<br>
PATH = /path/to/WinXP.img<br>
TYPE = OS<br>
PUBLIC = YES<br>
RESTRICTED_DIRS = "/etc/"<br>
DESCRIPTION = "WinXP for testing purpose when using
OpenNebula to deploy a private cloud."</p>
<p style="margin-bottom:0in">// WINXP VIRTUAL MACHINE
TEMPLATE<br>
NAME = WinXP<br>
CPU = 1<br>
MEMORY = 1024<br>
OS = [ BOOT = hd ]<br>
DISK = [IMAGE_ID = 2]<br>
DISK = [<br>
type = fs,<br>
size = 1024,<br>
format = ntfs,<br>
target = hda]<br>
GRAPHICS = [<br>
TYPE = "vnc",<br>
LISTEN = "0.0.0.0",<br>
PORT = "5920" ]<br>
NIC = [ NETWORK = "RANGEDLAN" ]<br>
FEATURES = [ acpi = "yes" ]<br>
</p>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>It looks like it cannot find a bootable device. You can
specify this device in the OS section (ROOT) [1]. Since you
added a second disk with the target hda the first disk
(IMAGE_ID=2) will be hdb.</div>
<div><br>
</div>
<div>Hope this helps</div>
<div><br>
</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="http://opennebula.org/documentation:rel3.8:template#os_and_boot_options_section">http://opennebula.org/documentation:rel3.8:template#os_and_boot_options_section</a> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p style="margin-bottom:0in"> <br>
Thanks you in advance.<span class=""><font
color="#888888"><br>
</font></span></p>
<span class=""><font color="#888888">
<pre cols="72">--
Hoàng Thái Xuân Khoa
Ho Chi Minh city, Vietnam
</pre>
</font></span></div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org"
target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Daniel Molina<br>
Project Engineer<br>
OpenNebula - The Open Source Solution for Data Center
Virtualization<br>
<a moz-do-not-send="true" href="http://www.OpenNebula.org"
target="_blank">www.OpenNebula.org</a> | <a
moz-do-not-send="true" href="mailto:dmolina@opennebula.org"
target="_blank">dmolina@opennebula.org</a> | @OpenNebula<br>
</div>
</blockquote>
Thanks you so much Daniel. <br>
<br>
I followed your solution and the original error "No bootable device"
[1] is solved. But, then i got the error "BOOTMGR is missing" [2]. I
think maybe this is the error about Windows XP boot process, not
OpenNebula. <br>
<br>
But as i mentioned in my previous email, when i used this virtual
machine by this command: kvm -m 1024 /path/to/WinXP.img, i can log
on and using the virtual machine normally.<br>
<br>
Here is my virtual template after modified:<br>
NAME = WinXP<br>
CPU = 1<br>
MEMORY = 1024<br>
OS = [ <br>
BOOT = hd,<br>
ROOT = hdb ]<br>
DISK = [IMAGE_ID = 2]<br>
DISK = [<br>
type = fs,<br>
size = 1024,<br>
format = ntfs,<br>
target = hda]<br>
GRAPHICS = [<br>
TYPE = "vnc",<br>
LISTEN = "0.0.0.0",<br>
PORT = "5920" ]<br>
NIC = [ NETWORK = "RANGEDLAN" ]<br>
FEATURES = [ acpi = "yes" ]<br>
<br>
I aslo get some information about the virtual machine when it was
deployed via virsh command:<br>
virsh # list<br>
Id Name State<br>
----------------------------------------------------<br>
2 one-98 running<br>
<br>
virsh # dumpxml 2<br>
<domain type='kvm' id='2'><br>
<name>one-98</name><br>
<uuid>1ed4a54b-fc44-02b4-84e8-b8ec3a88b93d</uuid><br>
<memory unit='KiB'>1048576</memory><br>
<currentMemory unit='KiB'>1048576</currentMemory><br>
<vcpu placement='static'>1</vcpu><br>
<os><br>
<type arch='i686' machine='pc-1.2'>hvm</type><br>
<boot dev='hd'/><br>
</os><br>
<features><br>
<acpi/><br>
</features><br>
<clock offset='utc'/><br>
<on_poweroff>destroy</on_poweroff><br>
<on_reboot>restart</on_reboot><br>
<on_crash>destroy</on_crash><br>
<devices><br>
<emulator>/usr/bin/kvm</emulator><br>
<disk type='file' device='disk'><br>
<driver name='qemu' type='raw'/><br>
<source file='/var/lib/one//datastores/0/98/disk.1'/><br>
<target dev='hda' bus='ide'/><br>
<alias name='ide0-0-0'/><br>
<address type='drive' controller='0' bus='0' target='0'
unit='0'/><br>
</disk><br>
<disk type='file' device='disk'><br>
<driver name='qemu' type='raw'/><br>
<source file='/var/lib/one//datastores/0/98/disk.0'/><br>
<target dev='hdb' bus='ide'/><br>
<alias name='ide0-0-1'/><br>
<address type='drive' controller='0' bus='0' target='0'
unit='1'/><br>
</disk><br>
<controller type='usb' index='0'><br>
<alias name='usb0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x2'/><br>
</controller><br>
<controller type='ide' index='0'><br>
<alias name='ide0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/><br>
</controller><br>
<interface type='bridge'><br>
<mac address='02:00:c0:a8:7a:0a'/><br>
<source bridge='virbr0'/><br>
<target dev='vnet0'/><br>
<alias name='net0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/><br>
</interface><br>
<input type='mouse' bus='ps2'/><br>
<graphics type='vnc' port='5937' autoport='no'
listen='0.0.0.0'><br>
<listen type='address' address='0.0.0.0'/><br>
</graphics><br>
<video><br>
<model type='cirrus' vram='9216' heads='1'/><br>
<alias name='video0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/><br>
</video><br>
<memballoon model='virtio'><br>
<alias name='balloon0'/><br>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/><br>
</memballoon><br>
</devices><br>
<seclabel type='dynamic' model='apparmor' relabel='yes'><br>
<label>libvirt-1ed4a54b-fc44-02b4-84e8-b8ec3a88b93d</label><br>
<imagelabel>libvirt-1ed4a54b-fc44-02b4-84e8-b8ec3a88b93d</imagelabel><br>
</seclabel><br>
</domain><br>
<br>
Thanks you so much for your help. You helped me a lot because in the
original error "No bootable device" i don't know where to start to
solve this problem.<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://i847.photobucket.com/albums/ab31/deline_2010/OpenNebula%20error%20when%20connect%20to%20VMs/Nobootabledevice.png">http://i847.photobucket.com/albums/ab31/deline_2010/OpenNebula%20error%20when%20connect%20to%20VMs/Nobootabledevice.png</a><br>
[2]
<a class="moz-txt-link-freetext" href="http://i847.photobucket.com/albums/ab31/deline_2010/OpenNebula%20error%20when%20connect%20to%20VMs/BOOTMGRismissing.png">http://i847.photobucket.com/albums/ab31/deline_2010/OpenNebula%20error%20when%20connect%20to%20VMs/BOOTMGRismissing.png</a>
<br>
<br>
<pre class="moz-signature" cols="72">--
Hoàng Thái Xuân Khoa
Ho Chi Minh city, Vietnam
</pre>
</body>
</html>