Cc'ing Marc-André (chardev)
On 5/29/19 1:52 PM, Philippe Mathieu-Daudé wrote:
> On 5/29/19 1:32 PM, Philippe Mathieu-Daudé wrote:
>> On 5/20/19 2:47 PM, Gerd Hoffmann wrote:
>>> Instead of fetching the prebuilt image from patchew download the install
>>> iso and prepare the image locally. Install to disk, using the serial
>>> console. Create qemu user, configure ssh login. Install packages
>>> needed for qemu builds.
>>>
>>> Signed-off-by: Gerd Hoffmann <[email protected]>
>>> Reviewed-by: Kamil Rytarowski <[email protected]>
>>> Tested-by: Thomas Huth <[email protected]>
> [...]
>>
>> Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
>>
>
> And now:
>
> Tested-by: Philippe Mathieu-Daudé <[email protected]>
I tested this using Fedora 29:
$ qemu-system-x86_64 -version
QEMU emulator version 3.0.1 (qemu-3.0.1-3.fc29)
Now testing with:
$ qemu-system-x86_64 -version
QEMU emulator version 4.0.50 (v4.0.0-798-g8dc7fd56dd)
# Configured with: '../configure' '--target-list=x86_64-softmmu'
'--disable-tools'
I get:
~/source/qemu$ make vm-build-netbsd V=1
[...]
con recv: >o: Add a user
con recv: x: Finished configuring
con recv: >a: Configure network
configure o: Add a user
con recv: Which network device would you like to use?
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv:
con recv: qqqqqqqqqqqqqqqqqqqqqqqqqk Available interfaces >a: vioif0
con send: a<enter>
con recv: x: Exitqqqqqqqqqqqqqqqqqqqqqqqqqj
con recv: To be able to use the network, we need answers to the
following:Network media type
con send: <enter>
con recv: : qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk Perform autoconfiguration?
>a: Yes b: Noqqqqqqqqqqqqqqqqq
console: *** read timeout ***
console: waiting for: 'a: Yes'
console: line buffer:
con recv: qqqqqqqqqqqqqqj
Failed to prepare guest environment
Traceback (most recent call last):
File "/home/phil/source/qemu/tests/vm/basevm.py", line 350, in main
return vm.build_image(args.image)
File "tests/vm/netbsd", line 147, in build_image
self.console_wait_send("a: Yes", "a\n")
File "/home/phil/source/qemu/tests/vm/basevm.py", line 250, in
console_wait_send
self.console_wait(wait)
File "/home/phil/source/qemu/tests/vm/basevm.py", line 212, in
console_wait
chars = vm.console_socket.recv(1024)
timeout: timed out
DEBUG:QMP:>>> {'execute': 'quit'}
DEBUG:QMP:<<< {u'return': {}}
tests/vm/Makefile.include:43: recipe for target
'/home/phil/.cache/qemu-vm/images/netbsd.img' failed
make: *** [/home/phil/.cache/qemu-vm/images/netbsd.img] Error 2
Did something related to the serial console/chardev change?
Anyway your patch works with qemu-stable, so the series is good to go IMO.
Regards,
Phil.