If you using selinux, you can reinstall some rules:
sudo dnf reinstall docker-selinux
If you using selinux, you can reinstall some rules:
sudo dnf reinstall docker-selinux
veid=1000
vzctl create $veid –ostemplate centos-7-x86_64 –diskspace 20G
vzctl set $veid –features bridge:on –save
vzctl set $veid –netif_add eth0 –save
vzctl set $veid –netfilter full –save
vzctl set $veid –devnodes net/tun:rw –save
vzctl mount $veid
echo “JoinControllers=cpu,cpuacct,cpuset freezer,devices” >> /vz/root/$veid/etc/systemd/system.conf
vzctl start $veid
mount -t tmpfs tmpfs /sys/fs/cgroup
mkdir /sys/fs/cgroup/freezer,devices
mount -t cgroup cgroup /sys/fs/cgroup/freezer,devices -o freezer,devices
mkdir /sys/fs/cgroup/cpu,cpuacct,cpuset
mount -t cgroup cgroup /sys/fs/cgroup/cpu,cpuacct,cpuset/ -o cpu,cpuacct,cpuset
Install docker:
yum -y install docker-io
docker -d -s vfs
for i in `cat /proc/vz/veinfo | awk ‘{print $1}’|egrep -v ‘^0$’`; do echo “Container $i”; vzctl exec $i w ; done
vzctl set CTID --devnodes net/tun:rw --capability net_admin:on --save
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index e66cb81..2989b8d 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -267,7 +267,8 @@ function new_interface ()
is_available ${parent_device} && \
( grep -qswi "up" /sys/class/net/${parent_device}/operstate || grep -qswi "1" /sys/class/net/${parent_device}/carrier ) ; then
echo $"Determining if ip address ${IPADDR} is already in use for device ${parent_device}..."
- if ! /sbin/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${parent_device} ${IPADDR} ; then
+ /sbin/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${parent_device} ${IPADDR}
+ if [ $? = 1 ]; then
net_log $"Error, some other host already uses address ${IPADDR}."
return 1
fi
wget https://git.fedorahosted.org/cgit/initscripts.git/snapshot/initscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.tar.gz
vzlist | grep VZ_name # Get container ID
cp -v initscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.tar.gz /vz/root/C_ID/root/ # where C_ID is container ID
vzctl enter C_ID
tar xvf initscripts-55a50ebc591ebd0f4cfbb8ecc204fa20ee6a7368.tar.gz sysconfig/network-scripts/ifup-aliases
mv -v /etc/sysconfig/network-scripts/ifup-aliases /etc/sysconfig/network-scripts/ifup-aliases.orig
cp sysconfig/network-scripts/ifup-aliases /etc/sysconfig/network-scripts/ifup-aliases
service network restart
Restarting network (via systemctl): [ OK ]
mount –bind /vz/private/100/share /vz/root/200/share
VBoxManage list hdds
VBoxManage modifyhd [UUID] –resize [size in MiB]
vagrant init serveit/centos-7; vagrant up –provider virtualbox
Error:
=> default: Loading metadata for box ‘serveit/centos-7’
default: URL: https://atlas.hashicorp.com/serveit/centos-7
The box you’re attempting to add doesn’t support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn’t
simply misspell it.
If you’re adding a box from HashiCorp’s Atlas, make sure the box is
released.
Name: serveit/centos-7
Address: https://atlas.hashicorp.com/serveit/centos-7
Requested provider: [:virtualbox]
Fix:
vagrant init jayunit100/centos7; vagrant up –provider virtualbox
FlashCache is a general purpose writeback block cache for Linux. That means you can use it with your Solid State Drive (SSD) or Flash Drive to speed up your hard disk access. Think of it as a software based Hybrid Drive. It was developed by Facebook to help run Facebook.
VBoxManage list hdds
http://mirror.hdcore.eu/vagrant/boxes/
esxcli –server xx.xx.xx.xx –username root –password ‘xxxxxxxxxx’ system coredump partition list
Name Path Active Configured
————————————– ———————————————————- —— ———-
naa.600508e0000000007578aa98b9874c03:7 /vmfs/devices/disks/naa.600508e0000000007578aa98b9874c03:7 false false
naa.600508e0000000007578aa98b9874c03:9 /vmfs/devices/disks/naa.600508e0000000007578aa98b9874c03:9 true true
if you can not access server using esxcli
/usr/lib/vmware-vcli/apps/general/credstore_admin.pl add -s xx.xx.xx.xx -t 68:BF:D0:1D:8F:85:36:4A:3A:7F:51:24:65:D1:FD:95:FA:F8:B8:DC
vagrant init hashicorp/precise32; vagrant up –provider virtualbox
sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -P /etc/yum.repos.d/
[virtualbox]
name=Fedora $releasever – $basearch – VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc