[et-mgmt-tools] problems with koan...

John.Sanabria at ece.uprm.edu John.Sanabria at ece.uprm.edu
Thu Feb 8 04:36:01 UTC 2007


ok,

after has been resolved the problems with fedora core 6 in my laptop
(compaq r3000), running xen and SELinux disabled, i try to run the koan in
my laptop.

The scenario as follows:

my cobbler server is 136.145.116.114. I set up the next on it:

# cobbler distro add --name="test1" --kernel=/boot/vmlinuz-2.6.18...
--initrd=/boot/initrd-2.6.18...

# cobbler profile add --name="test1-profile" --distro="test1"
--kickstart=/root/anaconda-ks.cfg.virtual --virt-name="cobblertest"
--virt-file-size=3 --virt-ram=250

when run koan in my laptop, as follows:
# koan --virt --profile=test1-profile --server=136.145.116.114

i got the next output:

- processing profile: test1-profile
- fetching configuration for profile: test1-profile
- url=http://136.145.116.114/cobbler/profiles/test1-profile
- {'kickstart':
'http://136.145.116.114/cobbler_track/kickstarts/test1-profile/ks.cfg',
'name': 'test1-profile', 'virt_ram': 250, 'repos': '', 'kernel_options':
'lang ksdevice=eth0  text syslog=136.145.116.114:25150 devfs=nomount
ramdisk_size=16438 syslog=136.145.116.114:25150', 'virt_name':
'cobblertest', 'virt_file_size': 3, 'distro': 'test1', 'virt_paravirt':
'True', 'ks_meta': ''}
- fetching configuration for distro: test1
- url=http://136.145.116.114/cobbler/distros/test1
- {'kernel': '/boot/vmlinuz-2.6.18-1.2798.fc6', 'ks_meta': '',
'kernel_options': 'lang ksdevice=eth0  text devfs=nomount
ramdisk_size=16438 syslog=136.145.116.114:25150', 'initrd':
'/boot/initrd-2.6.18-1.2798.fc6.img', 'arch': 'x86', 'name': 'test1'} -
downloading initrd initrd-2.6.18-1.2798.fc6.img to
/tmp/initrd-2.6.18-1.2798.fc6.img
-
url=http://136.145.116.114/cobbler/images/test1/initrd-2.6.18-1.2798.fc6.img
- downloading kernel vmlinuz-2.6.18-1.2798.fc6 to
/tmp/vmlinuz-2.6.18-1.2798.fc6
-
url=http://136.145.116.114/cobbler/images/test1/vmlinuz-2.6.18-1.2798.fc6
- kernel saved = /tmp/vmlinuz-2.6.18-1.2798.fc6
- initrd saved = /tmp/initrd-2.6.18-1.2798.fc6.img
- invalid RAM size specified, defaulting to 256 MB
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 244156 KiB free.')
Failed to create domain cobblertest
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 97, in main
    k.run()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 155, in run
    self.do_virt()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 296, in
do_virt
    return self.do_net_install("/tmp",after_download)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 254, in
do_net_install
    after_download(self, distro_data, profile_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 295, in
after_download
    self.do_virt_net_install(profile_data, distro_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 595, 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 329, in
createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: virDomainCreateLinux() failed 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 244156 KiB free.')

ok, looks the parameter "--virt-ram=250" is a bad idea, i remove the
profile and create another one with no "--virt-ram" because default value
is 512, so, according to message looks enough.

I run again the koan command again and i got the next output:
- processing profile: test1-profile
- fetching configuration for profile: test1-profile
- url=http://136.145.116.114/cobbler/profiles/test1-profile
- {'kickstart':
'http://136.145.116.114/cobbler_track/kickstarts/test1-profile/ks.cfg',
'name': 'test1-profile', 'virt_ram': 250, 'repos': '', 'kernel_options':
'lang ksdevice=eth0  text syslog=136.145.116.114:25150 devfs=nomount
ramdisk_size=16438 syslog=136.145.116.114:25150', 'virt_name':
'cobblertest', 'virt_file_size': 3, 'distro': 'test1', 'virt_paravirt':
'True', 'ks_meta': ''}
- fetching configuration for distro: test1
- url=http://136.145.116.114/cobbler/distros/test1
- {'kernel': '/boot/vmlinuz-2.6.18-1.2798.fc6', 'ks_meta': '',
'kernel_options': 'lang ksdevice=eth0  text devfs=nomount
ramdisk_size=16438 syslog=136.145.116.114:25150', 'initrd':
'/boot/initrd-2.6.18-1.2798.fc6.img', 'arch': 'x86', 'name': 'test1'} -
downloading initrd initrd-2.6.18-1.2798.fc6.img to
/tmp/initrd-2.6.18-1.2798.fc6.img
-
url=http://136.145.116.114/cobbler/images/test1/initrd-2.6.18-1.2798.fc6.img
- downloading kernel vmlinuz-2.6.18-1.2798.fc6 to
/tmp/vmlinuz-2.6.18-1.2798.fc6
-
url=http://136.145.116.114/cobbler/images/test1/vmlinuz-2.6.18-1.2798.fc6
- kernel saved = /tmp/vmlinuz-2.6.18-1.2798.fc6
- initrd saved = /tmp/initrd-2.6.18-1.2798.fc6.img
- invalid RAM size specified, defaulting to 256 MB
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 244156 KiB free.')
Failed to create domain cobblertest
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 97, in main
    k.run()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 155, in run
    self.do_virt()
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 296, in
do_virt
    return self.do_net_install("/tmp",after_download)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 254, in
do_net_install
    after_download(self, distro_data, profile_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 295, in
after_download
    self.do_virt_net_install(profile_data, distro_data)
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 595, 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 329, in
createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: virDomainCreateLinux() failed 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 244156 KiB free.')

Any suggestions? thanks a lot!

Configurations:

Server: 136.145.116.114
RAM=1Gbyte
SO=Fedora Core 6

Laptop:
RAM=512Mbytes
SO=Fedora Core 6

both systems has disable the firewall and SELinux.


                    (`'`'`'`'`)
                     |       |
                     |       |
                     |       |
    -----..        (()----   |
   |        ||     (_        |
   |        ||       |       |
   |        ||       |       |
   |        ||       /\   ..--
   '--------''   /\  ||-''    \
      /   \      \ \//   ,,   \---.
   .---------.    \./ |~| /__\  \  |
___|_________|__|""-.___ / ||   |  |
|               | .-----'  ||   |  |
|               |CC.-----.      |  |
|               |  '-----'      |  |-ABG
                                |  |






More information about the et-mgmt-tools mailing list