[libvirt] how to connect LXC via libvirt

2008-12-17 Thread Ian jonhson
Hi Daniel, I followed the instructions in: https://lists.linux-foundation.org/pipermail/containers/2008-September/013237.html to try to connect with LXC which is built in my VM (ubuntu7.10 + kernel 2.6.27-rc8). Unfortunately, I fail. The container can work when I use its user-space interfaces,

Re: [libvirt] Are there interfaces to change IP address of given domain before it runn

2008-11-26 Thread Ian jonhson
Seconded - DHCP is your friend. Aside from MAC address, when cloning VMs you must also change name, UUID, posibly VNC port if hardcoded. To automate this, we provide a virt-clone tool. agree. It won't touch anything inside the guest, but it'll take care of the disk copy and changing all

Re: [libvirt] Are there interfaces to change IP address of given domain before it runn

2008-11-26 Thread Ian jonhson
Use DHCP, and ensure that when you create the domain configuration xml file for the second instance that you remove the MAC address lines before you define it in virsh so libvirt generates new MAC addresses for the copies. However, I can not know the IP address before it has been allocated

[libvirt] Are there interfaces to change IP address of given domain before it runn

2008-11-25 Thread Ian jonhson
Dear all, I has created a image file in local filesystem. And now, I wrote a program based on libvirt to run two instances of given image file. But I found they are using the same IP address which make them cut off the network. So, I wonder there are any solution to guarantee that both VM

[libvirt] Have any commands in libvirt to run a domain

2008-11-01 Thread Ian jonhson
Hi all, Are there any commands in console to start/suspend/resume/stop a domain? Is it possible to start a domain as following command: # libvirt-command -cpu cpu cycle -mem memory -disk disk quota -network network bandwith -template windows If not, can I build this command with existing