[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Could not allocate memory for HVM guest
Hi, I encountered a problem in creating a dom0 vm. When I set maxmem in the cfg file, I'll get this error xc: error: Could not allocate memory for HVM guest. (16 = Device or resource busy): Internal error If I don't have maxmem, it's ok. Here is my environment and my configuration dom0 is Gentoo. The kernel is 4.4.26. I've set GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=4096M,max:16384M" GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT="softlevel=xen" in /etc/default/grub and autoballoon="0" in /etc/xen/xl.conf "xl info" shows that there's around 12G free memory machine : x86_64 nr_cpus : 4 max_cpu_id : 3 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 3116 hw_caps : bfebfbff:28100800:00000000:00007f00:77bae3bf:00000000:00000001:00000281 virt_caps : hvm hvm_directio total_memory : 16332 free_memory : 12018 sharing_freed_memory : 0 sharing_used_memory : 0 outstanding_claims : 0 free_cpus : 0 xen_major : 4 xen_minor : 6 xen_extra : .3 xen_version : 4.6.3 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 dom0_mem=4096M,max:16384M cc_compiler : x86_64-pc-linux-gnu-gcc (Gentoo 4.9.3 p1.5, pie-0.6.4) 4.9.3 cc_compile_by : cc_compile_domain : Home cc_compile_date : Fri Nov 4 09:56:34 PDT 2016 xend_config_format : 4 And here's my vm configuration name = "xenwin10" builder='hvm' memory = 4096 maxmem = 6144 shadow_memory = 8 vif = [ 'type=ioemu, bridge=xenbr0' ] acpi = 1 apic = 1 disk = [ 'phy:/dev/sdb,hda,w' ] hdtype="ahci" boot="c" sdl=0 vnc=1 vncconsole=1 vncpasswd='' serial='pty' usbdevice='tablet' If I don't set maxmem, there is no the memory error (though there're other errors such as network bridge. But I don't think it's related here). My question is: Why can I set the memory with maxmem and how do I solve the memory issue and also have maxmem set.I would like to set 4G to the Windows VM to start with and allow it to grow to 6G. Please advise me any solutions or investigation. I appreciate it. Thanks so much Mao _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx https://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |