[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using s
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console |
Date: |
Mon, 20 May 2019 13:24:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 5/20/19 9:14 AM, Thomas Huth wrote:
> On 20/05/2019 07.26, Gerd Hoffmann wrote:
>> On Sun, May 19, 2019 at 12:55:09AM +0200, Philippe Mathieu-Daudé wrote:
>>> Hi Gerd,
>>>
>>> On 5/10/19 12:46 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.
>>>
>>> I'm impressed how charmly this works :)
>>>
>>> 3 comments so far.
>>>
>>> 1/ We could record (in tests/vm/freebsd header?) roughly how many local
>>> storage will be used (or display in 'make vm-help'?). FYI this image
>>> takes ~3.1GiB.
>>
>> vm-help would be more useful I think.
>>
>>> 2/ "Autoboot in 9 seconds, hit [Enter] to boot or any other key to stop"
>>
>> Probably tweakable via loader.conf, I'll check.
>>
>>> 3/ I am a bit annoyed it overwrote my previous
>>> ~/.cache/qemu-vm/images/freebsd.img VM. Not sure what's the best hash to
>>> use, maybe "git log -n 1 --pretty=format:%H -- tests/vm/freebsd"?
>>> (Similarly for other images).
>>
>> Then use ~/.cache/qemu-vm/images/freebsd-${hash}.img ?
>>
>> Which will fill ~/.cache/qemu-vm/images with stale images over time,
>> which isn't great either ...
>>
>> Or do you have something else in mind?
Maybe we can simply use a ${VM_IMG_VERSION} and manually increase it
when there are significant changes.
We could add a "make vm-clean-cache-older-than-%" parsing the
"20days/3months/2y" formats?
> I'd vote to keep the current approach to overwrite "freebsd.img". It's a
> "cache" directory - if you want to have something persisten, Philippe, I
> think you should simply copy your image to a different location instead.
My concern came when thinking about bisecting:
$ git log --oneline \
$(git log --pretty=format:%H \
--diff-filter=A -- tests/vm/freebsd)..origin/master | wc -l
13016
But then I only used "make check-vm" while bisecting twice, so I can
stop worrying about testing old VMs.
Regards,
Phil.
- Re: [Qemu-devel] [PATCH v2 13/13] tests/vm: ubuntu.i386: apt proxy setup, (continued)
- [Qemu-devel] [PATCH v2 07/13] tests/vm: add DEBUG=1 to help text, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 04/13] tests/vm: run test builds on snapshot, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 08/13] tests/vm: serial console support helpers, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 09/13] tests/vm: openbsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/10
- Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console, Philippe Mathieu-Daudé, 2019/05/18
- Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/20
- Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console, Thomas Huth, 2019/05/20
- Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console,
Philippe Mathieu-Daudé <=
- Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/20
[Qemu-devel] [PATCH v2 03/13] tests/vm: use ssh with pty unconditionally, Gerd Hoffmann, 2019/05/10
[Qemu-devel] [PATCH v2 11/13] tests/vm: netbsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/10
[Qemu-devel] [PATCH v2 06/13] tests/vm: add vm-boot-{ssh, serial}-<guest> targets, Gerd Hoffmann, 2019/05/10
[Qemu-devel] [PATCH v2 05/13] tests/vm: proper guest shutdown, Gerd Hoffmann, 2019/05/10
[Qemu-devel] [PATCH v2 12/13] tests/vm: fedora autoinstall, using serial console, Gerd Hoffmann, 2019/05/10
[Qemu-devel] QEMU on OpenBSD is broken? (was: Re: [PATCH v2 00/13] tests/vm: serial console autoinstall, misc fixes.), Thomas Huth, 2019/05/16