[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Can't create guest using libvirt ( libvirtError: internal error: libxenlight failed to create new domain )
Trying to create guest using the following command : sudo virt-install \ --name testxn2 \ --connect xen:/// \ --memory 512 \ --vcpus 1 \ --disk /var/lib/libvirt/images/testxn2.img,size=6 \ --location ubuntu-16.04.1-server-i386.iso \ --graphics none \ --extra-args 'console=ttyS0,115200n8 serial' \ --network network=default \ -d \ -v A dry run runs ok, but when running for real, got the following output: [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (cli:256) Launched with command line: /usr/share/virt-manager/virt-install --name testxn2 --connect xen:/// --memory 512 --vcpus 1 --disk /var/lib/libvirt/images/testxn2.img,size=6 --location ubuntu-16.04.1-server-i386.iso --graphics none --extra-args console=ttyS0,115200n8 serial --network network=default -d -v [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (cli:266) Requesting libvirt URI xen:/// [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (cli:270) Received libvirt URI xen:/// [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (virt-install:357) Requesting virt method 'hvm', hv type 'default'. [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (virt-install:576) Received virt method 'xen' [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (virt-install:577) Hypervisor name is 'hvm' [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (virt-install:269) Distilled --network options: ['network=default'] [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (virt-install:182) Distilled --disk options: ['/var/lib/libvirt/images/testxn2.img,size=6'] [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (devicedisk:391) Creating volume 'testxn2.img' on pool 'images' [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (devicedisk:513) disk.set_vol_install: name=testxn2.img poolxml= <pool type='dir'> <name>images</name> <uuid>d248ea13-269a-4b2d-888e-50e53625dc45</uuid> <capacity unit='bytes'>975494369280</capacity> <allocation unit='bytes'>10432860160</allocation> <available unit='bytes'>965061509120</available> <source> </source> <target> <path>/var/lib/libvirt/images</path> <permissions> <mode>0711</mode> <owner>0</owner> <group>0</group> </permissions> </target> </pool> [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (distroinstaller:514) installer.detect_distro returned=None [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (guest:241) Setting Guest.os_variant to 'None' [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (virt-install:731) Guest.has_install_phase: True Starting install... [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:56) Using scratchdir=/var/lib/xen [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:296) Preparing mount at /var/lib/xen/virtinstmnt.cf3Ayl [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:306) mount cmd: ['/bin/mount', '-o', 'ro,loop', '/home/charles/ubuntu-16.04.1-server-i386.iso', '/var/lib/xen/virtinstmnt.cf3Ayl'] [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:463) Finding distro store for location=/home/charles/ubuntu-16.04.1-server-i386.iso [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/xen/virtinstmnt.cf3Ayl/Fedora [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/xen/virtinstmnt.cf3Ayl/current/images/MANIFEST [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/xen/virtinstmnt.cf3Ayl/daily/MANIFEST [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:268) local hasFile: Couldn't find /var/lib/xen/virtinstmnt.cf3Ayl/current/images/MANIFEST [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:89) Fetching URI: /var/lib/xen/virtinstmnt.cf3Ayl/install/netboot/version.info Retrieving file version.info... | 58 B 00:00:00 [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:1137) Didn't find any known codename in the URL string [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:498) Detected distro name=Ubuntu osvariant=linux [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:89) Fetching URI: /var/lib/xen/virtinstmnt.cf3Ayl/install/netboot/ubuntu-installer/i386/linux Retrieving file linux... | 6.5 MB 00:00:00 [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:157) Saved file to /var/lib/xen/virtinst-linux.R7MisM [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:89) Fetching URI: /var/lib/xen/virtinstmnt.cf3Ayl/install/netboot/ubuntu-installer/i386/initrd.gz Retrieving file initrd.gz... [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:157) Saved file to /var/lib/xen/virtinst-initrd.gz.Zf5dJm [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (distroinstaller:271) Have access to preferred scratchdir so nothing to upload [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (urlfetcher:320) Cleaning up mount at /var/lib/xen/virtinstmnt.cf3Ayl [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (storage:765) Creating storage volume 'testxn2.img' with xml: <volume> <name>testxn2.img</name> <capacity>6442450944</capacity> <allocation>6442450944</allocation> <target> <format type="raw"/> </target> </volume> [Qui, 01 Dez 2016 09:02:19 virt-install 6473] DEBUG (storage:797) Using vol create flags=0 [Qui, 01 Dez 2016 09:02:20 virt-install 6473] DEBUG (storage:830) Couldn't lookup storage volume in prog thread. Allocating 'testxn2.img' | 6.0 GB 00:00:00 [Qui, 01 Dez 2016 09:02:20 virt-install 6473] DEBUG (storage:804) Storage volume 'testxn2.img' install complete. [Qui, 01 Dez 2016 09:02:20 virt-install 6473] DEBUG (guest:398) Generated install XML: <domain type="xen"> <name>testxn2</name> <uuid>51cdbb08-1760-44cd-ad21-18ea3ce1b5dd</uuid> <memory>524288</memory> <currentMemory>524288</currentMemory> <vcpu>1</vcpu> <os> <type arch="x86_64">hvm</type> <loader>/usr/lib/xen-4.6/boot/hvmloader</loader> <kernel>/var/lib/xen/virtinst-linux.R7MisM</kernel> <initrd>/var/lib/xen/virtinst-initrd.gz.Zf5dJm</initrd> <cmdline> console=ttyS0,115200n8 serial</cmdline> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset="utc"/> <on_poweroff>destroy</on_poweroff> <on_reboot>destroy</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-i386</emulator> <disk type="file" device="disk"> <driver name="qemu" type="raw"/> <source file="/var/lib/libvirt/images/testxn2.img"/> <target dev="hda" bus="ide"/> </disk> <disk type="file" device="cdrom"> <driver name="qemu" type="raw"/> <source file="/home/charles/ubuntu-16.04.1-server-i386.iso"/> <target dev="hdb" bus="ide"/> <readonly/> </disk> <interface type="network"> <source network="default"/> <mac address="00:16:3e:bf:be:df"/> </interface> <input type="mouse" bus="ps2"/> <console type="pty"/> </devices> </domain> [Qui, 01 Dez 2016 09:02:20 virt-install 6473] DEBUG (guest:399) Generated boot XML: <domain type="xen"> <name>testxn2</name> <uuid>51cdbb08-1760-44cd-ad21-18ea3ce1b5dd</uuid> <memory>524288</memory> <currentMemory>524288</currentMemory> <vcpu>1</vcpu> <os> <type arch="x86_64">hvm</type> <loader>/usr/lib/xen-4.6/boot/hvmloader</loader> <boot dev="hd"/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset="utc"/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/qemu-system-i386</emulator> <disk type="file" device="disk"> <driver name="qemu" type="raw"/> <source file="/var/lib/libvirt/images/testxn2.img"/> <target dev="hda" bus="ide"/> </disk> <disk type="file" device="cdrom"> <target dev="hdb" bus="ide"/> <readonly/> </disk> <interface type="network"> <source network="default"/> <mac address="00:16:3e:bf:be:df"/> </interface> <input type="mouse" bus="ps2"/> <console type="pty"/> </devices> </domain> [Qui, 01 Dez 2016 09:02:24 virt-install 6473] DEBUG (installer:187) Removing /var/lib/xen/virtinst-linux.R7MisM [Qui, 01 Dez 2016 09:02:24 virt-install 6473] DEBUG (installer:187) Removing /var/lib/xen/virtinst-initrd.gz.Zf5dJm [Qui, 01 Dez 2016 09:02:24 virt-install 6473] DEBUG (cli:305) File "/usr/share/virt-manager/virt-install", line 1063, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-install", line 1057, in main start_install(guest, continue_inst, options) File "/usr/share/virt-manager/virt-install", line 768, in start_install fail(e, do_exit=False) File "/usr/share/virt-manager/virtinst/cli.py", line 305, in fail logging.debug("".join(traceback.format_stack())) [Qui, 01 Dez 2016 09:02:24 virt-install 6473] ERROR (cli:306) internal error: libxenlight failed to create new domain 'testxn2' [Qui, 01 Dez 2016 09:02:24 virt-install 6473] DEBUG (cli:308) Traceback (most recent call last): File "/usr/share/virt-manager/virt-install", line 741, in start_install dom = guest.start_install(meter=meter, noboot=options.noreboot) File "/usr/share/virt-manager/virtinst/guest.py", line 501, in start_install noboot) File "/usr/share/virt-manager/virtinst/guest.py", line 416, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3606, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: internal error: libxenlight failed to create new domain 'testxn2' [Qui, 01 Dez 2016 09:02:24 virt-install 6473] DEBUG (guest:540) Removing created disk path=/var/lib/libvirt/images/testxn2.img vol_object=<libvirt.virStorageVol object at 0x7fa908191b10> Removing disk 'testxn2.img' | 0 B 00:00:00 [Qui, 01 Dez 2016 09:02:24 virt-install 6473] DEBUG (cli:319) Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect xen:/// start testxn2 otherwise, please restart your installation. Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect xen:/// start testxn2 otherwise, please restart your installation. In the logs got the following message: ➜ /var/log/xen cat /var/log/xen/qemu-dm-testxn2.log char device redirected to /dev/pts/12 (label serial0) qemu: hardware error: xen: failed to populate ram at 20050000 CPU #0: EAX=00000000 EBX=00000000 ECX=00000000 EDX=00000663 ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000 EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 00000000 0000ffff 00009300 CS =f000 ffff0000 0000ffff 00009b00 SS =0000 00000000 0000ffff 00009300 DS =0000 00000000 0000ffff 00009300 FS =0000 00000000 0000ffff 00009300 GS =0000 00000000 0000ffff 00009300 LDT=0000 00000000 0000ffff 00008200 TR =0000 00000000 0000ffff 00008b00 GDT= 00000000 0000ffff IDT= 00000000 0000ffff CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 DR6=ffff0ff0 DR7=00000400 EFER=0000000000000000 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000 Runing on Ubuntu : ➜ ~ uname -a Linux charles-OptiPlex-7010 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux ➜ ~ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial ➜ ~ sudo xl info host : charles-OptiPlex-7010 release : 4.4.0-47-generic version : #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 machine : x86_64 nr_cpus : 4 max_cpu_id : 3 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 3392 hw_caps : bfebfbff:28100800:00000000:00007f00:77bae3ff:00000000:00000001:00000281 virt_caps : hvm hvm_directio total_memory : 8110 free_memory : 519 sharing_freed_memory : 0 sharing_used_memory : 0 outstanding_claims : 0 free_cpus : 0 xen_major : 4 xen_minor : 6 xen_extra : .0 xen_version : 4.6.0 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 : placeholder cc_compiler : gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609 cc_compile_by : stefan.bader cc_compile_domain : canonical.com cc_compile_date : Tue Oct 11 17:03:41 UTC 2016 xend_config_format : 4 Tryied to stop apparmor as suggested on similar issues appeared on a quick google search. Also tryied to change virt-create parameters, but no effect! Any Ideas what could be doing this problem? -- Charles F.'. Gonçalves _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx https://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |