Results 1 to 7 of 7

Thread: I just can not setup my first kvm guest

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Beans
    7

    Re: I just can not setup my first kvm guest

    I was able to avoid these warnings changing the localhost to my dns name:

    Code:
    2010-10-06 19:39:24,870 INFO    : W: Failed to fetch http://localhost:9999/ubuntu/dists/lucid/Release.gpg  Could not resolve 'localhost'
    2010-10-06 19:39:24,871 INFO    :
    2010-10-06 19:39:24,871 INFO    : W: Failed to fetch http://localhost:9999/ubuntu/dists/lucid-updates/Release.gpg  Could not resolve 'localhost'
    2010-10-06 19:39:24,872 INFO    :
    2010-10-06 19:39:24,872 INFO    : W: Some index files failed to download, they have been ignored, or old ones used instead.
    , but still the deploy part fails (see my 1. post).

  2. #2
    Join Date
    Oct 2010
    Beans
    7

    Re: I just can not setup my first kvm guest

    Any ideas out there?

  3. #3
    Join Date
    Oct 2010
    Beans
    7

    Re: I just can not setup my first kvm guest

    I debugged the call that returns an error. That is ret = libvirtmod.virDomainDefineXML(self._o, xml). I also printed the xml given as argument:

    Code:
    <domain type='kvm'>
      <name>ubuntu</name>
      <memory>131072</memory>
      <vcpu>1</vcpu>
      <os>
        <type>hvm</type>
        <boot dev='hd'/>
      </os>
      <features>
        <acpi/>
      </features>
      <clock offset='utc'/>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>destroy</on_crash>
      <devices>
        <emulator>/usr/bin/kvm</emulator>
        <interface type='bridge'>
          <source bridge='br0'/>
        </interface>
        <input type='mouse' bus='ps2'/>
        <graphics type='vnc' port='-1' listen='127.0.0.1'/>
        <disk type='file' device='disk'>
          <source file='/root/ubuntu-kvm/tmpnMJX2n.qcow2' />
          <target dev='hda' />
        </disk>
      </devices>
    </domain>
    Does this xml look like it should?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •