Jeff Dike | 1 Dec 02:42 2011

Re: [uml-user] Cannot bringup DHCP (2.6.39 kernel + Debian 5.0 rootfs)

The thing about DHCP is that the protocol is confined to an ethernet
broadcast domain, and a TUN/TAP connection to the host is a separate
broadcast domain from the LAN.  It's a private ethernet with two hosts
on it.

DHCP will work if one of the following is true:
	The DHCP server is the UML host and dhcpd is listening on the
TAP device
	a DHCP forwarder, like dhcrelay, is running on the host
	UML is bridged to the host's eth

The bridging option puts the UML on the LAN on a par with any physical
system on the ethernet.

			Jeff

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
Antoine Martin | 1 Dec 08:32 2011
Picon

Re: [uml-user] Cannot bringup DHCP (2.6.39 kernel + Debian 5.0 rootfs)

(snip)

>>> Having been struggling this for 1 week, any help appreciated !
>> Have you tried following these instructions:
>> http://uml.devloop.org.uk/howto.html
> Question here, if uml is running in my desktop, i need to install and run dhcpd in my desktop ?
If you are following the howto yes. The UML VM must be a on different
subnet, routed by the host.

>sorry i'm kind of lost, this is in a company, the company has the dhcp server running for all the PCs.
If you want to re-use the main dhcp server, you have two options left
(as per Jeff's email):
* a dhcp forwarder
* bridging

Antoine

>>
>> Cheers
>> Antoine
> Thanks again !
>>
>>>
>>>  		 	   		  
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> All the data continuously generated in your IT infrastructure 
>>> contains a definitive record of customers, application performance, 
(Continue reading)

ning ji | 2 Dec 00:07 2011
Picon

Re: [uml-user] Cannot bringup DHCP (2.6.39 kernel + Debian 5.0 rootfs)

Jeff,

i think you are right, but our team roll out the possibility of setting up another DHCP server.

After spent hours on the dhcrelay3 and bcrelay, i gave up.
as i cannot find good docs on DHCP for uml using dhcrelay etc.)

Linux has a huge problem on clear & good instructions for normal users.
I have been coding for 15 years and i cannot make DHCP to work for 1+ week.
Checking around, many senior linux friends never touched UML.

I'm using static ip for uml now to catch up with the schedule.
Would appreciate if you have good step-by-step instructions.

Thanks very much !


> Date: Wed, 30 Nov 2011 20:42:29 -0500
> From: jdike <at> addtoit.com
> To: ningji <at> hotmail.com
> CC: antoine <at> nagafix.co.uk; user-mode-linux-user <at> lists.sourceforge.net
> Subject: Re: [uml-user] Cannot bringup DHCP (2.6.39 kernel + Debian 5.0 rootfs)
>
> The thing about DHCP is that the protocol is confined to an ethernet
> broadcast domain, and a TUN/TAP connection to the host is a separate
> broadcast domain from the LAN. It's a private ethernet with two hosts
> on it.
>
> DHCP will work if one of the following is true:
> The DHCP server is the UML host and dhcpd is listening on the
> TAP device
> a DHCP forwarder, like dhcrelay, is running on the host
> UML is bridged to the host's eth
>
> The bridging option puts the UML on the LAN on a par with any physical
> system on the ethernet.
>
> Jeff
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
ning ji | 2 Dec 00:10 2011
Picon

Re: [uml-user] Cannot bringup DHCP (2.6.39 kernel + Debian 5.0 rootfs)


Antoine,

We cannot setup another DHCP server to run UML, even if it's not connected to the corporate network.
How i wish you have an instruction of dhcp relay for UML in your site, :)

Thanks for all the replies !

> Date: Thu, 1 Dec 2011 14:32:32 +0700
> From: antoine <at> nagafix.co.uk
> To: ningji <at> hotmail.com
> CC: user-mode-linux-user <at> lists.sourceforge.net
> Subject: Re: [uml-user] Cannot bringup DHCP (2.6.39 kernel + Debian 5.0 rootfs)
>
> (snip)
>
> >>> Having been struggling this for 1 week, any help appreciated !
> >> Have you tried following these instructions:
> >> http://uml.devloop.org.uk/howto.html
> > Question here, if uml is running in my desktop, i need to install and run dhcpd in my desktop ?
> If you are following the howto yes. The UML VM must be a on different
> subnet, routed by the host.
>
> >sorry i'm kind of lost, this is in a company, the company has the dhcp server running for all the PCs.
> If you want to re-use the main dhcp server, you have two options left
> (as per Jeff's email):
> * a dhcp forwarder
> * bridging
>
> Antoine
>
>
> >>
> >> Cheers
> >> Antoine
> > Thanks again !
> >>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> ------------------------------------------------------------------------------
> >>> All the data continuously generated in your IT infrastructure
> >>> contains a definitive record of customers, application performance,
> >>> security threats, fraudulent activity, and more. Splunk takes this
> >>> data and makes sense of it. IT sense. And common sense.
> >>> http://p.sf.net/sfu/splunk-novd2d
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> User-mode-linux-user mailing list
> >>> User-mode-linux-user <at> lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> All the data continuously generated in your IT infrastructure
> >> contains a definitive record of customers, application performance,
> >> security threats, fraudulent activity, and more. Splunk takes this
> >> data and makes sense of it. IT sense. And common sense.
> >> http://p.sf.net/sfu/splunk-novd2d
> >> _______________________________________________
> >> User-mode-linux-user mailing list
> >> User-mode-linux-user <at> lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> >
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
ning ji | 2 Dec 22:10 2011
Picon

[uml-user] Can i run uml in the background ?


Guess the answer is yes,
but when i run

 #sudo ./umlinux ubda=./fs6 mem=128M eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 &

i got this

[1]+  Stopped                 sudo ./umlinux ubda=./fs6 mem=128M eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51


Any hints pls ?
Thanks !

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Riccardo Murri | 2 Dec 22:15 2011
Picon

Re: [uml-user] Can i run uml in the background ?

Hi Ning Ji,

On Fri, Dec 2, 2011 at 22:10, ning ji <ningji <at> hotmail.com> wrote:
> but when i run
>
>  #sudo ./umlinux ubda=./fs6 mem=128M
> eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 &
>
> i got this
>
> [1]+  Stopped                 sudo ./umlinux ubda=./fs6 mem=128M
> eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51
>

A programm running in the background must not attempt to perform any
I/O to the terminal, otherwise it gets a STOP signal.

If you want to run UML in the background you will have to: (warning: untested)

1) redirect the initial boot console output to a file:

    umlinux .... > boot.log

2) use the "con=..." option to start the Linux consoles in a XTerm, or
   network port, or anything that does not do I/O in the shell
   terminal.

best regards,
Riccardo

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
ning ji | 2 Dec 22:44 2011
Picon

Re: [uml-user] Can i run uml in the background ?


yes, when i add "con=pts" it starts working in the background,
Thanks very much !


> Date: Fri, 2 Dec 2011 22:15:43 +0100
> Subject: Re: [uml-user] Can i run uml in the background ?
> From: riccardo.murri <at> gmail.com
> To: ningji <at> hotmail.com
> CC: user-mode-linux-user <at> lists.sourceforge.net
>
> Hi Ning Ji,
>
> On Fri, Dec 2, 2011 at 22:10, ning ji <ningji <at> hotmail.com> wrote:
> > but when i run
> >
> >  #sudo ./umlinux ubda=./fs6 mem=128M
> > eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 &
> >
> > i got this
> >
> > [1]+  Stopped                 sudo ./umlinux ubda=./fs6 mem=128M
> > eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51
> >
>
> A programm running in the background must not attempt to perform any
> I/O to the terminal, otherwise it gets a STOP signal.
>
> If you want to run UML in the background you will have to: (warning: untested)
>
> 1) redirect the initial boot console output to a file:
>
> umlinux .... > boot.log
>
> 2) use the "con=..." option to start the Linux consoles in a XTerm, or
> network port, or anything that does not do I/O in the shell
> terminal.
>
> best regards,
> Riccardo
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
/dev/rob0 | 2 Dec 22:50 2011
Picon

Re: [uml-user] Can i run uml in the background ?

On Friday 02 December 2011 15:10:35 ning ji wrote:
> Guess the answer is yes,but when i run
>  #sudo ./umlinux ubda=./fs6 mem=128M
> eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 & i got this
> [1]+  Stopped                 sudo ./umlinux ubda=./fs6 mem=128M
> eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51
> 
> Any hints pls ?Thanks !

Why are you running this as root? There are safe ways to set up 
networking while maintaining reduced privilege in the UML instance 
itself.

Can you background it as non-root?
--

-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
ning ji | 2 Dec 23:09 2011
Picon

Re: [uml-user] Can i run uml in the background ?


Thanks for the hint, i'll try it later, :)

> Date: Fri, 2 Dec 2011 15:50:59 -0600
> Subject: Re: [uml-user] Can i run uml in the background ?
> From: clownix <at> clownix.net
> To: riccardo.murri <at> gmail.com
> CC: ningji <at> hotmail.com; user-mode-linux-user <at> lists.sourceforge.net
>
> Hello,
> Screen is often used with uml:
> For a linux uml binary and uml_basic_squeeze as root file system, you can
> use screen as below:
>
> screen -dmS name_you_want linux ubda=uml_basic_squeeze
>
> The screen starts as a daemon, and to bring it back:
>
> screen -r name_you_want
>
>
> Once you are in the screen, you can daemonize it again with:
>
> Ctrl-A d
>
>
>
>
> > Hi Ning Ji,
> >
> > On Fri, Dec 2, 2011 at 22:10, ning ji <ningji <at> hotmail.com> wrote:
> >> but when i run
> >>
> >>  #sudo ./umlinux ubda=./fs6 mem=128M
> >> eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 &
> >>
> >> i got this
> >>
> >> [1]+  Stopped                 sudo ./umlinux ubda=./fs6
> >> mem=128M
> >> eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51
> >>
> >
> > A programm running in the background must not attempt to perform any
> > I/O to the terminal, otherwise it gets a STOP signal.
> >
> > If you want to run UML in the background you will have to: (warning:
> > untested)
> >
> > 1) redirect the initial boot console output to a file:
> >
> > umlinux .... > boot.log
> >
> > 2) use the "con=..." option to start the Linux consoles in a XTerm, or
> > network port, or anything that does not do I/O in the shell
> > terminal.
> >
> > best regards,
> > Riccardo
> >
> > ------------------------------------------------------------------------------
> > All the data continuously generated in your IT infrastructure
> > contains a definitive record of customers, application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-novd2d
> > _______________________________________________
> > User-mode-linux-user mailing list
> > User-mode-linux-user <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> >
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
ning ji | 2 Dec 23:39 2011
Picon

Re: [uml-user] Can i run uml in the background ?

without sudo, i got this

[    0.170000]  ubda: unknown partition table
[    0.170000] Warning: Assigning a globally valid ethernet address to a device
[    0.170000] You should set the 2nd rightmost bit in the first byte of the MAC,
[    0.170000] i.e. 02:50:f9:00:00:66
[    0.170000] Netdevice 0 (00:50:f9:00:00:66) :
[    0.170000] TUN/TAP backend - IP = 10.50.181.51
[    0.200000] EXT3-fs (ubda): error: couldn't mount because of unsupported optional features (240)
[    0.210000] EXT2-fs (ubda): error: couldn't mount because of unsupported optional features (244)
[    0.220000] EXT4-fs (ubda): INFO: recovery required on readonly filesystem
[    0.220000] EXT4-fs (ubda): write access unavailable, cannot proceed
[    0.300000] UDF-fs: No partition found (1)
[    0.330000] NILFS: Can't find nilfs on dev ubda.
[    0.360000] GFS2: gfs2 mount does not exist
[    0.360000] List of all partitions:
[    0.360000] 6200          100000 ubda  driver: uml-blkdev
[    0.360000] No filesystem could mount root, tried:  reiserfs ext3 ext2 ext4 squashfs vfat msdos iso9660 ntfs fuseblk udf nilfs2 btrfs gfs2 gfs2meta
[    0.360000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0)
[    0.360000] 0fc6bedc:  [<084d18bc>] dump_stack+0x1c/0x20
[    0.360000] 0fc6bef4:  [<084d190d>] panic+0x4d/0x13f
[    0.360000] 0fc6bf28:  [<08048ca5>] mount_block_root+0x20d/0x21c
[    0.360000] 0fc6bf78:  [<08048d00>] mount_root+0x4c/0x54
[    0.360000] 0fc6bf9c:  [<08048e54>] prepare_namespace


> From: rob0 <at> gmx.co.uk
> To: user-mode-linux-user <at> lists.sourceforge.net
> Date: Fri, 2 Dec 2011 15:50:50 -0600
> Subject: Re: [uml-user] Can i run uml in the background ?
>
> On Friday 02 December 2011 15:10:35 ning ji wrote:
> > Guess the answer is yes,but when i run
> > #sudo ./umlinux ubda=./fs6 mem=128M
> > eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51 & i got this
> > [1]+ Stopped sudo ./umlinux ubda=./fs6 mem=128M
> > eth0=tuntap,,00:50:F9:00:00:65,10.50.181.51
> >
> > Any hints pls ?Thanks !
>
> Why are you running this as root? There are safe ways to set up
> networking while maintaining reduced privilege in the UML instance
> itself.
>
> Can you background it as non-root?
> --
> Offlist mail to this address is discarded unless
> "/dev/rob0" or "not-spam" is in Subject: header
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Gmane