[one-users] Can't log on into Windows XP virtual machine

Hoàng Thái Xuân Khoa htxuankhoa at gmail.com
Wed Nov 7 08:38:33 PST 2012


On 11/7/2012 8:40 PM, Daniel Molina wrote:
>
> Hi,
>
> On 30 October 2012 04:25, Hoàng Thái Xuân Khoa <htxuankhoa at gmail.com 
> <mailto:htxuankhoa at gmail.com>> wrote:
>
>     Hello everyone,
>
>     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:
>     “Boot failed: could not boot into hard disk.
>     Fatal error: no bootable device”.
>
>     So, I decided to log on Windows XP not via OpenNebula, I used this
>     command:
>     kvm -m 1024 /path/to/WinXP.img
>     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?
>
>     I installed Windows XP by these command:
>     qemu-img create -f raw WinXP.img 6G
>     kvm -cdrom /path/toWinXP.iso -m 1024 -boot d /path/to/WinXP.img
>
>     This is my image template & virtual machine template:
>
>     // IMAGE TEMPLATE
>     NAME = "WinXP"
>     PATH = /path/to/WinXP.img
>     TYPE = OS
>     PUBLIC = YES
>     RESTRICTED_DIRS = "/etc/"
>     DESCRIPTION = "WinXP for testing purpose when using OpenNebula to
>     deploy a private cloud."
>
>     // WINXP VIRTUAL MACHINE TEMPLATE
>     NAME = WinXP
>     CPU = 1
>     MEMORY = 1024
>     OS = [ BOOT = hd ]
>     DISK = [IMAGE_ID = 2]
>     DISK = [
>     type = fs,
>     size = 1024,
>     format = ntfs,
>     target = hda]
>     GRAPHICS = [
>     TYPE = "vnc",
>     LISTEN = "0.0.0.0",
>     PORT = "5920" ]
>     NIC = [ NETWORK = "RANGEDLAN" ]
>     FEATURES = [ acpi = "yes" ]
>
>
>
> 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.
>
> Hope this helps
>
>
> [1] 
> http://opennebula.org/documentation:rel3.8:template#os_and_boot_options_section 
>
>
>
>     Thanks you in advance.
>
>     -- 
>     Hoàng Thái Xuân Khoa
>     Ho Chi Minh city, Vietnam
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>     http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
> -- 
> Daniel Molina
> Project Engineer
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org <http://www.OpenNebula.org> | 
> dmolina at opennebula.org <mailto:dmolina at opennebula.org> | @OpenNebula
Thanks you so much Daniel.

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.

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.

Here is my virtual template after modified:
NAME = WinXP
CPU = 1
MEMORY = 1024
OS = [
BOOT = hd,
ROOT = hdb ]
DISK = [IMAGE_ID = 2]
DISK = [
type = fs,
size = 1024,
format = ntfs,
target = hda]
GRAPHICS = [
TYPE = "vnc",
LISTEN = "0.0.0.0",
PORT = "5920" ]
NIC = [ NETWORK = "RANGEDLAN" ]
FEATURES = [ acpi = "yes" ]

I aslo get some information about the virtual machine when it was 
deployed via virsh command:
virsh # list
  Id    Name                           State
----------------------------------------------------
  2     one-98                         running

virsh # dumpxml 2
<domain type='kvm' id='2'>
   <name>one-98</name>
   <uuid>1ed4a54b-fc44-02b4-84e8-b8ec3a88b93d</uuid>
   <memory unit='KiB'>1048576</memory>
   <currentMemory unit='KiB'>1048576</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
     <type arch='i686' machine='pc-1.2'>hvm</type>
     <boot dev='hd'/>
   </os>
   <features>
     <acpi/>
   </features>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>
   <on_crash>destroy</on_crash>
   <devices>
     <emulator>/usr/bin/kvm</emulator>
     <disk type='file' device='disk'>
       <driver name='qemu' type='raw'/>
       <source file='/var/lib/one//datastores/0/98/disk.1'/>
       <target dev='hda' bus='ide'/>
       <alias name='ide0-0-0'/>
       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
     </disk>
     <disk type='file' device='disk'>
       <driver name='qemu' type='raw'/>
       <source file='/var/lib/one//datastores/0/98/disk.0'/>
       <target dev='hdb' bus='ide'/>
       <alias name='ide0-0-1'/>
       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
     </disk>
     <controller type='usb' index='0'>
       <alias name='usb0'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x2'/>
     </controller>
     <controller type='ide' index='0'>
       <alias name='ide0'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x1'/>
     </controller>
     <interface type='bridge'>
       <mac address='02:00:c0:a8:7a:0a'/>
       <source bridge='virbr0'/>
       <target dev='vnet0'/>
       <alias name='net0'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
function='0x0'/>
     </interface>
     <input type='mouse' bus='ps2'/>
     <graphics type='vnc' port='5937' autoport='no' listen='0.0.0.0'>
       <listen type='address' address='0.0.0.0'/>
     </graphics>
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
       <alias name='video0'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x0'/>
     </video>
     <memballoon model='virtio'>
       <alias name='balloon0'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
function='0x0'/>
     </memballoon>
   </devices>
   <seclabel type='dynamic' model='apparmor' relabel='yes'>
<label>libvirt-1ed4a54b-fc44-02b4-84e8-b8ec3a88b93d</label>
<imagelabel>libvirt-1ed4a54b-fc44-02b4-84e8-b8ec3a88b93d</imagelabel>
   </seclabel>
</domain>

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.

[1] 
http://i847.photobucket.com/albums/ab31/deline_2010/OpenNebula%20error%20when%20connect%20to%20VMs/Nobootabledevice.png
[2] 
http://i847.photobucket.com/albums/ab31/deline_2010/OpenNebula%20error%20when%20connect%20to%20VMs/BOOTMGRismissing.png 


-- 
Hoàng Thái Xuân Khoa
Ho Chi Minh city, Vietnam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121107/b0c314e5/attachment-0002.htm>


More information about the Users mailing list