Skip to content

Instantly share code, notes, and snippets.

@bradfitz
Created April 4, 2016 00:08
Show Gist options
  • Save bradfitz/8015bc66f58b9eb8a95462522ab2f163 to your computer and use it in GitHub Desktop.
Save bradfitz/8015bc66f58b9eb8a95462522ab2f163 to your computer and use it in GitHub Desktop.
+ ANITA_VERSION=1.39
+ ARCH=amd64
+ RELEASE=7.0
+ TAR=tar
+ which gtar
+ WORKDIR=work-NetBSD-amd64
+ sha1sum -c anita-1.39.tar.gz.sha1
anita-1.39.tar.gz: OK
+ tar xfz anita-1.39.tar.gz
+ cd anita-1.39
+ python setup.py build
running build
running build_py
running build_scripts
+ cd ..
+ env PYTHONPATH=/home/bradfitz/src/golang.org/x/build/env/netbsd-amd64/anita-1.39 python mkvm.py amd64 7.0
Downloading ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201604031650Z/amd64/binary/sets/kern-GENERIC.tgz... OK
Downloading ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201604031650Z/amd64/binary/sets/modules.tgz... OK
Downloading ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201604031650Z/amd64/binary/sets/base.tgz... OK
Downloading ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201604031650Z/amd64/binary/sets/etc.tgz... OK
Downloading ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201604031650Z/amd64/binary/sets/comp.tgz... OK
Downloading ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201604031650Z/amd64/binary/sets/misc.tgz... OK
Downloading ftp://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/201604031650Z/amd64/binary/sets/tests.tgz... OK
genisoimage -r -o work-NetBSD-amd64/install_tmp.iso work-NetBSD-amd64/download/
I: -input-charset not specified, using utf-8 (detected in locale settings)
4.84% done, estimate finish Mon Apr 4 00:05:21 2016
9.66% done, estimate finish Mon Apr 4 00:05:21 2016
14.49% done, estimate finish Mon Apr 4 00:05:21 2016
19.31% done, estimate finish Mon Apr 4 00:05:21 2016
24.15% done, estimate finish Mon Apr 4 00:05:21 2016
28.97% done, estimate finish Mon Apr 4 00:05:21 2016
33.79% done, estimate finish Mon Apr 4 00:05:21 2016
38.63% done, estimate finish Mon Apr 4 00:05:23 2016
43.45% done, estimate finish Mon Apr 4 00:05:23 2016
48.28% done, estimate finish Mon Apr 4 00:05:23 2016
53.10% done, estimate finish Mon Apr 4 00:05:22 2016
57.94% done, estimate finish Mon Apr 4 00:05:22 2016
62.76% done, estimate finish Mon Apr 4 00:05:22 2016
67.59% done, estimate finish Mon Apr 4 00:05:22 2016
72.41% done, estimate finish Mon Apr 4 00:05:22 2016
77.25% done, estimate finish Mon Apr 4 00:05:22 2016
82.07% done, estimate finish Mon Apr 4 00:05:22 2016
86.90% done, estimate finish Mon Apr 4 00:05:22 2016
91.73% done, estimate finish Mon Apr 4 00:05:22 2016
96.56% done, estimate finish Mon Apr 4 00:05:22 2016
Total translation table size: 0
Total rockridge attributes bytes: 3341
Total directory bytes: 16738
Path table size(bytes): 120
Max brk space used 22000
103574 extents written (202 MB)
Creating hard disk image... done.
qemu-system-x86_64 -m \
1024 \
-drive \
file=work-NetBSD-amd64/wd0.img,media=disk,snapshot=off \
-nographic \
-drive \
file=work-NetBSD-amd64/download/amd64/installation/cdrom/boot-com.iso,media=cdrom \
-drive \
file=work-NetBSD-amd64/install_tmp.iso,media=cdrom \
-boot \
d
qemu-system-x86_64: -drive file=work-NetBSD-amd64/download/amd64/installation/cdrom/boot-com.iso,media=cdrom: could not open disk image work-NetBSD-amd64/download/amd64/installation/cdrom/boot-com.iso: No such file or directory
Traceback (most recent call last):
File "mkvm.py", line 76, in <module>
child = a.boot()
File "/home/bradfitz/src/golang.org/x/build/env/netbsd-amd64/anita-1.39/anita.py", line 1485, in boot
self.start_boot(vmm_args)
File "/home/bradfitz/src/golang.org/x/build/env/netbsd-amd64/anita-1.39/anita.py", line 1467, in start_boot
self.install()
File "/home/bradfitz/src/golang.org/x/build/env/netbsd-amd64/anita-1.39/anita.py", line 1451, in install
self._install()
File "/home/bradfitz/src/golang.org/x/build/env/netbsd-amd64/anita-1.39/anita.py", line 914, in _install
"(Installation medium to load the additional utilities from: )|"
File "/home/bradfitz/src/golang.org/x/build/env/netbsd-amd64/anita-1.39/anita.py", line 85, in expect
r = pexpect.spawn.expect(self, pattern, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1316, in expect
return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1330, in expect_list
return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
File "/usr/lib/python2.7/dist-packages/pexpect.py", line 1401, in expect_loop
raise EOF (str(e) + '\n' + str(self))
pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style platform.
<anita.pexpect_spawn_log object at 0xc94750>
version: 2.4 ($Revision: 516 $)
command: /usr/bin/qemu-system-x86_64
args: ['/usr/bin/qemu-system-x86_64', '-m', '1024', '-drive', 'file=work-NetBSD-amd64/wd0.img,media=disk,snapshot=off', '-nographic', '-drive', 'file=work-NetBSD-amd64/download/amd64/installation/cdrom/boot-com.iso,media=cdrom', '-drive', 'file=work-NetBSD-amd64/install_tmp.iso,media=cdrom', '-boot', 'd']
searcher: searcher_re:
0: re.compile("(insert disk (\d+), and press return...)|(a: Installation messages in English)|(Terminal type)|(Installation medium to load the additional utilities from: )|(1. Install NetBSD)")
buffer (last 100 chars):
before (last 100 chars): image work-NetBSD-amd64/download/amd64/installation/cdrom/boot-com.iso: No such file or directory
after: <class 'pexpect.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 20967
child_fd: 6
closed: False
timeout: 300
delimiter: <class 'pexpect.EOF'>
logfile: None
logfile_read: <anita.multifile object at 0xc94790>
logfile_send: <anita.multifile object at 0xd17710>
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 5.0
delayafterterminate: 5.0
bradfitz@dev-bradfitz-debian2:~/src/golang.org/x/build/env/netbsd-amd64$ echo $?
1
bradfitz@dev-bradfitz-debian2:~/src/golang.org/x/build/env/netbsd-amd64$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment