Re: [libvirt] [question]Is there a good way to get the mac of guest interface after I attached it to a guest

2014-01-24 Thread Sheldon
On 01/24/2014 03:55 PM, Martin Kletzander wrote: On Fri, Jan 24, 2014 at 10:37:20AM +0800, Sheldon wrote: Now I working on a new KVM management tool base on html5 and libvirt we will support a REST API for detach and attach guest interface. we want to use mac as the identifier of the network

Re: [libvirt] [question]Is there a good way to get the mac of guest interface after I attached it to a guest

2014-01-24 Thread Sheldon
On 01/24/2014 05:30 PM, Martin Kletzander wrote: On Fri, Jan 24, 2014 at 04:34:12PM +0800, Sheldon wrote: On 01/24/2014 03:55 PM, Martin Kletzander wrote: On Fri, Jan 24, 2014 at 10:37:20AM +0800, Sheldon wrote: Now I working on a new KVM management tool base on html5 and libvirt we

[libvirt] [question]Is there a good way to get the mac of guest interface after I attached it to a guest

2014-01-23 Thread Sheldon
] = prefix[2]; addr-addr[3] = virRandomBits(8); addr-addr[4] = virRandomBits(8); addr-addr[5] = virRandomBits(8); } libvirt also use the KVM prefix as default as it's in the privately administered range: 52:54:00:XX:XX:XX -- Thanks and best regards! Sheldon Feng(冯少合)shao...@linux.vnet.ibm.com IBM

Re: [libvirt] [question]Is there a good way to get the mac of guest interface after I attached it to a guest

2014-01-23 Thread Sheldon
] = virRandomBits(8); } libvirt also use the KVM prefix as default as it's in the privately administered range: 52:54:00:XX:XX:XX -- Thanks and best regards! Sheldon Feng(冯少合)shao...@linux.vnet.ibm.com IBM Linux Technology Center -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com

Re: [libvirt] [question] We can create two network of one same linux bridge or local ethernet. It is a bug?

2013-12-02 Thread Sheldon
On 12/02/2013 10:48 PM, Laine Stump wrote: On 12/02/2013 11:52 AM, Daniel P. Berrange wrote: On Sat, Nov 30, 2013 at 07:30:03PM +0800, Sheldon wrote: We can create two network of one same linux bridge or local ethernet: This is not harmful. But I wonder should this case is allowed? Why

[libvirt] [question] We can create two network of one same linux bridge or local ethernet. It is a bug?

2013-11-30 Thread Sheldon
forward dev='eth0' mode='bridge' interface dev='eth0'/ /forward /network virsh # net-dumpxml br1 network namebr1/name uuidf1c87b80-2dfc-2a71-3fb6-56ef83daf29a/uuid forward dev='eth0' mode='bridge' interface dev='eth0'/ /forward /network -- Sheldon Feng(冯少合)shao...@linux.vnet.ibm.com IBM Linux

Re: [libvirt] [PATCH] add a default event handle, to passthough the new events come from qemu

2011-10-10 Thread Sheldon
On 10/10/2011 11:54 PM, shao...@linux.vnet.ibm.com wrote: From: Shaohe Fengshao...@linux.vnet.ibm.com Basically, this feature can go along with qemu monitor passthrough. That way, if we use new commands in the monitor that generate new events, we want some way to receive those new events

Re: [libvirt] [PATCH 1/4] api: Add new public api for 'reset'

2011-09-29 Thread Sheldon
yes, I have try reset and reboot. reset can work. But after reset a domain, start VNC to connect the domain, the cursor does not move with the mouse move. but reboot the domain, the domain can run normally. And then I run qemu directly to reset a domain, the mouse cursor is also abnormal.

[libvirt] [PATCH] add a default event handle to passthough the new event from qemu

2011-09-29 Thread Sheldon
From c9434f925270d00f2cf3885296e6fef2ba4cc4fb Mon Sep 17 00:00:00 2001 From: Shaohe Feng shao...@linux.vnet.ibm.com Date: Wed, 28 Sep 2011 18:01:36 +0800 Subject: [PATCH] add a default event handle,to passthough the new event generated by qemu Basically, this feature can go along with qemu

Re: [libvirt] [PATCH] qemu: Allow domain reboot after core dump

2011-09-23 Thread Sheldon
yes, the patch can work, when I execute virsh dump --reboot domian file and the type of file is: QEMU's suspend to disk image ??: [libvirt] [PATCH] qemu: Allow domain reboot after core dump ??: Tue, 20 Sep 2011 13:34:27 +0200 ???:Michal Privoznik

Re: [libvirt] [PATCH] qemu: Allow domain reboot after core dump

2011-09-23 Thread Sheldon
yes, the patch can work, when I execute virsh dump --reboot domain file and the type of file is: QEMU's suspend to disk image but the guest does not reboot. The guest does nothing. but I try virsh shutdown domain, the guest Ubuntu OS pop up a dialog box with four options: Shut Down,