Hi, As you can see below there is a bug when you don''t use the default virt_ram virt_file_size Even when I give it to the profile add the settings are correctly saved (/var/lib/cobbler/profiles) but when cobbler list you don''t see your setting when using koan he also doesn''t see the setting my problem is that i don''t have 512MB free memory so it fails cobbler profile add --name=fc6test --distro=fc6test --virt-file-size=3 --virt-ram=96 cobbler list defaults kernel options : append devfs=nomount ramdisk_size=16438 lang= vga=788 ksdevice=eth0 distro 1 : fc6test kernel : /boot/vmlinuz-2.6.18-1.2798.fc6xen initrd : /boot/initrd-2.6.18-1.2798.fc6xen.img kernel options : architecture : x86 ks metadata : distro 2 : var_www_cobbler_localmirror_fc6_images_pxeboot kernel : /var/www/cobbler/localmirror/fc6/images/pxeboot/vmlinuz initrd : /var/www/cobbler/localmirror/fc6/images/pxeboot/initrd.img kernel options : architecture : x86 ks metadata : profile 1 : fc6test distro : fc6test kickstart : /etc/cobbler/default.ks kernel options : ks metadata : virt name : fc6test virt file size : virt ram : virt paravirt : profile 2 : var_www_cobbler_localmirror_fc6_images_pxeboot distro : var_www_cobbler_localmirror_fc6_images_pxeboot kickstart : /etc/cobbler/kickstart_fc5.ks kernel options : ks metadata : tree=http://127.0.0.1/localmirror/fc6 virt name : var_www_cobbler_localmirror_fc6_images_pxeboot virt file size : virt ram : virt paravirt : There are no configured System records. koan --virt --profile=fc6test --server=localhost - processing profile: fc6test - fetching configuration for profile: fc6test - url=http://localhost/cobbler/profiles/fc6test - {''kickstart'': ''http://127.0.0.1/cobbler/kickstarts/fc6test/ks.cfg'', ''name'': ''fc6test'', ''virt_ram'': '''', ''virt_paravirt'': '''', ''kernel_options'': ''lang ksdevice=eth0 vga=788 devfs=nomount ramdisk_size=16438'', ''virt_name'': ''fc6test'', ''virt_file_size'': '''', ''distro'': ''fc6test'', ''ks_meta'': ''''} - fetching configuration for distro: fc6test - url=http://localhost/cobbler/distros/fc6test - {''kernel'': ''/boot/vmlinuz-2.6.18-1.2798.fc6xen'', ''ks_meta'': '''', ''kernel_options'': ''lang ksdevice=eth0 vga=788 devfs=nomount ramdisk_size=16438'', ''initrd'': ''/boot/initrd-2.6.18-1.2798.fc6xen.img'', ''arch'': ''x86'', ''name'': ''fc6test''} - downloading initrd initrd-2.6.18-1.2798.fc6xen.img to /tmp/initrd-2.6.18-1.2798.fc6xen.img - url=http://localhost/cobbler/images/fc6test/initrd-2.6.18-1.2798.fc6xen.img - downloading kernel vmlinuz-2.6.18-1.2798.fc6xen to /tmp/vmlinuz-2.6.18-1.2798.fc6xen - url=http://localhost/cobbler/images/fc6test/vmlinuz-2.6.18-1.2798.fc6xen - kernel saved = /tmp/vmlinuz-2.6.18-1.2798.fc6xen - initrd saved = /tmp/initrd-2.6.18-1.2798.fc6xen.img - invalid RAM size specified, defaulting to 256 MB - invalid file size specified, defaulting to 1 GB libvir: Xen Daemon error : GET operation failed: No such domain 6 libvir: Xen Daemon error : POST operation failed: (xend.err ''Error creating domain: I need 262144 KiB, but dom0_min_mem is 262144 and shrinking to 262144 KiB would leave only -15940 KiB free.'') Failed to create domain fc6test Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/koan/app.py", line 96, in main k.run() File "/usr/lib/python2.4/site-packages/koan/app.py", line 154, in run self.do_virt() File "/usr/lib/python2.4/site-packages/koan/app.py", line 295, in do_virt return self.do_net_install("/tmp",after_download) File "/usr/lib/python2.4/site-packages/koan/app.py", line 253, in do_net_install after_download(self, distro_data, profile_data) File "/usr/lib/python2.4/site-packages/koan/app.py", line 294, in after_download self.do_virt_net_install(profile_data, distro_data) File "/usr/lib/python2.4/site-packages/koan/app.py", line 574, in do_virt_net_install extra=kextra File "/usr/lib/python2.4/site-packages/koan/virtcreate.py", line 196, in start_paravirt_install dom = conn.createLinux(cfgxml, 0) File "/usr/lib/python2.4/site-packages/libvirt.py", line 249, in createLinux if ret is None:raise libvirtError(''virDomainCreateLinux() failed'') libvirtError: virDomainCreateLinux() failed cat /var/lib/cobbler/profiles --- - distro: &1 var_www_cobbler_localmirror_fc6_images_pxeboot kernel_options: '''' kickstart: /etc/cobbler/kickstart_fc5.ks ks_meta: ''tree=http://127.0.0.1/localmirror/fc6'' name: *1 virt_file_size: '''' virt_name: *1 virt_paravirt: '''' virt_ram: '''' - distro: fc6test kernel_options: '''' kickstart: /etc/cobbler/default.ks ks_meta: '''' name: fc6test virt_file_size: 3 virt_name: virtguest virt_paravirt: True virt_ram: 96
Michael DeHaan
2006-Dec-20 16:05 UTC
Re: [Fedora-xen] cobbler problem virt_mem virt_file_size
Mario Verbelen wrote:> Hi, > > As you can see below there is a bug when you don''t use the default > virt_ram virt_file_size > > Even when I give it to the profile add the settings are correctly saved > (/var/lib/cobbler/profiles) > but when cobbler list you don''t see your setting > when using koan he also doesn''t see the setting > > my problem is that i don''t have 512MB free memory so it fails > > cobbler profile add --name=fc6test --distro=fc6test --virt-file-size=3 > --virt-ram=96 > > > cobbler list > defaults > kernel options : append devfs=nomount ramdisk_size=16438 lang= vga=788 > ksdevice=eth0 > > distro 1 : fc6test > kernel : /boot/vmlinuz-2.6.18-1.2798.fc6xen > initrd : /boot/initrd-2.6.18-1.2798.fc6xen.img > kernel options : > architecture : x86 > ks metadata : > > > distro 2 : var_www_cobbler_localmirror_fc6_images_pxeboot > kernel : /var/www/cobbler/localmirror/fc6/images/pxeboot/vmlinuz > initrd : /var/www/cobbler/localmirror/fc6/images/pxeboot/initrd.img > kernel options : > architecture : x86 > ks metadata : > > profile 1 : fc6test > distro : fc6test > kickstart : /etc/cobbler/default.ks > kernel options : > ks metadata : > virt name : fc6test > virt file size : > virt ram : > virt paravirt : > > > profile 2 : var_www_cobbler_localmirror_fc6_images_pxeboot > distro : var_www_cobbler_localmirror_fc6_images_pxeboot > kickstart : /etc/cobbler/kickstart_fc5.ks > kernel options : > ks metadata : tree=http://127.0.0.1/localmirror/fc6 > virt name : var_www_cobbler_localmirror_fc6_images_pxeboot > virt file size : > virt ram : > virt paravirt : > > There are no configured System records. > > > > koan --virt --profile=fc6test --server=localhost > - processing profile: fc6test > - fetching configuration for profile: fc6test > - url=http://localhost/cobbler/profiles/fc6test > - {''kickstart'': ''http://127.0.0.1/cobbler/kickstarts/fc6test/ks.cfg'', > ''name'': ''fc6test'', ''virt_ram'': '''', ''virt_paravirt'': '''', > ''kernel_options'': ''lang ksdevice=eth0 vga=788 devfs=nomount > ramdisk_size=16438'', ''virt_name'': ''fc6test'', ''virt_file_size'': '''', > ''distro'': ''fc6test'', ''ks_meta'': ''''} > - fetching configuration for distro: fc6test > - url=http://localhost/cobbler/distros/fc6test > - {''kernel'': ''/boot/vmlinuz-2.6.18-1.2798.fc6xen'', ''ks_meta'': '''', > ''kernel_options'': ''lang ksdevice=eth0 vga=788 devfs=nomount > ramdisk_size=16438'', ''initrd'': ''/boot/initrd-2.6.18-1.2798.fc6xen.img'', > ''arch'': ''x86'', ''name'': ''fc6test''} > - downloading initrd initrd-2.6.18-1.2798.fc6xen.img > to /tmp/initrd-2.6.18-1.2798.fc6xen.img > - > url=http://localhost/cobbler/images/fc6test/initrd-2.6.18-1.2798.fc6xen.img > - downloading kernel vmlinuz-2.6.18-1.2798.fc6xen > to /tmp/vmlinuz-2.6.18-1.2798.fc6xen > - > url=http://localhost/cobbler/images/fc6test/vmlinuz-2.6.18-1.2798.fc6xen > - kernel saved = /tmp/vmlinuz-2.6.18-1.2798.fc6xen > - initrd saved = /tmp/initrd-2.6.18-1.2798.fc6xen.img > - invalid RAM size specified, defaulting to 256 MB > - invalid file size specified, defaulting to 1 GB > libvir: Xen Daemon error : GET operation failed: No such domain 6 > libvir: Xen Daemon error : POST operation failed: (xend.err ''Error > creating domain: I need 262144 KiB, but dom0_min_mem is 262144 and > shrinking to 262144 KiB would leave only -15940 KiB free.'') > Failed to create domain fc6test > Traceback (most recent call last): > File "/usr/lib/python2.4/site-packages/koan/app.py", line 96, in main > k.run() > File "/usr/lib/python2.4/site-packages/koan/app.py", line 154, in run > self.do_virt() > File "/usr/lib/python2.4/site-packages/koan/app.py", line 295, in > do_virt > return self.do_net_install("/tmp",after_download) > File "/usr/lib/python2.4/site-packages/koan/app.py", line 253, in > do_net_install > after_download(self, distro_data, profile_data) > File "/usr/lib/python2.4/site-packages/koan/app.py", line 294, in > after_download > self.do_virt_net_install(profile_data, distro_data) > File "/usr/lib/python2.4/site-packages/koan/app.py", line 574, in > do_virt_net_install > extra=kextra > File "/usr/lib/python2.4/site-packages/koan/virtcreate.py", line 196, > in start_paravirt_install > dom = conn.createLinux(cfgxml, 0) > File "/usr/lib/python2.4/site-packages/libvirt.py", line 249, in > createLinux > if ret is None:raise libvirtError(''virDomainCreateLinux() failed'') > libvirtError: virDomainCreateLinux() failed > > > > > cat /var/lib/cobbler/profiles > --- > - > distro: &1 var_www_cobbler_localmirror_fc6_images_pxeboot > kernel_options: '''' > kickstart: /etc/cobbler/kickstart_fc5.ks > ks_meta: ''tree=http://127.0.0.1/localmirror/fc6'' > name: *1 > virt_file_size: '''' > virt_name: *1 > virt_paravirt: '''' > virt_ram: '''' > - > distro: fc6test > kernel_options: '''' > kickstart: /etc/cobbler/default.ks > ks_meta: '''' > name: fc6test > virt_file_size: 3 > virt_name: virtguest > virt_paravirt: True > virt_ram: 96 > > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen >I apologize for the extremely late reply to this, as I don''t read the fedora-xen list archives as often as I should. This one snuck past. In general, cobbler discussion happens on et-mgmt-tools@redhat.com -- all emails to that list (or submissions to cobbler''s bugzilla component) will definitely catch my attention. This will be fixed in 0.3.5 -- which I''ll push this out this week. Thanks, Michael DeHaan