No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
# create port /dev/virtio-ports/org.fedoraproject.anaconda.log.0, I will do this next week. | # create port /dev/virtio-ports/org.fedoraproject.anaconda.log.0, I will do this next week. | ||
# create a guest with a serial port, this can be done by the following two ways: | # create a guest with a serial port, this can be done by the following two ways: | ||
first, add the channel option to virt-install command, code is below: | |||
<code>#!/bin/bash | <code> | ||
#!/bin/bash | |||
virt-install \ | virt-install \ | ||
--connect qemu:///system \ | --connect qemu:///system \ | ||
Line 35: | Line 36: | ||
chardev: opening backend "socket" failed | chardev: opening backend "socket" failed | ||
</code> | </code> | ||
second, after the guest create, use virsh attach-device command to attach a channel, xml file is below:<br /> | |||
following the instruction on page: http://fedoraproject.org/wiki/Anaconda/Logging . I have sucessfully attach a cdrom, but it fails to attach a port, the xml file is below: <br /> | following the instruction on page: http://fedoraproject.org/wiki/Anaconda/Logging . I have sucessfully attach a cdrom, but it fails to attach a port, the xml file is below: <br /> | ||
<code> | <code> |
Revision as of 13:42, 14 January 2011
<Hongqing YANG> <14 January 2010>
Accomplishments for this week
- read the sources code of AutoQA tests rats_install and rats_sanity and understand it.
- explore the Anaconda/Logging technologies.
Plans for the upcoming week
- involve in the F15 rawhide acceptance test.
- continue exploring the technologies of Anaconda/Logging.
Discussions, Escalations or Requests
- target missed: prepare knowledge for the F15 Rawhide Acceptance Test Plan by reading the Rawhide Acceptance Test Plan, former test results, etc .I will finish this on this weekend.
- The steps to do the assignment
- create port /dev/virtio-ports/org.fedoraproject.anaconda.log.0, I will do this next week.
- create a guest with a serial port, this can be done by the following two ways:
first, add the channel option to virt-install command, code is below:
- !/bin/bash
virt-install \
--connect qemu:///system \
--virt-type kvm \
--name demo1 \
--ram 500 \
--disk path=/home/hongqing/testscript/demo1.img,size=10,sparse=true \
--accelerate \
--cdrom /home/hongqing/fedora/Fedora-14-x86_64-DVD.iso \
--channel tcp host=127.0.0.1 mode=connect target_type=virtio name=org.fedoraproject.nanconda.log.0
I get the error messsage:
Starting install...
ERROR internal error Process exited while reading console log output: char device redirected to /dev/pts/35
getaddrinfo(127.0.0.1,None): Servname not supported for ai_socktype
chardev: opening backend "socket" failed
second, after the guest create, use virsh attach-device command to attach a channel, xml file is below:
following the instruction on page: http://fedoraproject.org/wiki/Anaconda/Logging . I have sucessfully attach a cdrom, but it fails to attach a port, the xml file is below:
<channel type='tcp'>
<source mode='connect' host='127.0.0.1' service='6080'/>
<target type='virtio' name='org.fedoraproject.anaconda.log.0'/>
</channel>
error message is:
error: Failed to attach device from channel.xml
error: XML description for unknown device type is not well formed or invalid
I just got message from Daniel P. Berrange that virsh does not support serials hotplug. I can use virsh edit or add to the configuration xml file when create guest.
I also find that qemu monitor supports serials hotplug/unhotplug.
- start the listening rsyslogd process on the host, follow the instrution: http://fedoraproject.org/wiki/Anaconda/Logging
- define the test result criteria according the logs forwarded by the guest.
- I will try to finish the assignment in the next two weeks.