* xend issues
@ 2005-06-15 20:43 Arun Sharma
2005-06-15 20:46 ` Arun Sharma
0 siblings, 1 reply; 5+ messages in thread
From: Arun Sharma @ 2005-06-15 20:43 UTC (permalink / raw)
To: xen-devel
Lately, I'm having trouble destroying VMX domains (probably due to bad
reference counts) - although all memory associated with the domain is
freed up.
Subsequently, if I create a new domain of the same name, the domain id
is wrong.
# xm list
Name Id Mem(MB) CPU VCPU(s) State Time(s) Console
Domain-0 0 245 0 1 r---- 50.8
ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
Even the uuid of the two domains is the same in the long listing below.
-Arun
# xm list --long
(domain
(id 0)
(name Domain-0)
(memory 245)
(uuid 7a8af663-b55c-46cf-bd24-dc65e3e17a83)
(maxmem -4)
(state r----)
(cpu 0)
(cpu_time 51.166374782)
(vcpus 1)
(cpumap (-1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0))
(vcpu_to_cpu 0)
)
(domain
(id 1)
(name ExampleVMXDomain)
(memory 0)
(uuid ad91cc37-0fb6-4c20-a01c-f38fedb7aafc)
(maxmem 131204)
(state -----)
(cpu 0)
(cpu_time 22.537481777)
(vcpus 1)
(cpumap (-1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0))
(vcpu_to_cpu 0)
(up_time 4798.9793551)
(start_time 1118863256.58)
(console
(status closed)
(id 0)
(domain 1)
(local_port 0)
(remote_port 0)
(console_port 9601)
)
(devices
(console
(status closed)
(id 0)
(domain 1)
(local_port 0)
(remote_port 0)
(console_port 9601)
)
)
(config
(vm
(name ExampleVMXDomain)
(memory 128)
(image
(vmx
(kernel /usr/lib/xen/boot/vmxloader)
(root '/dev/hda1 ro')
(args
'VNC_VIEWER=143.183.130.223:5501 acpi=off
console=ttyS0
1'
)
(vcpus 1)
)
)
(memmap /etc/xen/mem-map.sxp)
(device_model /usr/bin/device-model)
(device_config /etc/xen/xmexample.vmx)
)
)
)
(domain
(id 1)
(name ExampleVMXDomain)
(memory 0)
(uuid ad91cc37-0fb6-4c20-a01c-f38fedb7aafc)
(maxmem 131204)
(state -----)
(cpu 0)
(cpu_time 22.537481777)
(vcpus 1)
(cpumap (-1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0))
(vcpu_to_cpu 0)
(up_time 4799.01007318)
(start_time 1118863256.58)
(console
(status closed)
(id 0)
(domain 1)
(local_port 0)
(remote_port 0)
(console_port 9601)
)
(devices
(console
(status closed)
(id 0)
(domain 1)
(local_port 0)
(remote_port 0)
(console_port 9601)
)
)
(config
(vm
(name ExampleVMXDomain)
(memory 128)
(image
(vmx
(kernel /usr/lib/xen/boot/vmxloader)
(root '/dev/hda1 ro')
(args
'VNC_VIEWER=143.183.130.223:5501 acpi=off
console=ttyS01'
)
(vcpus 1)
)
)
(memmap /etc/xen/mem-map.sxp)
(device_model /usr/bin/device-model)
(device_config /etc/xen/xmexample.vmx)
)
)
)
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: xend issues
2005-06-15 20:43 xend issues Arun Sharma
@ 2005-06-15 20:46 ` Arun Sharma
2005-06-17 14:08 ` Mike Wray
0 siblings, 1 reply; 5+ messages in thread
From: Arun Sharma @ 2005-06-15 20:46 UTC (permalink / raw)
To: xen-devel
Arun Sharma wrote:
>
> Lately, I'm having trouble destroying VMX domains (probably due to bad
> reference counts) - although all memory associated with the domain is
> freed up.
>
> Subsequently, if I create a new domain of the same name, the domain id
> is wrong.
>
> # xm list
> Name Id Mem(MB) CPU VCPU(s) State Time(s) Console
> Domain-0 0 245 0 1 r---- 50.8
> ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
> ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
>
> Even the uuid of the two domains is the same in the long listing below.
BTW, this issue doesn't happen if I use a different name for the new
domain (xm create name=foo). Normally xend doesn't let me create two
domains with the same name. But in this case, it does let me do it and
then gets confused about domain ids and uuids.
-Arun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: xend issues
2005-06-15 20:46 ` Arun Sharma
@ 2005-06-17 14:08 ` Mike Wray
0 siblings, 0 replies; 5+ messages in thread
From: Mike Wray @ 2005-06-17 14:08 UTC (permalink / raw)
To: Arun Sharma; +Cc: xen-devel
Arun Sharma wrote:
> Arun Sharma wrote:
>
>>
>> Lately, I'm having trouble destroying VMX domains (probably due to bad
>> reference counts) - although all memory associated with the domain is
>> freed up.
>>
>> Subsequently, if I create a new domain of the same name, the domain id
>> is wrong.
>>
>> # xm list
>> Name Id Mem(MB) CPU VCPU(s) State Time(s) Console
>> Domain-0 0 245 0 1 r---- 50.8
>> ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
>> ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
>>
>> Even the uuid of the two domains is the same in the long listing below.
This may be due to a xend 'feature'. When deciding whether there is a vm name clash,
xend ignores 'dead' domains, so that zombies don't stop you reusing the name.
Since the ExampleVMXDomain has mem 0 I'd guess it's been destroyed but
refused to die. The duplicate ids are a puzzle though, since the xend domain
map is indexed by domain id.
The kernel cleanup for VMX domains in xend releases the device model event channel -
but it seems from another message that the device model is not using the port
that xend has, but another one. This might account for the domain refusing to go
away - open event channels will do that.
> BTW, this issue doesn't happen if I use a different name for the new
> domain (xm create name=foo). Normally xend doesn't let me create two
> domains with the same name. But in this case, it does let me do it and
> then gets confused about domain ids and uuids.
Mike
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Re: xend issues
@ 2005-06-15 22:25 Neugebauer, Rolf
2005-06-15 22:26 ` Arun Sharma
0 siblings, 1 reply; 5+ messages in thread
From: Neugebauer, Rolf @ 2005-06-15 22:25 UTC (permalink / raw)
To: Sharma, Arun, xen-devel; +Cc: Neugebauer, Rolf
> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-
> bounces@lists.xensource.com] On Behalf Of Arun Sharma
> Sent: 15 June 2005 21:47
> To: xen-devel
> Subject: [Xen-devel] Re: xend issues
>
> Arun Sharma wrote:
> >
> > Lately, I'm having trouble destroying VMX domains (probably due to
bad
> > reference counts) - although all memory associated with the domain
is
> > freed up.
> >
> > Subsequently, if I create a new domain of the same name, the domain
id
> > is wrong.
> >
> > # xm list
> > Name Id Mem(MB) CPU VCPU(s) State Time(s) Console
> > Domain-0 0 245 0 1 r---- 50.8
> > ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
> > ExampleVMXDomain 1 0 0 1 ----- 22.5 9601
> >
> > Even the uuid of the two domains is the same in the long listing
below.
>
> BTW, this issue doesn't happen if I use a different name for the new
> domain (xm create name=foo). Normally xend doesn't let me create two
> domains with the same name. But in this case, it does let me do it and
> then gets confused about domain ids and uuids.
I haven't had the issue with two vms with the same name and same ID,
but, my experience is that the VMX domains linger around till you
forcible (-9) kill the device model.
Clearly this is something which needs to be addressed in xend as it
should have the info avail to destroy the device model when the vmx
domain goes away.
On a related note, currently the VNC viewer for the VMX domain is
started by xend but in my opinion should be started by 'xm' (as with
native xen VMs) as you are more likely to have your DISPLAY/XAUTH set
when executing xm rather than when xend is started.
Rolf
> -Arun
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: xend issues
2005-06-15 22:25 Neugebauer, Rolf
@ 2005-06-15 22:26 ` Arun Sharma
0 siblings, 0 replies; 5+ messages in thread
From: Arun Sharma @ 2005-06-15 22:26 UTC (permalink / raw)
To: Neugebauer, Rolf; +Cc: xen-devel
Neugebauer, Rolf wrote:
>
>>BTW, this issue doesn't happen if I use a different name for the new
>>domain (xm create name=foo). Normally xend doesn't let me create two
>>domains with the same name. But in this case, it does let me do it and
>>then gets confused about domain ids and uuids.
>
>
> I haven't had the issue with two vms with the same name and same ID,
> but, my experience is that the VMX domains linger around till you
> forcible (-9) kill the device model.
>
In the last few days, this happens even after kill -9.
-Arun
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-06-17 14:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-15 20:43 xend issues Arun Sharma
2005-06-15 20:46 ` Arun Sharma
2005-06-17 14:08 ` Mike Wray
-- strict thread matches above, loose matches on Subject: below --
2005-06-15 22:25 Neugebauer, Rolf
2005-06-15 22:26 ` Arun Sharma
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.