Public bug reported:

On 64-bit Ubuntu 12.04 PrecisePangolin, the 
/usr/lib/xen-tools/karmic.d/70-install-ssh file
from the 4.2.1-1 xen-tools package does not prevent the
`sshd` from starting up when the openssh-server package
gets installed.
I don't know why it doesn't, I just see it running.

[ Aside:  if the dom0 machine happens to have
 sshd running, then no additional `sshd` process will start
 to run during the installation of the openssh-server package
 on the domU machine. Then the entire run of xen-create-image
 will be successful. 
]

[Aside: I did have to do the following to begin to use
xen-create-image.

    cd /usr/share/doc/xen-tools
    sudo ln -s karmic.d precise.d

   sudo vi /etc/default/xen
    Change:
        TOOLSTACK=
        to:
        TOOLSTACK=xl
]

The short story on how to fix my dilemna was to edit:
/usr/lib/xen-tools/karmic.d/70-install-ssh

And to add code to shut down the sshd process that was just started
after installing the openssh-server package:
chroot ${prefix} /usr/sbin/service ssh stop

Longer story:
The xen-create-image perl script has the intention of preventing the sshd
process from starting up, but it's not working. I don't really know why.

Because this sshd binary starts up upon the installation of the
openssh-server package and loads up other libraries, the
clean up "END" subroutine in xen-create-image fails while unmounting
the /tmp/<tempname> directory.
That failed unmounting is not fatal.
The new machine is still intact at that moment.
But when the perl script, xen-create-image, exits, any temporary
directory location as created by the File::Temp Perl class gets
removed automajically.
The /tmp/<tempname> directory was created via this File::Temp Perl class
and will get removed. Unfortunately it's not the empty directory
as it should be after successful unmounting, it's the entire new machine
file heararchy since the unmounting failed.
Thus after xen-create-image, when one tries to list out the contents
of the root of the new machine, for me it would be at the top of my
volume, I see no directories, no files. Nothing.

** Affects: xen-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/996789

Title:
  70-install-ssh does not prevent sshd from starting up

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xen-tools/+bug/996789/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to