This discussion is archived
5 Replies Latest reply: Apr 8, 2013 7:50 AM by 999023 RSS

xm create doesn't create required files, when creating vm from ISO file

999023 Newbie
Currently Being Moderated
Greetings,

I've created a virtual machine, but it won't start (blocked).

img file:
/srv/OL-DB2-PRI/OL-DB2-PRI.img

config file:
import os, re
arch = os.uname() [4]
kernel = "hvmloader"
builder='hvm'
memory = 10240
name = "OL-DB2-PRI"
cpus = "" # leave to Xen to pick
vcpus = 4
disk = [ 'file:/srv/OL-DB2-PRI/OL-DB2-PRI.img,xvda,w', 'file:/media/usb/extraISOs/OL6_64_1.iso,xvdc:cdrom,r' ]
vfb = [ 'vnc=1,vnclisten=0.0.0.0,vncdisplay=1,vncpasswd=Welkom_01' ]
root = "/dev/hda1 ro"
extra = "4"
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
boot="dc"

xm list :
[root@OVS-PRI xen]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 832 8 r----- 547.4
OL-DB2-PRI 7 10240 4 -b---- 6.8

The log shows, xen is trying to watch files or directories that don't exsist:
xs_read(/local/domain/0/device-model/7/xen_extended_power_mgmt): read error
xs_read(/local/domain/7/log-throttling): read error

Am I using odd parameters in my config file?
The ISO file is downloaded straight from Oracle site. Which I also used to install OL6 directly.

Where else could I check?
I've created the directories manualy, but have no idea, what the files should contain.

I prefer not to use OVM Manager. To much dependancies.

Any help is appreciated.
  • 1. Re: xm create doesn't create required files, when creating vm from ISO file
    999023 Newbie
    Currently Being Moderated
    Moew info xm list -l (only new domain):
    (domain
    (domid 10)
    (cpu_weight 256)
    (cpu_cap 0)
    (on_crash restart)
    (uuid 01edcc63-fa8a-32b9-c508-9edb7ca0d79c)
    (bootloader_args '')
    (pool_name Pool-0)
    (vcpus 4)
    (name OL-DB2-PRI)
    (on_poweroff destroy)
    (on_reboot restart)
    (cpus (() () () ()))
    (description '')
    (bootloader '')
    (maxmem 10240)
    (memory 10240)
    (shadow_memory 84)
    (features '')
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (start_time 1365167931.64)
    (cpu_time 6.464519744)
    (online_vcpus 4)
    (image
    (hvm
    (kernel '')
    (args 'root=/dev/hda1 ro 4')
    (expose_host_uuid 0)
    (superpages 0)
    (tsc_mode 0)
    (videoram 4)
    (hpet 0)
    (boot dc)
    (loader /usr/lib64/xen/boot/hvmloader)
    (vpt_align 1)
    (xen_platform_pci 1)
    (vncunused 1)
    (rtc_timeoffset 0)
    (pci ())
    (pae 1)
    (stdvga 0)
    (hap 1)
    (viridian 0)
    (acpi 1)
    (localtime 0)
    (timer_mode 1)
    (nographic 0)
    (guest_os_type default)
    (pci_msitranslate 1)
    (oos 1)
    (apic 1)
    (nomigrate 0)
    (device_model /usr/lib/xen/bin/qemu-dm)
    (pci_power_mgmt 0)
    (usb 0)
    (xauthority /root/.Xauthority)
    (isa 0)
    (notes (SUSPEND_CANCEL 1))
    )
    )
    (status 2)
    (state -b----)
    (store_mfn 1044476)
    (device
    (vbd
    (protocol x86_64-abi)
    (uuid b22d67b2-2fc5-04b4-8221-3df2cdf18e8f)
    (bootable 1)
    (dev xvda:disk)
    (uname phy:/dev/sda4)
    (mode w)
    (backend 0)
    (VDI '')
    )
    )
    (device
    (vbd
    (uuid ab3ae9c2-a4a6-7f07-b252-3e47404987b2)
    (bootable 0)
    (dev xvdc:cdrom)
    (uname file:/media/usb/extraISOs/OL6_64_1.iso)
    (mode r)
    (backend 0)
    (VDI '')
    )
    )
    (device (vkbd (backend 0)))
    (device
    (vfb
    (vnc 1)
    (uuid 699fc663-2938-8baf-c249-eab497164750)
    (vnclisten 0.0.0.0)
    (vncdisplay 1)
    (vncpasswd )
    (location 0.0.0.0:5901)
    (xauthority /root/.Xauthority)
    )
    )
    (device
    (console
    (protocol vt100)
    (location 6)
    (uuid fa645da9-8037-f471-1b4d-528a3735b900)
    )
    )
    )

    Edited by: DvDZalm on 5-apr-2013 6:27
  • 2. Re: xm create doesn't create required files, when creating vm from ISO file
    912191 Newbie
    Currently Being Moderated
    xm create is not supposed to create any files. It is the command to start an already defined virtual machine. Your iso file would be presented as a block device, as would the blank, empty (I assume) boot disk, but you must create the networking, disks and cdroms beforehand. This is usually done with the OVM Manager.

    What are you looking to accomplish?
  • 3. Re: xm create doesn't create required files, when creating vm from ISO file
    999023 Newbie
    Currently Being Moderated
    I'm trying to get a Oracle Linux 6.3 Virtual machine.
    Reason why I need a virtual machine is because of CPU capping to meet lincing demands.

    On this OL6 I'll install Oracle RDBMS 11gR2 RAC.

    So it would be my ISO, who expects these files?
    Because the same messages are logged when trying to open a console.

    The domain ID keeps changing, so the required dir, needs to created everytime too.. but which process would do this?

    xm needs to do it's administration. Does this happen in allready existing files?

    I've tried with a img file and with a raw device (last partition not mounted.

    [root@OVS-PRI xen]# fdisk /dev/sda

    The number of cylinders for this disk is set to 345652.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

    Command (m for help): p

    Disk /dev/sda: 299.4 GB, 299439751168 bytes
    47 heads, 36 sectors/track, 345652 cylinders
    Units = cylinders of 1692 * 512 = 866304 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 121 102348 83 Linux
    /dev/sda2 122 3839 3145428 83 Linux
    /dev/sda3 3840 5078 1048194 82 Linux swap / Solaris
    /dev/sda4 5079 345652 288125604 83 Linux


    [root@OVS-PRI xen]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 3.0G 1.3G 1.6G 44% /
    /dev/sda1 97M 28M 65M 30% /boot
    tmpfs 369M 0 369M 0% /dev/shm
    none 369M 80K 368M 1% /var/lib/xenstored
    /dev/sdb1 30G 18G 13G 58% /media/usb

    The ISO is on a mounted USB.
    Do I need to mount the ISO as a CDROM?
  • 4. Re: xm create doesn't create required files, when creating vm from ISO file
    999023 Newbie
    Currently Being Moderated
    complete qemu-dm log file:

    domid: 12
    Using xvda for guest's hda
    Using file /dev/sda4 in read-write mode
    Using xvdc for guest's hdc
    Using file /media/usb/extraISOs/OL6_64_1.iso in read-only mode
    Watching /local/domain/0/device-model/12/logdirty/cmd
    Watching /local/domain/0/device-model/12/command
    Watching /local/domain/12/cpu
    qemu_map_cache_init nr_buckets = 10000 size 4194304
    shared page at pfn feffd
    buffered io page at pfn feffb
    Guest uuid = e9775a95-847d-7256-798e-68a2678be160
    Time offset set 0
    populating video RAM at ff000000
    mapping video RAM from ff000000
    Register xen platform.
    Done register platform.
    platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
    xs_read(/local/domain/0/device-model/12/xen_extended_power_mgmt): read error
    Using xvdc for guest's hdc
    medium change watch on `xvdc' (index: 1): /media/usb/extraISOs/OL6_64_1.iso
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    Log-dirty: no command yet.
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    vcpu-set: watch node error.
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
    xs_read(/local/domain/12/log-throttling): read error
    qemu: ignoring not-understood drive `/local/domain/12/log-throttling'
    medium change watch on `/local/domain/12/log-throttling' - unknown device, ignored
    char device redirected to /dev/pts/2
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    xen be: console-0: xen be: console-0: initialise() failed
    initialise() failed
    cirrus vga map change while on lfb mode
    mapping vram to f0000000 - f0400000
    platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
    platform_fixed_ioport: changed ro/rw state of ROM memory area. now is ro state.
    Unknown PV product 3 loaded in guest
    PV driver build 1
  • 5. Re: xm create doesn't create required files, when creating vm from ISO file
    999023 Newbie
    Currently Being Moderated
    Stopped trying 'xm create'
    Started trying 'xl create'

    Still looking for xen_extended_power_mgmt and log-throttling in none existing directories.

    Since the domain id is part of the dir path, I assume these dirs and files are created by a process.
    Which I don't know.

    I've created the directories manualy. No solution there.
    The domU remains in block state.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points