mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 02:15:23 +00:00
libxl: set dom0 state to running
Commit 45697fe5 added dom0 to driver->domains, but missed setting its state to 'running' $ virsh list Id Name State ---------------------------------------------------- 0 Domain-0 shut off
This commit is contained in:
parent
f6d908a2f3
commit
4ffb21c89a
@ -549,6 +549,7 @@ libxlAddDom0(libxlDriverPrivatePtr driver)
|
|||||||
|
|
||||||
def = NULL;
|
def = NULL;
|
||||||
|
|
||||||
|
virDomainObjSetState(vm, VIR_DOMAIN_RUNNING, VIR_DOMAIN_RUNNING_BOOTED);
|
||||||
vm->def->vcpus = d_info.vcpu_online;
|
vm->def->vcpus = d_info.vcpu_online;
|
||||||
vm->def->maxvcpus = d_info.vcpu_max_id + 1;
|
vm->def->maxvcpus = d_info.vcpu_max_id + 1;
|
||||||
vm->def->mem.cur_balloon = d_info.current_memkb;
|
vm->def->mem.cur_balloon = d_info.current_memkb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user