[libvirt-users] how to boot the lxc container with a default ip

lei yang yanglei.fage at gmail.com
Thu Sep 26 16:50:31 UTC 2013


Hi expert

my xml is

<domain type='lxc'>
  <name>vm1</name>
  <memory>500000</memory>
  <os>
    <type>exe</type>
    <init>/bin/sh</init>
  </os>
  <vcpu>1</vcpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/libexec/libvirt_lxc</emulator>
    <interface type='network'>
      <source network='default'/>
    </interface>
    <console type='pty' />
  </devices>
</domain>


I want start the guest with a ip=192.168.122.22 how could I modify the xml
?

Lei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130927/d42cb7d2/attachment.htm>


More information about the libvirt-users mailing list