[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Unable to create Stubdomains with NIC(s) - Xen 4.5.2


  • To: xen-devel@xxxxxxxxxxxxx
  • From: "Peter Schmid" <per.schmid@xxxxxx>
  • Date: Mon, 16 Nov 2015 11:45:13 +0100
  • Delivery-date: Mon, 16 Nov 2015 10:45:30 +0000
  • Importance: normal
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Sensitivity: Normal

Dear all
I have been trying to setup stubdomains for added security on a test machine so 
I could then suggest to use xen at work with some added "backbone" and 
practical experience.

Unfortunately I am unable to launch domains with a stubdomain when there's a 
NIC configured in the VM config file.
The Domain launches without problems when I comment the vif= entry.
Â
The Error I am getting is the following:
libxl: error: libxl_dm.c:1284:stubdom_pvqemu_cb: error connecting nics devices: 
No such file or directory
I have tried different types as well (ioemu, etc.).
Â
More logs/configs can be found further below.
Â
Thank you very much in advance,
ÂPeter


#########
$ xl create win7_install_test.cfg                        
ÂÂ
Parsing config from win7_install_test.cfg
libxl: error: libxl_dm.c:1284:stubdom_pvqemu_cb: error connecting nics devices: 
No such file or directory
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: error: libxl.c:1652:devices_destroy_cb: libxl__devices_destroy failed 
for 2
libxl: info: libxl.c:1698:devices_destroy_cb: forked pid 582 for destroy of 
domain 2
libxl: error: libxl_create.c:1362:domcreate_attach_vtpms: unable to add nic 
devices
libxl: error: libxl.c:1578:libxl__destroy_domid: non-existant domain 2
libxl: error: libxl.c:1510:stubdom_destroy_callback: unable to destroy stubdom 
with domid 2
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: error: libxl.c:1652:devices_destroy_cb: libxl__devices_destroy failed 
for 1
libxl: info: libxl.c:1698:devices_destroy_cb: forked pid 596 for destroy of 
domain 1
libxl: error: libxl_create.c:1482:domcreate_destruction_cb: unable to destroy 
domain 1 following failed creation
#########
Here is my config file:
#########
builder='hvm'
memory = 8192
name = "win7_test"
## vif = [ 'mac=00:fe:fe:ca:be:dd,bridge=xenbr0,model=e1000' ]
vif = [ 'type=ioemu, bridge=xenbr0' ]
uuid = "ffacbdff-abcd-abcd-cafe-deadbeefbabe"
acpi = 1
apic = 1
disk = [ 'file:/home/user/win7_test_2015_11_02.img,hda,w', ]
#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="c"
# stubdomain:
device_model_stubdomain_override = 1
xen_platform_pci=0
sdl=0
vnc=1
vncdisplay=0
vncconsole=0
vnclisten='0.0.0.0'
vfb = [ 'type=vnc,vnclisten=0.0.0.0,vncunused=1' ]
serial='pty'
usbdevice='tablet'
#########
running xl create with more verbose output:
#########
Parsing config from win7_test_install_test_filedisk.cfg
libxl: debug: libxl_create.c:1504:do_domain_create: ao 0xa190e0: create: 
how=(nil) callback=(nil) poller=0xa189c0
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda 
spec.backend=unknown
libxl: debug: libxl_device.c:215:disk_try_backend: Disk vdev=hda, backend phy 
unsuitable as phys path not a block device
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk vdev=hda, 
using backend qdisk
libxl: debug: libxl_create.c:907:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:323:libxl__bootloader_run: not a PV domain, 
skipping bootloader
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa198b0: 
deregister unregistered
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0xbf084
xc: detail: elf_parse_binary: memory: 0x100000 -> 0x1bf084
xc: detail: VIRTUAL MEMORY ARRANGEMENT:
xc: detail: Â Loader: Â 0000000000100000->00000000001bf084
xc: detail: Â Modules: Â0000000000000000->0000000000000000
xc: detail: Â TOTAL: Â Â0000000000000000->00000001ffc00000
xc: detail: Â ENTRY: Â Â0000000000100000
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail: Â 4KB PAGES: 0x0000000000000200
xc: detail: Â 2MB PAGES: 0x00000000000003fd
xc: detail: Â 1GB PAGES: 0x0000000000000006
xc: detail: elf_load_binary: phdr 0 at 0x7f516cb85000 -> 0x7f516cc3aef1
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x20fc00
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda 
spec.backend=qdisk
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa1b070: 
deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline=" -d 5", features=""
libxl: debug: libxl_dom.c:540:libxl__build_pv: pv kernel mapped 0 path 
/usr/lib/xen/boot/ioemu-stubdom.gz
domainbuilder: detail: xc_dom_kernel_file: 
filename="/usr/lib/xen/boot/ioemu-stubdom.gz"
domainbuilder: detail: xc_dom_malloc_filemap  Â: 2582 kB
domainbuilder: detail: xc_dom_malloc      Â: 14326 kB
domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x285849 -> 0xdfda70
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.5, caps xen-3.0-x86_64 
xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64Â
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...Â
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux bzImage loader ...Â
domainbuilder: detail: xc_dom_probe_bzimage_kernel: kernel is not a bzImage
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying ELF-generic loader ...Â
domainbuilder: detail: loader probe OK
xc: detail: elf_parse_binary: phdr: paddr=0x0 memsz=0x562068
xc: detail: elf_parse_binary: memory: 0x0 -> 0x562068
xc: detail: elf_xen_parse: __xen_guest: 
"GUEST_OS=Mini-OS,XEN_VER=xen-3.0,VIRT_BASE=0x0,ELF_PADDR_OFFSET=0x0,HYPERCALL_PAGE=0x2,LOADER=generic"
xc: detail: elf_xen_parse_guest_info: GUEST_OS="Mini-OS"
xc: detail: elf_xen_parse_guest_info: XEN_VER="xen-3.0"
xc: detail: elf_xen_parse_guest_info: VIRT_BASE="0x0"
xc: detail: elf_xen_parse_guest_info: ELF_PADDR_OFFSET="0x0"
xc: detail: elf_xen_parse_guest_info: HYPERCALL_PAGE="0x2"
xc: detail: elf_xen_parse_guest_info: LOADER="generic"
xc: detail: elf_xen_addr_calc_check: addresses:
xc: detail:   virt_base    Â= 0x0
xc: detail: Â Â elf_paddr_offset = 0x0
xc: detail:   virt_offset   Â= 0x0
xc: detail:   virt_kstart   Â= 0x0
xc: detail:   virt_kend    Â= 0x562068
xc: detail:   virt_entry    = 0x0
xc: detail:   p2m_base     = 0xffffffffffffffff
domainbuilder: detail: xc_dom_parse_elf_kernel: xen-3.0-x86_64: 0x0 -> 0x562068
domainbuilder: detail: xc_dom_mem_init: mem 32 MB, pages 0x2000 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x2000 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: x86_compat: guest xen-3.0-x86_64, address size 64
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_alloc_segment:  kernel    : 0x0 -> 0x563000 Â
(pfn 0x0 + 0x563 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x0+0x563 
at 0x7f51688ee000
xc: detail: elf_load_binary: phdr 0 at 0x7f51688ee000 -> 0x7f5168e50068
domainbuilder: detail: xc_dom_alloc_segment:  phys2mach  Â: 0x563000 -> 
0x573000 Â(pfn 0x563 + 0x10 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x563+0x10 
at 0x7f516cc35000
domainbuilder: detail: xc_dom_alloc_page  :  start info  : 0x573000 (pfn 
0x573)
domainbuilder: detail: xc_dom_alloc_page  :  xenstore   : 0x574000 (pfn 
0x574)
domainbuilder: detail: xc_dom_alloc_page  :  console   Â: 0x575000 (pfn 
0x575)
domainbuilder: detail: nr_page_tables: 0x0000ffffffffffff/48: 
0x0000000000000000 -> 0x0000ffffffffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x0000007fffffffff/39: 
0x0000000000000000 -> 0x0000007fffffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x000000003fffffff/30: 
0x0000000000000000 -> 0x000000003fffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x00000000001fffff/21: 
0x0000000000000000 -> 0x00000000007fffff, 4 table(s)
domainbuilder: detail: xc_dom_alloc_segment: Â page tables Â: 0x576000 -> 
0x57d000 Â(pfn 0x576 + 0x7 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x576+0x7 
at 0x7f516cc2e000
domainbuilder: detail: xc_dom_alloc_page  :  boot stack  : 0x57d000 (pfn 
0x57d)
domainbuilder: detail: xc_dom_build_image Â: virt_alloc_end : 0x57e000
domainbuilder: detail: xc_dom_build_image Â: virt_pgtab_end : 0x800000
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: arch_setup_bootearly: doing nothing
domainbuilder: detail: xc_dom_compat_check: supported guest type: 
xen-3.0-x86_64 <= matches
domainbuilder: detail: xc_dom_compat_check: supported guest type: 
xen-3.0-x86_32p
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32
domainbuilder: detail: xc_dom_compat_check: supported guest type: 
hvm-3.0-x86_32p
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_64
domainbuilder: detail: xc_dom_update_guest_p2m: dst 64bit, pages 0x2000
domainbuilder: detail: clear_page: pfn 0x575, mfn 0x7ca0be
domainbuilder: detail: clear_page: pfn 0x574, mfn 0x7ca0bf
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x573+0x1 
at 0x7f516ccdc000
domainbuilder: detail: start_info_x86_64: called
domainbuilder: detail: setup_hypercall_page: vaddr=0x2000 pfn=0x2
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail: Â Âallocated
domainbuilder: detail:    malloc       : 14426 kB
domainbuilder: detail:    anon mmap     Â: 0 bytes
domainbuilder: detail: Â Âmapped
domainbuilder: detail:    file mmap     Â: 2582 kB
domainbuilder: detail:    domU mmap     Â: 5612 kB
domainbuilder: detail: arch_setup_bootlate: shared_info: pfn 0x0, mfn 0xcdefb
domainbuilder: detail: shared_info_x86_64: called
domainbuilder: detail: vcpu_x86_64: called
domainbuilder: detail: vcpu_x86_64: cr3: pfn 0x576 mfn 0x7ca0bd
domainbuilder: detail: launch_vm: called, ctxt=0x7f516ccdd004
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk vdev=hda 
spec.backend=qdisk
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa1e540: 
deregister unregistered
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm: Spawning device-model 
/usr/lib/xen/bin/qemu-dm with arguments:
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â /usr/lib/xen/bin/qemu-dm
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â -d
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â 6
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â -domain-name
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â win7_test-dm
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â -vnc
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â 0.0.0.0:0
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â -vncunused
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â -M
libxl: debug: libxl_dm.c:1439:libxl__spawn_local_dm: Â xenpv
libxl: debug: libxl_event.c:581:libxl__ev_xswatch_register: watch w=0xa1a028 
wpath=/local/domain/0/device-model/6/state token=3/0: register slotnum=3
libxl: debug: libxl_create.c:1520:do_domain_create: ao 0xa190e0: inprogress: 
poller=0xa189c0, flags=i
libxl: debug: libxl_event.c:518:watchfd_callback: watch w=0xa1a028 
wpath=/local/domain/0/device-model/6/state token=3/0: event 
epath=/local/domain/0/device-model/6/state
libxl: debug: libxl_event.c:518:watchfd_callback: watch w=0xa1a028 
wpath=/local/domain/0/device-model/6/state token=3/0: event 
epath=/local/domain/0/device-model/6/state
libxl: debug: libxl_event.c:619:libxl__ev_xswatch_deregister: watch w=0xa1a028 
wpath=/local/domain/0/device-model/6/state token=3/0: deregister slotnum=3
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa1a028: 
deregister unregistered
libxl: debug: libxl_event.c:581:libxl__ev_xswatch_register: watch w=0xa23858 
wpath=/local/domain/0/backend/vif/6/0/state token=3/1: register slotnum=3
libxl: debug: libxl_event.c:518:watchfd_callback: watch w=0xa23858 
wpath=/local/domain/0/backend/vif/6/0/state token=3/1: event 
epath=/local/domain/0/backend/vif/6/0/state
libxl: debug: libxl_event.c:838:devstate_watch_callback: backend 
/local/domain/0/backend/vif/6/0/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:518:watchfd_callback: watch w=0xa23858 
wpath=/local/domain/0/backend/vif/6/0/state token=3/1: event 
epath=/local/domain/0/backend/vif/6/0/state
libxl: debug: libxl_event.c:834:devstate_watch_callback: backend 
/local/domain/0/backend/vif/6/0/state wanted state 2 ok
libxl: debug: libxl_event.c:619:libxl__ev_xswatch_deregister: watch w=0xa23858 
wpath=/local/domain/0/backend/vif/6/0/state token=3/1: deregister slotnum=3
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa23858: 
deregister unregistered
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa238e0: 
deregister unregistered
libxl: error: libxl_dm.c:1284:stubdom_pvqemu_cb: error connecting nics devices: 
No such file or directory
libxl: debug: libxl_dm.c:1613:kill_device_model: Device Model signaled
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa241a0: 
deregister unregistered
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa243d0: 
deregister unregistered
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa24760: 
deregister unregistered
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa24e50: 
deregister unregistered
libxl: error: libxl.c:1652:devices_destroy_cb: libxl__devices_destroy failed 
for 6
libxl: info: libxl.c:1698:devices_destroy_cb: forked pid 2373 for destroy of 
domain 6
libxl: debug: libxl_event.c:581:libxl__ev_xswatch_register: watch w=0xa255f8 
wpath=/local/domain/0/backend/vif/5/0/state token=3/2: register slotnum=3
libxl: debug: libxl_event.c:518:watchfd_callback: watch w=0xa255f8 
wpath=/local/domain/0/backend/vif/5/0/state token=3/2: event 
epath=/local/domain/0/backend/vif/5/0/state
libxl: debug: libxl_event.c:838:devstate_watch_callback: backend 
/local/domain/0/backend/vif/5/0/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:518:watchfd_callback: watch w=0xa255f8 
wpath=/local/domain/0/backend/vif/5/0/state token=3/2: event 
epath=/local/domain/0/backend/vif/5/0/state
libxl: debug: libxl_event.c:834:devstate_watch_callback: backend 
/local/domain/0/backend/vif/5/0/state wanted state 2 ok
libxl: debug: libxl_event.c:619:libxl__ev_xswatch_deregister: watch w=0xa255f8 
wpath=/local/domain/0/backend/vif/5/0/state token=3/2: deregister slotnum=3
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa255f8: 
deregister unregistered
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa25680: 
deregister unregistered
libxl: error: libxl_create.c:1362:domcreate_attach_vtpms: unable to add nic 
devices
libxl: error: libxl.c:1578:libxl__destroy_domid: non-existant domain 6
libxl: error: libxl.c:1510:stubdom_destroy_callback: unable to destroy stubdom 
with domid 6
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa26000: 
deregister unregistered
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa261c0: 
deregister unregistered
libxl: error: libxl_device.c:797:libxl__initiate_device_remove: unable to get 
my domid
libxl: debug: libxl_event.c:633:libxl__ev_xswatch_deregister: watch w=0xa264b0: 
deregister unregistered
libxl: error: libxl.c:1652:devices_destroy_cb: libxl__devices_destroy failed 
for 5
libxl: info: libxl.c:1698:devices_destroy_cb: forked pid 2393 for destroy of 
domain 5
libxl: error: libxl_create.c:1482:domcreate_destruction_cb: unable to destroy 
domain 5 following failed creation
libxl: debug: libxl_event.c:1774:libxl__ao_complete: ao 0xa190e0: complete, 
rc=-3
libxl: debug: libxl_event.c:1746:libxl__ao__destroy: ao 0xa190e0: destroy
xc: debug: hypercall buffer: total allocations:1397 total releases:1397
xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
xc: debug: hypercall buffer: cache current size:4
xc: debug: hypercall buffer: cache hits:1373 misses:4 toobig:20
#########
xl info
#########
host          : xenstubdoms
release        Â: 4.2.5-1-ARCH
version        Â: #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015
machine        Â: x86_64
nr_cpus        Â: 8
max_cpu_id       : 7
nr_nodes        : 1
cores_per_socket    : 4
threads_per_core    : 2
cpu_mhz        Â: 3605
hw_caps        Â: 
bfebfbff:28100800:00000000:00003f00:179ae3bf:00000000:00000001:00000000
virt_caps       Â: hvm
total_memory      : 32721
free_memory      Â: 31336
sharing_freed_memory  : 0
sharing_used_memory  Â: 0
outstanding_claims   : 0
free_cpus       Â: 0
xen_major       Â: 4
xen_minor       Â: 5
xen_extra       Â: .2
xen_version      Â: 4.5.2
xen_caps        : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 
hvm-3.0-x86_32p hvm-3.0-x86_64Â
xen_scheduler     Â: credit
xen_pagesize      : 4096
platform_params    Â: virt_start=0xffff800000000000
xen_changeset     Â:Â
xen_commandline    Â: console=vga,com1 com1=57600i guest_loglvl=all 
dom0_mem=1024M,max:1512M loglvl=all
cc_compiler      Â: gcc (GCC) 5.2.0
cc_compile_by     Â: user
cc_compile_domain   Â: local
cc_compile_date    Â: Wed Nov 11 15:11:35 CET 2015
xend_config_format   : 4
#########

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.