On Thu, Nov 13, 2014 at 9:49 AM, Marco Guazzone <marco.guazzone@xxxxxxxxx> wrote: > On Thu, Nov 13, 2014 at 1:08 AM, Jim Fehlig <jfehlig@xxxxxxxx> wrote: >> >> Can you provide >> > > Sure! > >> 1. the config you use with xl > > name = "testvm" > uuid = "93f08541-bfd5-4ac4-851d-c619a4516a13" > kernel = "/usr/lib/xen/boot/hvmloader" > builder = "hvm" > maxmem = 3072 > memory = 2048 > vcpus = 1 > on_crash = "restart" > disk = [ "file:/root/images/test.img,hda,w", > "file:/root/iso/CentOS-7.0-1406-x86_64-Minimal.iso,hdc:cdrom,r" ] > vif = [ "bridge=xenbr0,script=vif-bridge" ] > boot = "cd" > sdl = 0 > vnc = 1 > vncunused = 1 > xen_platform_pci = 1 > > >> 2. the XML config you use with libvirt > > <domain type='xen'> > <name>testvm</name> > <uuid>93f08541-bfd5-4ac4-851d-c619a4516a13</uuid> > <memory unit='KiB'>3145728</memory> > <currentMemory unit='KiB'>2097152</currentMemory> > <vcpu placement='static'>1</vcpu> > <os> > <type arch='x86_64' machine='xenfv'>hvm</type> > <loader>/usr/lib/xen/boot/hvmloader</loader> > <boot dev='hd'/> > <!-- > <boot dev='hd'/> > --> > </os> > <clock offset='variable' adjustment='0' basis='utc'/> > <on_poweroff>destroy</on_poweroff> > <on_reboot>restart</on_reboot> > <on_crash>restart</on_crash> > <devices> > <disk type='file' device='disk'> > <!-- > <driver name='file'/> > --> > <driver name='qemu'/> > <source file='/root/images/test.img'/> > <target dev='hda' bus='ide'/> > </disk> > <disk type='file' device='cdrom'> > <!-- > <driver name='file'/> > --> > <driver name='qemu'/> > <source file='/root/iso/CentOS-7.0-1406-x86_64-Minimal.iso'/> > <target dev='hdc' bus='ide'/> > <readonly/> > </disk> > <interface type='bridge'> > <mac address='00:00:00:00:00:00'/> > <source bridge='xenbr0'/> > <script path='vif-bridge'/> > </interface> > <input type='mouse' bus='ps2'/> > <graphics type='vnc' port='-1' autoport='yes'/> > </devices> > </domain> > > >> 3. the qemu command line libxl generated for each case? > > QEMU command for "xl create testvm.cfg": > > /usr/lib/xen/bin/qemu-dm -d 11 -domain-name testvm -vnc 127.0.0.1:0 > -vncunused -videoram 8 -boot cd -acpi -vcpu_avail 0x01 -net > nic,vlan=0,macaddr=00:16:3e:5c:c2:5a,model=rtl8139 -net > tap,vlan=0,ifname=vif11.0-emu,bridge=xenbr0,script=no,downscript=no -M > xenfv > > QEMU command for "virsh create testvm.xml": > > /usr/lib/xen/bin/qemu-dm -d 12 -domain-name testvm -vnc 127.0.0.1:1 > -videoram 8 -boot c -vcpu_avail 0x01 -net none -M xenfv > > > Thanks so much. > > Best, > Hi, Any news? In the meanwhile, from the qemu command above, I've noted that it tries to boot from HD. In fact, the conversion from Xen config file to XML missed to add a <boot> element for cdrom (instead, it wrongly added a duplicate element for HD). So, I've tried to add this <boot> element, thus resulting in: <os> <type arch='x86_64' machine='xenfv'>hvm</type> <loader>/usr/lib/xen/boot/hvmloader</loader> <boot dev='hd'/> <!-- <boot dev='hd'/> --> <boot dev='cdrom'/> </os> Now, the QEMU command spawn by virsh is /usr/lib/xen/bin/qemu-dm -d 3 -domain-name testvm -vnc 127.0.0.1:0 -videoram 8 -boot cd -vcpu_avail 0x01 -net none -M xenfv Now, vncviewer is able to connect, I can see the CentOS initial menu, but when I choose to start the installation the vnc window becomes black and I can do nothing. I've tried to start the installation in several ways, including the basic graphics mode (VESA) or by adding the "text" parameter to the kernel boot options. But the result is the same. This is the logs content /var/log/xen/qemu-dm-testvm.log domid: 3 -videoram option does not work with cirrus vga device model. Videoram set to 4M. Strip off blktap sub-type prefix to /root/images/test.img (drv 'aio') Using file /root/images/test.img in read-write mode Strip off blktap sub-type prefix to /root/iso/CentOS-7.0-1406-x86_64-Minimal.iso (drv 'aio') Using file /root/iso/CentOS-7.0-1406-x86_64-Minimal.iso in read-only mode Watching /local/domain/0/device-model/3/logdirty/cmd Watching /local/domain/0/device-model/3/command Watching /local/domain/3/cpu qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 93f08541-bfd5-4ac4-851d-c619a4516a13 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/3/xen_extended_power_mgmt): read error xs_read(): vncpasswd get error. /vm/93f08541-bfd5-4ac4-851d-c619a4516a13/vncpasswd. medium change watch on `hdc' (index: 1): aio:/root/iso/CentOS-7.0-1406-x86_64-Minimal.iso I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 Log-dirty: no command yet. vcpu-set: watch node error. [xenstore_process_vcpu_set_event]: /local/domain/3/cpu has no CPU! xs_read(/local/domain/3/log-throttling): read error qemu: ignoring not-understood drive `/local/domain/3/log-throttling' medium change watch on `/local/domain/3/log-throttling' - unknown device, ignored 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. /var/log/libvirt/libxl/testvm.log: libxl: verbose: libxl_create.c:130:libxl__domain_build_info_setdefault: qemu-xen is unavailable, use qemu-xen-traditional instead: No such file or directory libxl: debug: libxl_create.c:1243:do_domain_create: ao 0x7f6504176c40: create: how=(nil) callback=(nil) poller=0x7f65041796f0 libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=qdisk libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=qdisk libxl: debug: libxl_create.c:699:initiate_domain_create: running bootloader libxl: debug: libxl_bootloader.c:321:libxl__bootloader_run: not a PV domain, skipping bootloader libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch w=0x7f6504184728: deregister unregistered libxl: debug: libxl_numa.c:478:libxl__get_numa_candidate: New best NUMA placement candidate found: nr_nodes=2, nr_cpus=16, nr_vcpus=34, free_memkb=3461 libxl: detail: libxl_dom.c:195:numa_place_domain: NUMA placement candidate with 2 nodes, 16 cpus and 3461 KB free selected xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xa2304 xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1a2304 xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader: 0000000000100000->00000000001a2304 Modules: 0000000000000000->0000000000000000 TOTAL: 0000000000000000->00000000bf800000 ENTRY ADDRESS: 0000000000100000 xc: info: PHYSICAL MEMORY ALLOCATION: 4KB PAGES: 0x0000000000000200 2MB PAGES: 0x00000000000003fb 1GB PAGES: 0x0000000000000001 xc: detail: elf_load_binary: phdr 0 at 0x7f6526334000 -> 0x7f65263cd18d libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk vdev=hda spec.backend=qdisk libxl: debug: libxl_device.c:257:libxl__device_disk_set_backend: Disk vdev=hdc spec.backend=qdisk libxl: debug: libxl_dm.c:1211:libxl__spawn_local_dm: Spawning device-model /usr/lib/xen/bin/qemu-dm with arguments: libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: /usr/lib/xen/bin/qemu-dm libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -d libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: 3 libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -domain-name libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: testvm libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -vnc libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: 127.0.0.1:0 libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -videoram libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: 8 libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -boot libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: cd libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -vcpu_avail libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: 0x01 libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -net libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: none libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: -M libxl: debug: libxl_dm.c:1213:libxl__spawn_local_dm: xenfv libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch w=0x7f6504184960 wpath=/local/domain/0/device-model/3/state token=3/0: register slotnum=3 libxl: debug: libxl_create.c:1256:do_domain_create: ao 0x7f6504176c40: inprogress: poller=0x7f65041796f0, flags=i libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x7f6504184960 wpath=/local/domain/0/device-model/3/state token=3/0: event epath=/local/domain/0/device-model/3/state libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x7f6504184960 wpath=/local/domain/0/device-model/3/state token=3/0: event epath=/local/domain/0/device-model/3/state libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch w=0x7f6504184960 wpath=/local/domain/0/device-model/3/state token=3/0: deregister slotnum=3 libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch w=0x7f6504184960: deregister unregistered libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch w=0x7f650417e9e8 wpath=/local/domain/0/backend/vif/3/0/state token=3/1: register slotnum=3 libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x7f650417e9e8 wpath=/local/domain/0/backend/vif/3/0/state token=3/1: event epath=/local/domain/0/backend/vif/3/0/state libxl: debug: libxl_event.c:647:devstate_watch_callback: backend /local/domain/0/backend/vif/3/0/state wanted state 2 still waiting state 1 libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x7f650417e9e8 wpath=/local/domain/0/backend/vif/3/0/state token=3/1: event epath=/local/domain/0/backend/vif/3/0/state libxl: debug: libxl_event.c:643:devstate_watch_callback: backend /local/domain/0/backend/vif/3/0/state wanted state 2 ok libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch w=0x7f650417e9e8 wpath=/local/domain/0/backend/vif/3/0/state token=3/1: deregister slotnum=3 libxl: debug: libxl_event.c:608:libxl__ev_xswatch_deregister: watch w=0x7f650417e9e8: deregister unregistered libxl: debug: libxl_device.c:959:device_hotplug: calling hotplug script: /etc/xen/scripts/vif-bridge online libxl: debug: libxl_event.c:1737:libxl__ao_progress_report: ao 0x7f6504176c40: progress report: ignored libxl: debug: libxl_event.c:1569:libxl__ao_complete: ao 0x7f6504176c40: complete, rc=0 libxl: debug: libxl_event.c:1541:libxl__ao__destroy: ao 0x7f6504176c40: destroy libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch w=0x7f65040cdb90 wpath=@releaseDomain token=3/2: register slotnum=3 libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x7f65040cdb90 wpath=@releaseDomain token=3/2: event epath=@releaseDomain libxl: debug: libxl.c:1004:domain_death_xswatch_callback: [evg=0x7f6504000f50:3] from domid=3 nentries=1 rc=1 libxl: debug: libxl.c:1015:domain_death_xswatch_callback: [evg=0x7f6504000f50:3] got=domaininfos[0] got->domain=3 libxl: debug: libxl.c:1042:domain_death_xswatch_callback: exists shutdown_reported=0 dominf.flags=ffff0002 libxl: debug: libxl.c:1008:domain_death_xswatch_callback: [evg=0] all reported libxl: debug: libxl.c:1072:domain_death_xswatch_callback: domain death search done Cheers, -- Marco -- xen mailing list xen@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/xen