[Bug 594836] Re: virsh unable to open console

Serge Hallyn serge.hallyn at ubuntu.com
Wed Jun 16 20:09:56 BST 2010


I installed a fresh lucid VM under kvm, installed libvirt-bin,
then took your xml file, replaced /sbin/init with /bin/init.
I created /lxc/rootfs.dbryson, and did
	cd /lxc/rootfs.dbryson
	mkdir bin
	cd bin
	cp /bin/busybox .
	ln busybox init
	ln busybox sh

then did
	virsh -c lxc:/// create u1.xml
	virsh -c lxc:/// start vm1
	virsh -c lxc:/// console vm1

while the busybox-init wasn't entirely happy with the lack of
an inittab, I haven't yet reproduced any console problems.  In
particular, I've done this both with /dev/pts/3 on the host
being unused, and with it in use (forced by starting screen).

Are you running virsh as root (or with sudo)?

Just how frequently does it fail for you?

When you say you ssh to your machine (192.168.122.12), does
that mean you are ssh'ing from your container to the host?

Can you give us the output of
	cat /proc/self/mounts
inside the container,
	/bin/ls /dev/pts /dev/pts/ptmx
both in the container and on the host?

thanks,
-serge

-- 
virsh unable to open console
https://bugs.launchpad.net/bugs/594836
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.



More information about the Ubuntu-server-bugs mailing list