Ask your questions here.
Post a reply

Re: no internet connexio in live usb

Fri Aug 15, 2014 1:55 pm

i did not set the virtual machine to any specific cases, just the way you would expect it to work with any other live-cd based linux. i tried also to set up the network manually, no luck either ,no matter if nas, bridge, or whatever else is offered.

kde network settings are correct, as is everything else. please, please please try to fix this issue on refracta because besides this, its the best software out there easily.
remastersys and others like black lab i just cant use because of the 4GB file size limit.

but there is something remastersys/blacklab are doing with the network that refracta is not doing properly because otherwise it would work, however all these 3 are basically only scripts and nothing special so i really hope there is a way to get beyond this.

Re: no internet connexio in live usb

Sat Aug 16, 2014 12:28 pm

The only people who report this problem are using 'buntu, so maybe it's an ubuntu/kubuntu thing. The only thing that refractasnapshot does with the network is to exclude 70-persistent-net.rules from being copied into the snapshot. That file gets regenerated upon boot and contains the names of the network interfaces.

I hope the OP returns with more infomation. To both of you...

Please post the output from the following commands from the running live system.
(not from the installed system)
Code:
ifconfig -a

dhclient  -v <interface>
  (interface is something like eth0, wlan0 or whatever interface you're using.)

cat /(etc)/network/interfaces
  (remove the parentheses)

cat /(etc)/udev/rules.d/70-persistent-net.rules
  (remove the parentheses)

lspci | grep -i net


What version of refractasnapshot are you using?
What is your network setup? (connected directly to internet or on a local network behind a router?)
If you know what file your network manager uses to store its settings, please post the contents or else describe what network settings you use.

BTW, (@macstar) I expect the network not to work on virtualbox unless I change it from the default settings to bridged network, and I select the correct interface.

Re: no internet connexio in live usb

Sat Aug 16, 2014 4:42 pm

fsmithred wrote:BTW, (@macstar) I expect the network not to work on virtualbox unless I change it from the default settings to bridged network, and I select the correct interface.


sorry but then you expecting it wrong. if you have any convincing reason why you would do so, please continue this debate with the admin of distroshare, who denied my distro because, it does not work the same way in live cd mode as in installed mode, and named the lacking network-connection as a reason for it. and i cant blame him. if you run a live-cd in virtual box, it should have the internet connection available. ubuntu/kubuntu are doing this per default, so does mint, opensuse, and many many others.



cat /(etc)/network/interfaces
(remove the parentheses)

cat /(etc)/udev/rules.d/70-persistent-net.rules
(remove the parentheses)


removing what? the interfaces file looks already 1:1 like it would do in a live-dvd distro like mint where i have an internet connection... same goes for the 70-persistent-net.rules. as i wrote before, i even tried once to completely remove the persistent rules file to see if that makes any difference - sadly it does not.



[email protected]:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr f0:92:1c:4d:ba:d4
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:403 errors:0 dropped:0 overruns:0 frame:0
TX packets:403 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32316 (32.3 KB) TX bytes:32316 (32.3 KB)

wlan0 Link encap:Ethernet HWaddr 0c:84:dc:6e:19:77
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)



[email protected]:~$ sudo dhclient -v eth0
[sudo] password for macstar:
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f0:92:1c:4d:ba:d4
Sending on LPF/eth0/f0:92:1c:4d:ba:d4
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x4f88473a)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 (xid=0x4f88473a)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 (xid=0x4f88473a)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 (xid=0x4f88473a)


[email protected]:~$ lspci | grep -i net
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
07:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe



waiting with interest what listing these specs will do like. i am still willing to bet its a problem with refracta.

i also once tried to do a snapshot when my internet connection was available and online, once i set it to offline and once i even removed it completely. just does not make any difference at all.

Re: no internet connexio in live usb

Sat Aug 16, 2014 8:45 pm

macstar wrote:
fsmithred wrote:BTW, (@macstar) I expect the network not to work on virtualbox unless I change it from the default settings to bridged network, and I select the correct interface.


sorry but then you expecting it wrong. if you have any convincing reason why you would do so, please continue this debate with the admin of distroshare, who denied my distro because, it does not work the same way in live cd mode as in installed mode, and named the lacking network-connection as a reason for it. and i cant blame him. if you run a live-cd in virtual box, it should have the internet connection available. ubuntu/kubuntu are doing this per default, so does mint, opensuse, and many many others.


Yes, and refracta (the live CD) is one of those that gets an internet connection when you run it live. In virtualbox, it's been my observation that NO live CD will have an internet connection if I leave the virtualbox setting on the default NAT setting. If I change it to Bridged, I can then select from the hardware interfaces that exist on the host machine, and it conntects.


cat /(etc)/network/interfaces
(remove the parentheses)

cat /(etc)/udev/rules.d/70-persistent-net.rules
(remove the parentheses)


removing what? the interfaces file looks already 1:1 like it would do in a live-dvd distro like mint where i have an internet connection... same goes for the 70-persistent-net.rules. as i wrote before, i even tried once to completely remove the persistent rules file to see if that makes any difference - sadly it does not.


Remove the parentheses in /(etc)/ before you run the command. The forum software won't allow me to post any paths with etc (with the slashes), so we have to disguise it in some way.

You made a snapshot of your installation. Did your network manager modify the interfaces file or not? In debian, the default interfaces file only has the loopback interface configured. Some people will alter theirs on an installation, and it's possible that some network managers might alter it. I don't know what every distro does with that file. I only need to know if yours is different. Does it contain configuration for your interfaces? Does 70-persistent-net.rules show your ethernet controller ( RTL8111/8168/8411) as eth0, or does it call it something else?


waiting with interest what listing these specs will do like. i am still willing to bet its a problem with refracta.

i also once tried to do a snapshot when my internet connection was available and online, once i set it to offline and once i even removed it completely. just does not make any difference at all.


The problem is that the refracta devs don't know what every distro does, and we have to rely on users of those distro to tell us. When it's possible, we modify the refracta tools to work with distros other than pure debian. In the past, I've made snapshots from ubuntu, and they worked fine.

And once again, what version of refractasnapshot are you using? You can run 'refractasnapshot -v' or 'refractasnapshot-gui -v' in a terminal to get the version number.

Re: no internet connexio in live usb

Sun Aug 17, 2014 6:05 am

Yes, and refracta (the live CD) is one of those that gets an internet connection when you run it live. In virtualbox, it's been my observation that NO live CD will have an internet connection if I leave the virtualbox setting on the default NAT setting. If I change it to Bridged, I can then select from the hardware interfaces that exist on the host machine, and it conntects.


sorry, but no thats not the way its happening here. running virtualbox 4.3.10 on kubuntu 14.04x64.
there is also no need to mess arround with the network settings, as the pre-defined ones when chosing ubuntu or even linux will just work with any live-cd except refracta.
and again: just because of it, i also tried ANY network profile available in virtualbox, but neither of them work.

You made a snapshot of your installation. Did your network manager modify the interfaces file or not? In debian, the default interfaces file only has the loopback interface configured. Some people will alter theirs on an installation, and it's possible that some network managers might alter it. I don't know what every distro does with that file. I only need to know if yours is different. Does it contain configuration for your interfaces? Does 70-persistent-net.rules show your ethernet controller ( RTL8111/8168/8411) as eth0, or does it call it something else?


i fear you did not really understand me. my network manager did modify the 70-persisten rules file, and therefore i once removed it, before doing a snapshot. i wrote this a few posts back.
the interfaces file was not modified. it looked the same as the file i compared with which was a mint live cd distro running in virtual box. (i thought if its working there, lets just see if the files are identic - and they are).

i am using the latest refracta 9.0.9.8 got it via sf -> http://sourceforge.net/projects/refracta/files/tools/

please please please try to fix that error. if you have anything i can try out still let me know. i dont need my notebook for anything else atm so i can play arround with it.
maybe this can lead to something?
I’m trying it out in Virtualbox and dhclient is giving me this error:

dhclient: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Permission denied

Re: no internet connexio in live usb

Sun Aug 17, 2014 12:13 pm

macstar wrote:
Yes, and refracta (the live CD) is one of those that gets an internet connection when you run it live. In virtualbox, it's been my observation that NO live CD will have an internet connection if I leave the virtualbox setting on the default NAT setting. If I change it to Bridged, I can then select from the hardware interfaces that exist on the host machine, and it conntects.


sorry, but no thats not the way its happening here. running virtualbox 4.3.10 on kubuntu 14.04x64.
there is also no need to mess arround with the network settings, as the pre-defined ones when chosing ubuntu or even linux will just work with any live-cd except refracta.
and again: just because of it, i also tried ANY network profile available in virtualbox, but neither of them work.


Oh, you are right that an internet connection is available when it's set on NAT.. Been a long time since I actually tried that. Sorry for the confusion. I tried it with an antix iso from last November and with the refracta live-cd (both i386 and amd64 versions). It worked in all three cases.

Just to make sure there's no confusion in terminology, "Refracta" refers to the live CD that we distribute, currently one of these images built on debian wheezy -
http://sourceforge.net/projects/refract ... isohybrid/
Did you try it with one of those, or just with the live-CD image you built from kubuntu?

You made a snapshot of your installation. Did your network manager modify the interfaces file or not? In debian, the default interfaces file only has the loopback interface configured. Some people will alter theirs on an installation, and it's possible that some network managers might alter it. I don't know what every distro does with that file. I only need to know if yours is different. Does it contain configuration for your interfaces? Does 70-persistent-net.rules show your ethernet controller ( RTL8111/8168/8411) as eth0, or does it call it something else?


i fear you did not really understand me. my network manager did modify the 70-persisten rules file, and therefore i once removed it, before doing a snapshot. i wrote this a few posts back.


I understood you correctly. One of the things I do when diagnosing network problems is to look at that file, so I asked to see that file. BTW, that file is generated by udev, not by the network manager.

the interfaces file was not modified. it looked the same as the file i compared with which was a mint live cd distro running in virtual box. (i thought if its working there, lets just see if the files are identic - and they are)


OK, so they are identical. Can you tell me what they look like? I don't have a mint iso to check it, and I can't see what's on your screen. Does it contain anything more than the following?
Code:
auto lo
iface lo inet loopback
If it does contain more than that, would you please tell me what's there?


i am using the latest refracta 9.0.9.8 got it via sf -> http://sourceforge.net/projects/refracta/files/tools/


9.0.9-8 is the latest version for wheezy. You could try the version for jessie/sid (9.1.2), which you can find here -
http://distro.ibiblio.org/refracta/files/Testing/
Note that the newer version requires xorriso to be installed. Also, in newer versions of syslinux, isolinux is no longer included and is a separate package.


I’m trying it out in Virtualbox and dhclient is giving me this error:

dhclient: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Permission denied


This is all I could find for that error message in ubuntu. I don't know if it's relevant or not.
http://askubuntu.com/questions/310619/p ... g-dhclient

One thing you could try is to remove "ip=frommedia" from the boot command. When you're at the syslinux/isolinux boot menu (on the live iso) hit TAB, and you can edit the line.

Edit: What's the output of 'cat /proc/cmdline' when you're running the live iso?

Re: no internet connexio in live usb

Wed Aug 20, 2014 12:25 pm

Did you try it with one of those, or just with the live-CD image you built from kubuntu?


i did just use the refracta snapshot, which i installed on a pre configured kubuntu 14.04.
why to use a live-cd? i want to have a complete backup of my OWN system and afaik the only way is refracta snapshot. can i use refracta snapshot on the live-cd too? the problem i see here is, how could it make a backup of my distro if it boots its own system? makes no sense.

OK, so they are identical. Can you tell me what they look like? I don't have a mint iso to check it, and I can't see what's on your screen. Does it contain anything more than the following?


negative. it contains exactly this:
auto lo
iface lo inet loopback


9.0.9-8 is the latest version for wheezy. You could try the version for jessie/sid (9.1.2), which you can find here -
http://distro.ibiblio.org/refracta/files/Testing/
Note that the newer version requires xorriso to be installed. Also, in newer versions of syslinux, isolinux is no longer included and is a separate package.


this sadly just opens another problem i have to deal with now. 9.1.2 can't be installed on kubuntu 14.04 because of lacking package dependencies.
it depends on live-config which is broken.
see here:
https://bugs.launchpad.net/ubuntu/+sour ... bug/913874

if that gets not fixed i cant use 9.1.2..... and i bet the same goes for many other users as well.

Edit: What's the output of 'cat /proc/cmdline' when you're running the live iso?


Image

Re: no internet connexio in live usb

Thu Aug 21, 2014 2:35 am

Don't worry about using the newer version of refractasnapshot. You only need it if you're using syslinux-6.03, and kubuntu 14.04 is using an older version (4.05).

Refractasnapshot does not copy or boot its own operating system. It copies whatever system you are running and makes an iso file that you can use to either make a bootable CD or USB or boot the iso in virtualbox. The point of it is to make a live image of your system. And no, you don't want to run refractasnapshot from a running live cd or usb.

Even though the boot menu in the iso you create says "Refracta", it's really whatever distro you started with, in this case, kubuntu. The newer version of snapshot lets you change the name in the boot men easily. If you want to change that in the older version, you can edit the config file and set edit_boot_menu to "yes", and then manually edit the menu when the program prompts you to do it.

But there are more important issues to deal with than the name in the boot menu. The boot commands are very different between 'buntu and debian. Debian puts the important files in the live directory, and ubuntu uses casper. I also see that kubuntu uses initrd.lz to boot the iso, although /initrd.img and /vmlinuz symlinks are present in the running system, which is the same as debian. I doubt that initd.lz gets copied into the snapshot. I can find it in the mounted kubuntu iso, but I can't find it in the booted live system (booted the iso in vbox). Can you find it in your installed system? Same goes for vmlinuz.efi.

Here's the main entry in the kubuntu boot menu:
Code:
label live
  menu label ^Start Kubuntu
  kernel /casper/vmlinuz.efi
  append  file=/cdrom/preseed/kubuntu.seed boot=casper maybe-ubiquity initrd=/casper/initrd.lz quiet splash --


It looks like it'll take some work to get refractasnapshot working on newer versions of ubuntu. I don't have the time or the hard drive space to try it myself right now. Maybe I can in a few weeks.

Re: no internet connexio in live usb

Thu Sep 25, 2014 9:53 pm

Revisiting this thread after installing a larger hard drive.

I installed kubuntu-14.04_amd64 in virtualbox, but I can't install refractasnapshot-base or refractasnapshot-gui. Those depend on live-config and one of the following: live-config-sysvinit, live-config-upstart or live-config-systemd. Only live-config-sysvinit seems to be in the repo, but that depends on sysvinit, and sysvinit is not in the repo. I have main, restricted, universe and multiverse enabled, including trusty-backports.

I tried with refractasnapshot versions 9.1.2, 9.1.1 and 9.0.8. Same result with all. Macstar, if you're reading this, how did you install it?

I'm not going to do a lot of testing with ubuntu, because apparently, I don't have the hardware resources to handle it. My dual-core athlon with 2GB ram is not really enough to run ubuntu in virtualbox. Allowing the VM 512MB ram caused the installer to crash at the beginning of the installation, and 704MB ram got me a little further into the installation, but it still crashed. Had to give it 1024. It took a couple of hours for the installation to complete. Once installed, it runs, but it's very slow.

Trying once more with deb files downloaded from wheezy repo.
live-boot live-boot-initramfs-tools live-config live-config-upstart live-tools

I'll be back...

Re: no internet connexio in live usb

Fri Sep 26, 2014 1:43 am

Downloaded debs for wheezy versions of live-boot, live-boot-initramfs-tools, live-config, live-config-upstart, live-tools and got them installed in kubuntu-14.04. Made a snapshot. Booted the snapshot. There's no internet connection.

70-persistent-net.rules doesn't show any interface.
/lib/udev/rules.d/75-persistent-net-generator.rules does not exist.
lspci does not see my wireless interface (wlan0). I'm pretty sure it does not require proprietary firmware (Netgear WG111v2). I'd use eth0, but a dog ate my wire. Really.

I haven't figured out how to set up the network using kde graphical tools yet.

Now it's getting really weird. I booted into the installed system (kubuntu in vbox) set the network for Bridged and selected wlan0, which is what the host system is using. I get a network connection, the network manager widget says I'm connected on the WIRED interface. The host computer does not have a wired connection to the router. I am connected to the internet, and I have an IP address on the local network. How did it connect to my router via wireless without my giving it the password?

I'm done for the night.
Post a reply