JeOS does not have name resolution in place when boot.sh is executed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: python-vm-builder
Jaunty server on AMD64 quad-core AMD Phenom(tm) II X4 920 Processor
I am creating a JeOS using vmbuilder (following the official documentation) as this:
sudo vmbuilder kvm ubuntu --suite jaunty --flavour virtual --arch amd64 --bridge br0 --libvirt qemu:///system --ip dhcp --firstboot boot.sh
With a boot.sh containing this:
apt-get update >> /var/aptget_
When booting the sytem the files /var/aptget_
Err http://
Could not resolve 'archive.
Err http://
Could not resolve 'archive.
Err http://
Could not resolve 'security.
Reading package lists...
and /var/aptget_
W: Failed to fetch http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems
However when the system is done booting. Network is OK after I have logged in. Further, if I introduce a "sleep 1" in the begining of boot.sh, it solves the problem.
Jarl
description: | updated |
Changed in vm-builder (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
I have made the same machine with a boot.sh that contains update. out 2>> /var/aptget_ update. err
ifconfig >> /var/ifconfig.out 2>> /var/ifconfig.err
apt-get update >> /var/aptget_
Now the output of ifconfig.out shows: ff:fe0a: 814/64 Scope:Link
collisions: 0 txqueuelen:1000
eth0 Link encap:Ethernet HWaddr 52:54:00:0a:08:14
inet6 addr: fe80::5054:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1336 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1788808 (1.7 MB) TX bytes:258 (258.0 B)
lo Link encap:Local Loopback
collisions: 0 txqueuelen:0
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
That is no IP address has been assigned when boot.sh is executed.