lx zone is buggy

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

ekke

Member
Nov 16, 2015
166
8
18
45
Im adding new lx zones , but they are really buggy.

starting vi hangs the zlogin console, same with htop and vim. By just launching them

Also
root@ubuntu-14-04-b:~# ls /dev


just hangs, it sits there.

i'm also having trouble installing anything, mysql , pihole ( GitHub - pi-hole/pi-hole: A black hole for Internet advertisements) etc.



Edit: the first part I solved, the second part i can't figure out ... need some advise and help here.
 
Last edited:

cperalt1

Active Member
Feb 23, 2015
180
55
28
43
Been running lxzones for a few years now and haven't had issues. What is your set-up, OS (SmartOS, OmniOS, OpenIndiana,etc; lx-image) how have you configured the zone? Are you using napp-it? etc...
 

ekke

Member
Nov 16, 2015
166
8
18
45
I have been trying to install pihole in a zone but at the end on the pihoel script it can't write to files etc.

Code:
:: Neutrino emissions detected...
:::
::: Pulling source lists into range... done!
:::
::: Getting raw.githubusercontent.com list... done
:::   Status: Success (OK)
:::   List updated, transport successful!
::: Getting mirror1.malwaredomains.com list... done
:::   Status: Success (OK)
:::   List updated, transport successful!
::: Getting sysctl.org list... done
:::   Status: Success (OK)
:::   List updated, transport successful!
::: Getting zeustracker.abuse.ch list... done
:::   Status: Success (OK)
:::   List updated, transport successful!
::: Getting s3.amazonaws.com list... done
:::   Status: Success (OK)
:::   List updated, transport successful!
::: Getting s3.amazonaws.com list... done
:::   Status: Success (OK)
:::   List updated, transport successful!
::: Getting hosts-file.net list... done
:::   Status: Success (OK)
:::   List updated, transport successful!
:::
::: Aggregating list of domains... done!
::: Formatting list of domains to remove comments.... done!
::: 137838 domains being pulled in by gravity...
::: Removing duplicate domains.... done!
::: 113753 unique domains trapped in the event horizon.
:::
::: Adding adlist sources to the whitelist... done!
rm: cannot remove '/etc/pihole/local.list': No such file or directory
::: Whitelisting 6 domains... done!
::: Nothing to blacklist!
::: No wildcards used!
::: Formatting domains into a HOSTS file...rm: cannot remove '/etc/pihole/local.list': No such file or directory
::: No IP Values found! Please run 'pihole -r' and choose reconfigure to restore values
root@ubuntu-14-04-b:~#
this is my steps when creating a zone using a directory ( I have also tried direct to a zfs data set, zfs create /data/zone/test0)

Code:
dladm create-vnic -l cxgbe0 testnet0

mkdir /data/zone/test0
chmod -R 700 /data/zone/test0

zonecfg -z test0
create -b
set zonepath=/data/zone/test0
set brand=lx
set autoboot=true
set ip-type=exclusive
add net
set physical=testnet0
add property (name=gateway,value="192.168.1.1")
add property (name=ips,value="192.168.1.34/24")
add property (name=primary,value="true")
end
add rctl
set name=zone.max-lwps
add value (priv=privileged,limit=2000,action=deny)
end
add attr
set name=dns-domain
set type=string
set value=netlabs.se
end
add attr
set name=resolvers
set type=string
set value=192.168.1.1
end
add attr
set name=kernel-version
set type=string
set value=4.3.0
end
verify
commit
exit

zoneadm -z test0 install -s /data/ubuntu1604.zss
 

ekke

Member
Nov 16, 2015
166
8
18
45
I have to add that I have to successfully installed zones on my main pool "tank" but I get a pari of ssds that I want to put all my zones on.

Code:
cant get functional lx zones here
root@omnios:/tank# ls /data/zone
pihole  test0

root@omnios:/tank# zfs list
NAME                                                    USED  AVAIL  REFER  MOUNTPOINT
data                                                    110G   286G   496M  /data
data/temp                                              72.9G   250G  72.9G  /data/temp
data/zone                                              1.05G   250G    88K  /data/zone
data/zone/pihole                                        553M   250G   438M  /data/zone/pihole
data/zone/test0                                         520M   250G   427M  /data/zone/test0
data/zones                                               88K   250G    88K  /data/zones


these two old ones works fine.
root@omnios:/tank# ls /tank/zones/
centos  shared  ubuntu
root@omnios:/tank# zfs list                 
NAME                                                    USED  AVAIL  REFER  MOUNTPOINT
tank/zones                                             55.8G  8.18T   176K  /tank/zones
tank/zones/qb0                                         54.5G  8.18T  54.3G  /data/zones/qb0
tank/zones/uni0                                        1.31G  8.18T  1.22G  /data/zones/uni0