SHOW:
|
|
- or go back to the newest paste.
| 1 | # vzctl create 555 --ostemplate slackware64-14.1-minimal --ipadd 192.168.160.17 --hostname testy | |
| 2 | Creating image: /var/lib/vz/private/555.tmp/root.hdd/root.hdd size=2306867K | |
| 3 | Creating delta /var/lib/vz/private/555.tmp/root.hdd/root.hdd bs=2048 size=4614144 sectors v2 | |
| 4 | Storing /var/lib/vz/private/555.tmp/root.hdd/DiskDescriptor.xml | |
| 5 | Opening delta /var/lib/vz/private/555.tmp/root.hdd/root.hdd | |
| 6 | Adding delta dev=/dev/ploop55259 img=/var/lib/vz/private/555.tmp/root.hdd/root.hdd (rw) | |
| 7 | mke2fs 1.42.5 (29-Jul-2012) | |
| 8 | Discarding device blocks: done | |
| 9 | Filesystem label= | |
| 10 | OS type: Linux | |
| 11 | Block size=4096 (log=2) | |
| 12 | Fragment size=4096 (log=2) | |
| 13 | Stride=0 blocks, Stripe width=0 blocks | |
| 14 | 144288 inodes, 576256 blocks | |
| 15 | 28812 blocks (5.00%) reserved for the super user | |
| 16 | First data block=0 | |
| 17 | Maximum filesystem blocks=4294967296 | |
| 18 | 18 block groups | |
| 19 | 32768 blocks per group, 32768 fragments per group | |
| 20 | 8016 inodes per group | |
| 21 | Superblock backups stored on blocks: | |
| 22 | 32768, 98304, 163840, 229376, 294912 | |
| 23 | ||
| 24 | Allocating group tables: done | |
| 25 | Writing inode tables: done | |
| 26 | Creating journal (32768 blocks): done | |
| 27 | Writing superblocks and filesystem accounting information: done | |
| 28 | ||
| 29 | tune2fs 1.42.5 (29-Jul-2012) | |
| 30 | Setting maximal mount count to -1 | |
| 31 | Setting interval between checks to 0 seconds | |
| 32 | Creating balloon file .balloon-c3a5ae3d-ce7f-43c4-a1ea-c61e2b4504e8 | |
| 33 | Mounting /dev/ploop55259p1 at /var/lib/vz/private/555.tmp/root.hdd/root.hdd.mnt fstype=ext4 data='' | |
| 34 | Unmounting device /dev/ploop55259 | |
| 35 | Opening delta /vz/private/555.tmp/root.hdd/root.hdd | |
| 36 | Adding delta dev=/dev/ploop55259 img=/vz/private/555.tmp/root.hdd/root.hdd (rw) | |
| 37 | Mounting /dev/ploop55259p1 at /var/lib/vz/root/555 fstype=ext4 data='balloon_ino=12,' | |
| 38 | Creating container private area (slackware64-14.1-minimal) | |
| 39 | Unmounting file system at /vz/root/555 | |
| 40 | Unmounting device /dev/ploop55259 | |
| 41 | Opening delta /vz/private/555/root.hdd/root.hdd | |
| 42 | Adding delta dev=/dev/ploop55259 img=/vz/private/555/root.hdd/root.hdd (rw) | |
| 43 | Mounting /dev/ploop55259p1 at /var/lib/vz/root/555 fstype=ext4 data='balloon_ino=12,' | |
| 44 | Performing postcreate actions | |
| 45 | Unmounting file system at /vz/root/555 | |
| 46 | Unmounting device /dev/ploop55259 | |
| 47 | CT configuration saved to /etc/vz/conf/555.conf | |
| 48 | Container private area was created | |
| 49 | ||
| 50 | - - - | |
| 51 | ||
| 52 | # vzctl start 555 | |
| 53 | Starting container... | |
| 54 | Opening delta /vz/private/555/root.hdd/root.hdd | |
| 55 | Adding delta dev=/dev/ploop55259 img=/vz/private/555/root.hdd/root.hdd (rw) | |
| 56 | /dev/ploop55259p1: clean, 26630/144288 files, 126683/576256 blocks | |
| 57 | Mounting /dev/ploop55259p1 at /var/lib/vz/root/555 fstype=ext4 data='balloon_ino=12,' | |
| 58 | Container is mounted | |
| 59 | Adding IP address(es): 192.168.160.17 | |
| 60 | Setting CPU units: 1000 | |
| 61 | Container start in progress... | |
| 62 | ||
| 63 | - - - | |
| 64 | ||
| 65 | with df I see these | |
| 66 | /dev/ploop55259p1 2268760 470484 1683028 22% /vz/root/555 | |
| 67 | tmpfs 131072 4 131068 1% /vz/root/555/run | |
| 68 | devtmpfs 131072 4 131068 1% /vz/root/555/dev | |
| 69 | ||
| 70 | - - - | |
| 71 | ||
| 72 | # ping 192.168.160.17 | |
| 73 | PING 192.168.160.17 (192.168.160.17) 56(84) bytes of data. | |
| 74 | 64 bytes from 192.168.160.17: icmp_req=1 ttl=64 time=0.026 ms | |
| 75 | 64 bytes from 192.168.160.17: icmp_req=2 ttl=64 time=0.024 ms | |
| 76 | ^C | |
| 77 | --- 192.168.160.17 ping statistics --- | |
| 78 | 2 packets transmitted, 2 received, 0% packet loss, time 999ms | |
| 79 | rtt min/avg/max/mdev = 0.024/0.025/0.026/0.001 ms | |
| 80 | ||
| 81 | - - - | |
| 82 | ||
| 83 | # vzctl enter 555 | |
| 84 | entered into CT 555 | |
| 85 | root@testy:/# ps aux | |
| 86 | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
| 87 | root 1 0.0 0.2 4272 628 ? Ss 09:43 0:00 init boot | |
| 88 | root 2 0.0 0.0 0 0 ? S 09:43 0:00 [kthreadd/555] | |
| 89 | root 3 0.0 0.0 0 0 ? S 09:43 0:00 [khelper/555] | |
| 90 | root 155 0.0 0.0 4272 204 tty1 Ss+ 09:43 0:00 init boot | |
| 91 | root 156 0.0 0.5 9304 1336 tty1 S+ 09:43 0:00 /bin/sh /etc/rc.d/rc.S | |
| 92 | root 189 0.0 0.4 27784 1232 ? Ss 09:43 0:00 /sbin/udevd --daemon | |
| 93 | root 197 0.0 0.3 27780 840 ? S 09:43 0:00 /sbin/udevd --daemon | |
| 94 | root 198 0.0 0.3 27780 832 ? S 09:43 0:00 /sbin/udevd --daemon | |
| 95 | root 208 0.0 0.2 35976 752 ? Ss 09:50 0:00 vzctl: pts/0 | |
| 96 | root 209 0.0 0.6 17852 1796 pts/0 Ss 09:50 0:00 -bash | |
| 97 | root 220 0.0 0.4 15204 1120 pts/0 R+ 09:50 0:00 ps aux | |
| 98 | root@testy:/# ifconfig | |
| 99 | lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 | |
| 100 | inet 127.0.0.1 netmask 255.0.0.0 | |
| 101 | inet6 ::1 prefixlen 128 scopeid 0x10<host> | |
| 102 | loop txqueuelen 0 (Local Loopback) | |
| 103 | RX packets 0 bytes 0 (0.0 B) | |
| 104 | RX errors 0 dropped 0 overruns 0 frame 0 | |
| 105 | TX packets 0 bytes 0 (0.0 B) | |
| 106 | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | |
| 107 | ||
| 108 | venet0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP> mtu 1500 | |
| 109 | inet 192.168.160.17 netmask 255.255.255.255 broadcast 192.168.160.17 destination 192.168.160.17 | |
| 110 | unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 0 (UNSPEC) | |
| 111 | RX packets 2 bytes 168 (168.0 B) | |
| 112 | RX errors 0 dropped 0 overruns 0 frame 0 | |
| 113 | TX packets 2 bytes 168 (168.0 B) | |
| 114 | - | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
| 114 | + | |
| 115 | ||
| 116 | # netstat -rn | |
| 117 | Kernel IP routing table | |
| 118 | Destination Gateway Genmask Flags MSS Window irtt Iface | |
| 119 | 192.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 venet0 | |
| 120 | 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo | |
| 121 | 0.0.0.0 192.0.2.1 0.0.0.0 UG 0 0 0 venet0 | |
| 122 | ||
| 123 | - - - | |
| 124 | ||
| 125 | slackpkg works fine. |