[one-users] Windows VM on Xen

sergio garcia escriche sergei.garcia at gmail.com
Fri Feb 5 00:00:18 PST 2010


Hi,

To use Opennebula with windows I use this template and run ok:

NAME   = vm
OS     = [
  kernel   = "/usr/lib/xen/boot/hvmloader"]

CPU    = 1
MEMORY =1000
DISK=[
source="/srv/cloud/images/win.img",
target="hda"]

GRAPHICS=[
type ="vnc",
listen="0.0.0.0",
port="5900"]

RAW =[type ="xen",data="builder='hvm'"]
RAW =[type="xen",data="device_model='/usr/lib/xen/bin/qemu-dm'"]
RAW =[type="xen",data="vif=['type=ioemu,bridge=eth0"]

Regards,

Sergio
2010/2/5 makhanmail <makhanmail at gmail.com>

> Hi,
>
> I'm using OpenNebula 1.4 with Xen hypervisor and I can't seem to run
> Windows VM
> I'm using this configuration file:
>
> NAME   = vm-win
> CPU    = 1
> MEMORY = 2048
> OS   = [
>        kernel="/usr/lib/xen/boot/hvmloader",
>        root = "sda1"
> ]
> DISK   = [
>   source   = "/kruk/obrazy/xp_xen_chyba_ok.img",target="sda1",
>   readonly = "no" ]
> NIC    = [ NETWORK = "Siec wewnetrzna5" ]
>
>
> When I'm trying to use hvmloader kernel, I get an error:
> Fri Feb  5 00:28:08 2010 [VMM][I]: Error: (2, 'Invalid kernel',
> "elf_xen_note_check: ERROR: Not a Xen-ELF image: No ELF notes or
> '__xen_guest' section found.\n")
>
> When I'm not specifying any kernel and initrd, I get an error:
> Thu Feb  4 23:56:54 2010 [VMM][E]: No kernel or bootloader defined and no
> default provided.
>
> When I'm specifying vmlinuz-2.6.27.21-0.1-xen as kernel and
> initrd-2.6.27.21-0.1-xen as initrd, it goes into RUNNING state, but I can't
> access it (I have a DHCP server running in the network and it's working fine
> with Ubuntu image). The xm console command shows:
> [...]
> TCP: Hash tables configured (established 262144 bind 65536)
> TCP reno registered
> NET: Registered protocol family 1
> Unpacking initramfs... done
> Freeing initrd memory: 13272k freed
> platform rtc_cmos: registered platform RTC device (no PNP device found)
> audit: initializing netlink socket (disabled)
> type=2000 audit(1265328318.192:1): initialized
> VFS: Disk quotas dquot_6.5.1
> Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> msgmni has been set to 1030
> Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
> io scheduler noop registered
> io scheduler anticipatory registered
> io scheduler deadline registered
> io scheduler cfq registered (default)
> Non-volatile memory driver v1.2
> Xen virtual console successfully installed as xvc0
> Event-channel device installed.
> PNP: No PS/2 controller found. Probing ports directly.
> i8042.c: No controller found.
> mice: PS/2 mouse device common for all mice
> TCP cubic registered
> registered taskstats version 1
> XENBUS: Device with no driver: device/vbd/2049
> XENBUS: Device with no driver: device/vif/0
> Freeing unused kernel memory: 284k freed
> Write protecting the kernel read-only data: 4424k
> thermal: Unknown symbol acpi_processor_set_thermal_limit
> SCSI subsystem initialized
> BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
> EDD information not available.
> netfront: Initialising virtual ethernet driver.
> xen-vbd: registered block device major 8
> udevd version 128 started
>
>
> So what kernel and initrd should I use, to get a fully running Windows XP
> VM?
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100205/c9df43fc/attachment-0001.htm>


More information about the Users mailing list