Proxmox 6 /etc/network/interfaces
Code:cat /etc/network/interfaces auto lo iface lo inet loopback iface enp0s3 inet manual auto vmbr0 iface vmbr0 inet static address 192.168.178.97 netmask 255.255.255.0 gateway 192.168.178.1 bridge_ports enp0s3 bridge_stp off bridge_fd 0 iface enp0s8 inet manual
192.168.178.97
zu 192.168.178.97/24
Network:
- Adapter 1: Host-only Adapter, vboxnet0; recommended leave the advanced settings as they are (Paravirtualized Network (virtio-net)).
- Adapter 2: NAT (attention: NOT NAT-network!!)
Geh mal in der Proxmox GUI auf Netzwerk > vmbr0 und ändere den Wert im Feld "IPv4/CIDR" von 192.168.178.97 zu 192.168.178.97/24
traceroute proxmox.com
von einem Gast System.Neue VirtualBox VM mit Bridge + Promiscous Mode und ohne Host-Only-Network.
Dann vmbr0 mit den Vorgaben. /24 nicht vergessen.
z.B. als 'Switch' wenn man mehrere VMs hat, die nur in einem eigenen virtuellen Netz kommunizieren sollen.Wann muss man eine zusätzliche Bridge anlegen?
VBoxManage modifyvm proxmox6-1 --nested-hw-virt on
root@pve:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=29.8 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=33.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=35.2 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 26ms
rtt min/avg/max/mdev = 29.830/32.998/35.221/2.309 ms
root@pve:~#
starting template download from: http://download.proxmox.com/images/system/debian-10.0-standard_10.0-1_amd64.tar.gz
target file: /var/lib/vz/template/cache/debian-10.0-standard_10.0-1_amd64.tar.gz
--2020-05-15 06:36:00-- http://download.proxmox.com/images/system/debian-10.0-standard_10.0-1_amd64.tar.gz
Resolving download.proxmox.com (download.proxmox.com)... 212.224.123.70, 2a01:7e0:0:424::249
Connecting to download.proxmox.com (download.proxmox.com)|212.224.123.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 230629816 (220M) [application/octet-stream]
Saving to: '/var/lib/vz/template/cache/debian-10.0-standard_10.0-1_amd64.tar.gz.tmp.995'
0K ........ ........ ........ ........ ........ ........ 1% 823K 4m30s
3072K ........ ........ ........ ........ ........ ........ 2% 822K 4m26s
6144K ........ ........ ........ ........ ........ ........ 4% 816K 4m23s
9216K ........ ........ ........ ........ ........ ........ 5% 810K 4m20s
12288K ........ ........ ........ ........ ........ ........ 6% 803K 4m18s
15360K ........ ........ ........ ........ ........ ........ 8% 815K 4m14s
18432K ........ ........ ........ ........ ........ ........ 9% 809K 4m10s
21504K ........ ........ ........ ........ ........ ........ 10% 810K 4m7s
24576K ........ ........ ........ ........ ........ ........ 12% 810K 4m3s
27648K ........ ........ ........ ........ ........ ........ 13% 810K 3m59s
30720K ........ ........ ........ ........ ........ ........ 15% 809K 3m56s
33792K ........ ........ ........ ........ ........ ........ 16% 810K 3m52s
36864K ........ ........ ........ ........ ........ ........ 17% 809K 3m48s
39936K ........ ........ ........ ........ ........ ........ 19% 810K 3m44s
43008K ........ ........ ........ ........ ........ ........ 20% 809K 3m41s
46080K ........ ........ ........ ........ ........ ........ 21% 810K 3m37s
49152K ........ ........ ........ ........ ........ ........ 23% 809K 3m33s
52224K ........ ........ ........ ........ ........ ........ 24% 809K 3m29s
55296K ........ ........ ........ ........ ........ ........ 25% 806K 3m26s
58368K ........ ........ ........ ........ ........ ........ 27% 813K 3m22s
61440K ........ ........ ........ ........ ........ ........ 28% 810K 3m18s
64512K ........ ........ ........ ........ ........ ........ 30% 809K 3m14s
67584K ........ ........ ........ ........ ........ ........ 31% 808K 3m11s
70656K ........ ........ ........ ........ ........ ........ 32% 809K 3m7s
73728K ........ ........ ........ ........ ........ ........ 34% 810K 3m3s
76800K ........ ........ ........ ........ ........ ........ 35% 808K 2m59s
79872K ........ ........ ........ ........ ........ ........ 36% 789K 2m56s
82944K ........ ........ ........ ........ ........ ........ 38% 811K 2m52s
86016K ........ ........ ........ ........ ........ ........ 39% 810K 2m48s
89088K ........ ........ ........ ........ ........ ........ 40% 809K 2m44s
92160K ........ ........ ........ ........ ........ ........ 42% 810K 2m41s
95232K ........ ........ ........ ........ ........ ........ 43% 808K 2m37s
98304K ........ ........ ........ ........ ........ ........ 45% 809K 2m33s
101376K ........ ........ ........ ........ ........ ........ 46% 810K 2m29s
104448K ........ ........ ........ ........ ........ ........ 47% 809K 2m25s
107520K ........ ........ ........ ........ ........ ........ 49% 810K 2m22s
110592K ........ ........ ........ ........ ........ ........ 50% 810K 2m18s
113664K ........ ........ ........ ........ ........ ........ 51% 810K 2m14s
116736K ........ ........ ........ ........ ........ ........ 53% 809K 2m10s
119808K ........ ........ ........ ........ ........ ........ 54% 798K 2m6s
122880K ........ ........ ........ ........ ........ ........ 55% 820K 2m3s
125952K ........ ........ ........ ........ ........ ........ 57% 810K 1m59s
129024K ........ ........ ........ ........ ........ ........ 58% 810K 1m55s
132096K ........ ........ ........ ........ ........ ........ 60% 791K 1m51s
135168K ........ ........ ........ ........ ........ ........ 61% 809K 1m47s
138240K ........ ........ ........ ........ ........ ........ 62% 810K 1m44s
141312K ........ ........ ........ ........ ........ ........ 64% 809K 1m40s
144384K ........ ........ ........ ........ ........ ........ 65% 809K 96s
147456K ........ ........ ........ ........ ........ ........ 66% 810K 92s
150528K ........ ........ ........ ........ ........ ........ 68% 810K 89s
153600K ........ ........ ........ ........ ........ ........ 69% 809K 85s
156672K ........ ........ ........ ........ ........ ........ 70% 810K 81s
159744K ........ ........ ........ ........ ........ ........ 72% 810K 77s
162816K ........ ........ ........ ........ ........ ........ 73% 807K 73s
165888K ........ ........ ........ ........ ........ ........ 75% 812K 70s
168960K ........ ........ ........ ........ ........ ........ 76% 809K 66s
172032K ........ ........ ........ ........ ........ ........ 77% 803K 62s
175104K ........ ........ ........ ........ ........ ........ 79% 815K 58s
178176K ........ ........ ........ ........ ........ ........ 80% 810K 54s
181248K ........ ........ ........ ........ ........ ........ 81% 809K 51s
184320K ........ ........ ........ ........ ........ ........ 83% 810K 47s
187392K ........ ........ ........ ........ ........ ........ 84% 784K 43s
190464K ........ ........ ........ ........ ........ ........ 85% 809K 39s
193536K ........ ........ ........ ........ ........ ........ 87% 810K 35s
196608K ........ ........ ........ ........ ........ ........ 88% 809K 32s
199680K ........ ........ ........ ........ ........ ........ 90% 808K 28s
202752K ........ ........ ........ ........ ........ ........ 91% 809K 24s
205824K ........ ........ ........ ........ ........ ........ 92% 810K 20s
208896K ........ ........ ........ ........ ........ ........ 94% 810K 16s
211968K ........ ........ ........ ........ ........ ........ 95% 810K 13s
215040K ........ ........ ........ ........ ........ ........ 96% 810K 9s
218112K ........ ........ ........ ........ ........ ........ 98% 810K 5s
221184K ........ ........ ........ ........ ........ ........ 99% 810K 1s
224256K ........ ....... 100% 810K=4m38s
2020-05-15 06:40:39 (809 KB/s) - '/var/lib/vz/template/cache/debian-10.0-standard_10.0-1_amd64.tar.gz.tmp.995' saved [230629816/230629816]
download finished
TASK OK
Logical volume "vm-100-disk-0" created.
mke2fs 1.44.5 (15-Dec-2018)
Discarding device blocks: 4096/2097152 done
Creating filesystem with 2097152 4k blocks and 524288 inodes
Filesystem UUID: 1221beff-0676-4cdb-99b8-a9916dade0a7
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: 0/64 done
Writing inode tables: 0/64 done
Creating journal (16384 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/64 done
extracting archive '/var/lib/vz/template/cache/debian-10.0-standard_10.0-1_amd64.tar.gz'
Total bytes read: 669562880 (639MiB, 128MiB/s)
Detected container architecture: amd64
Creating SSH host key 'ssh_host_dsa_key' - this may take some time ...
done: SHA256:eTjCk03LUghK4Bal0DmoDsbc3EHkWO0Qozx/oCn/v3E root@deb10
Creating SSH host key 'ssh_host_ecdsa_key' - this may take some time ...
done: SHA256:CM8o/8kUwo8vRZa+cggQNKLLRHyXJ6v9uH/J8O9cQcE root@deb10
Creating SSH host key 'ssh_host_ed25519_key' - this may take some time ...
done: SHA256:cKwABMhSbbe8EslHKLIrGjCo21B4BzFeCGuJfaToBcg root@deb10
Creating SSH host key 'ssh_host_rsa_key' - this may take some time ...
done: SHA256:W0TVvRg3cGWySbdMYbNrzGkw3IDeD/za3HUsPy+JrZA root@deb10
TASK OK
root@deb10:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.178.188 icmp_seq=1 Destination Host Unreachable
From 192.168.178.188 icmp_seq=2 Destination Host Unreachable
From 192.168.178.188 icmp_seq=3 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 141ms
pipe 4
root@deb10:~#
root@deb10:~# cat /etc/resolv.conf
# --- BEGIN PVE ---
search fritz.box
nameserver 192.168.178.1
# --- END PVE ---
root@deb10:~#
root@deb10:~#
root@deb10:~#
root@deb10:~# ping http://192.168.178.1
ping: http://192.168.178.1: Name or service not known
root@deb10:~#
root@deb10:~#
root@deb10:~# ping http://fritz.box
ping: http://fritz.box: Name or service not known
root@deb10:~#
root@deb10:~# ping 192.168.178.1
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.
^C
--- 192.168.178.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 39ms
root@deb10:~#
root@deb10:~# nslookup fritz.box
-bash: nslookup: command not found
root@deb10:~#
root@deb10:~# nslookup fritz.box 192.168.178.1
-bash: nslookup: command not found
root@deb10:~#
root@deb10:~# ping 192.168.178.42
PING 192.168.178.42 (192.168.178.42) 56(84) bytes of data.
64 bytes from 192.168.178.42: icmp_seq=1 ttl=64 time=0.860 ms
64 bytes from 192.168.178.42: icmp_seq=2 ttl=64 time=0.312 ms
64 bytes from 192.168.178.42: icmp_seq=3 ttl=64 time=0.245 ms
^C
--- 192.168.178.42 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 56ms
rtt min/avg/max/mdev = 0.245/0.472/0.860/0.276 ms
root@deb10:~# ping 192.168.178.56
PING 192.168.178.56 (192.168.178.56) 56(84) bytes of data.
64 bytes from 192.168.178.56: icmp_seq=1 ttl=64 time=0.106 ms
64 bytes from 192.168.178.56: icmp_seq=2 ttl=64 time=0.117 ms
64 bytes from 192.168.178.56: icmp_seq=3 ttl=64 time=0.093 ms
^C
--- 192.168.178.56 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 56ms
rtt min/avg/max/mdev = 0.093/0.105/0.117/0.012 ms
root@deb10:~#
ping 192.168.178.188
PING 192.168.178.188 (192.168.178.188) 56(84) bytes of data.
64 bytes from 192.168.178.188: icmp_seq=1 ttl=64 time=0.252 ms
64 bytes from 192.168.178.188: icmp_seq=2 ttl=64 time=0.475 ms
64 bytes from 192.168.178.188: icmp_seq=3 ttl=64 time=0.480 ms
^C
--- 192.168.178.188 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2032ms
rtt min/avg/max/mdev = 0.252/0.402/0.480/0.107 ms
root@deb10:~#
root@deb10:~# host fritz.box
;; connection timed out; no servers could be reached
root@deb10:~#
root@deb10:~# host 192.168.178.1
;; connection timed out; no servers could be reached
root@deb10:~#