Nathan Coulson wrote:

>> When I run the following on the host
>>
>>   brctl addbr br0
>>   ip addr add 0.0.0.0 dev br0
>>   ip link set br0 up
>>   brctl addif br0 eth0
>>
>> That last command kills my normal eth0 connection.  I had to reboot to
>> get it back.
> 
> br0, should act like a hardware switch does, where eth0 is one of the
> ports.  (Basically, we made a 1 port switch).
> 
> After br0 is created, then you can setup an IP Address on br0 (instead of 
> eth0).

My setup is not real straight forward.  I ssh into my development system 
and run qemu from there.  If the ssh connection on eth0 gets disrupted, 
then I can't continue.  I'll move over to the other, more limited, 
terminal and try that.

> The ifconfig.br0-1 file, is what I used to give br0 an IP Address.
> 
> there is no ifconfig.eth0 file on my computer

Then how can you get networking from there out to the Internet?

>>> qemu-system-x86_64 -net nic -net tap
>>>
>>> will create a new tap0,  calls /etc/qemu-ifup tap0,  which I proceed
>>> to dump into my br0 (disclaimer: not sure if I mean tun or tap)
>> When I run qemu-system-x86_64 -net nic -net tap, I get
>>
>> /etc/qemu-ifup: could not launch network script
>>
>> the script is present and executable.
>>
>> but if I say -net tap,script=no, I get the GRUB prompt and it will boot.
>>  I do have at that point a tap0 device on the host.
>>
>> Any ideas?
> 
> script=no, tells qemu not to run /etc/qemu-ifup,  (and it is executable)
> 
> I had a #!/bin/bash in the top of mine (and some comments I left out
> in my original thread).  Maybe that's what it is looking for.  Or
> possibly there is a failure in the script.  Could add a few &>
> /tmp/log.txt on the end of each line

What I'm thinking is that qemu is only seeing grub, not the actual 
rootfs so it can't find the script to run.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to