[libvirt] How to connect to console of domain on PowerPC?
Daniel P. Berrange
berrange at redhat.com
Tue Feb 5 10:18:25 UTC 2013
On Tue, Feb 05, 2013 at 03:05:58AM +0000, Yin Olivia-R63875 wrote:
> Hi Daniel,
>
> Thanks for your comments.
> So far there's no device in QEMU to align with chardev on FSL PowerPC platforms like spapr-pty for IBM PSeries.
> Maybe it needs patches to QEMU. I'll take deeper investigation on it.
That's really a QEMU issue then - every chardev needs to have a
corresponding -device to associtte with.
> But can't get any output when connecting domain with a simple private root filesystem.
> # vi vm2.xml
> <domain type='lxc'>
> <name>vm2</name>
> <memory>25536</memory>
> <os>
> <type>exe</type>
> <init>/sbin/init</init>
> </os>
> <vcpu>1</vcpu>
> <clock offset='utc'/>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>restart</on_reboot>
> <on_crash>destroy</on_crash>
> <devices>
> <emulator>/usr/libexec/libvirt_lxc</emulator>
> <filesystem type='mount'>
> <source dir='/media/ram/vm1-root'/>
> <target dir='/var/lib/libvirt/lxc/rootfs'/>
> </filesystem>
> <interface type='network'>
> <source network='default'/>
> </interface>
> <console type='pty' />
> </devices>
> </domain>
>
> # virsh -c lxc:/// define vm2.xml
> # virsh -c lxc:/// start vm2
> Domain vm2 started
>
> # virsh -c lxc:/// console vm2
> Connected to domain vm2
> Escape character is ^]
>
>
> Do you have any suggestion?
Most likely is that the OS you are running has not decided to run
any login process on the console
'/sbin/init' itself does not directly provide any console interaction
It needs to be configured to run a mingetty process or similar
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list