• R
    lxc: Fix virsh console doesn't work after restarting libvirtd · 1c46f4cc
    Ryota Ozaki 提交于
    Because tty path is unexpectedly not saved in the live configuration
    file of a domain, libvirtd cannot get the console of the domain back
    after restarting.
    
    The reason why the tty path isn't saved is that, to save the tty path,
    the save function, virDomainSaveConfig, requires that the target domain
    is running (pid != -1), however, lxc driver calls the function before
    starting the domain to pass the configuration to controller.
    
    To ensure to save the tty path, the patch lets lxc driver call the save
    function again after starting the domain.
    1c46f4cc
lxc_driver.c 73.6 KB