> -----Original Message----- > From: Daniel P. Berrange [mailto:berrange@xxxxxxxxxx] > Sent: Tuesday, February 05, 2013 6:18 PM > To: Yin Olivia-R63875 > Cc: libvir-list@xxxxxxxxxx > Subject: Re: How to connect to console of domain on PowerPC? > > 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. > '-serial' syntax may be legacy but it should still work. There're two examples for "-serial tcp" use cases: $ cat libvirt/tests/qemuxml2argvdata/qemuxml2argv-serial-tcp.args LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M \ pc -m 214 -smp 1 -nographic -monitor unix:/tmp/test-monitor,server,nowait \ -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial \ tcp:127.0.0.1:9999 -parallel none -usb $ cat libvirt/tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-chardev.args LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M \ pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev socket,\ id=charmonitor,path=/tmp/test-monitor,server,nowait -mon chardev=charmonitor,\ id=monitor,mode=readline -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -chardev \ socket,id=charserial0,host=127.0.0.1,port=9999 -device isa-serial,\ chardev=charserial0,id=serial0 -usb -device virtio-balloon-pci,id=balloon0,\ bus=pci.0,addr=0x3 > > 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 :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list